您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
The Request (RR)
// ==UserScript== // @name Torn RR Skip Bet Confirmation // @namespace Phantom Scripting // @version 0.2 // @author ErrorNullTag // @description The Request (RR) // @match https://www.torn.com/page.php?sid=russianRoulette* // @grant GM_addStyle // @grant GM_xmlhttpRequest // @license GNU AGPLv3 // ==/UserScript== (function() { 'use strict'; function findAndAttachListener(startSelector, confirmSelector) { const startButton = document.querySelector(startSelector); if (startButton) { startButton.addEventListener('click', () => { const confirmInterval = setInterval(() => { const confirmButton = document.querySelector(confirmSelector); const startButtonExists = document.querySelector(startSelector); if (!startButtonExists && confirmButton) { const clickEvent = new MouseEvent("click", { bubbles: true, cancelable: true, view: window }); confirmButton.dispatchEvent(clickEvent); console.log(`Clicked confirmation button with selector: ${confirmSelector}`); clearInterval(confirmInterval); startProcess(); } }, 100); }); console.log(`Attached click listener to start button with selector: ${startSelector}`); return true; } else { console.log(`Could not find start button.`); return false; } } function startProcess() { const interval = setInterval(() => { if (findAndAttachListener('.submit___Yr2z1', '[data-type="confirm"]')) { clearInterval(interval); } }, 1000); } startProcess(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址