您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Skip the roulette wheel spin entirely and reload the page so you can bet again immediately
// ==UserScript== // @name Torn City: Skip Roulette Animation // @namespace http://tampermonkey.net/ // @version 1.1 // @description Skip the roulette wheel spin entirely and reload the page so you can bet again immediately // @match https://www.torn.com/page.php?sid=roulette // @grant none // @run-at document-idle // @author aquagloop // @license MIT // ==/UserScript== (function($) { 'use strict'; function displayInfo(message, color) { $('#infoSpotText').html(message); $('#infoSpot').removeClass('red green'); if (color) { $('#infoSpot').addClass(color); } } window.addEventListener('load', function() { const tornGetAction = window.getAction; window.getAction = function(options) { if (options?.data?.sid === 'rouletteData' && options.data.step === 'processStakes') { $('#rouletteCanvas').hide(); options.success = function(response) { const title = response.won ? `You won \$${response.won}!` : 'You lost...'; const message = ' The ball landed on ' + response.number; displayInfo(title + message, response.won ? 'green' : 'red'); setTimeout(() => { window.location.reload(); }, 200); }; return tornGetAction(options); } return tornGetAction.apply(this, arguments); }; }, false); })(jQuery);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址