您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make it easier and faster to make custom races.
// ==UserScript== // @name Torn Custom Race Simplifier // @version 0.5 // @description Make it easier and faster to make custom races. // @author Xiphias[187717] // @match *www.torn.com/loader.php?sid=racing* // @grant none // @namespace https://gf.qytechs.cn/users/3898 // ==/UserScript== var numberOfLaps = "1"; // Change this value to set number of laps. var maxDrivers = "2"; // Change this value to set the number of maximum drivers. var trackName = "Uptown"; // Change to desired track name (function() { 'use strict'; $('body').ajaxComplete(function (e, xhr, settings) { var createCustomRaceSection = "section=createCustomRace"; var url = settings.url; if (url.indexOf(createCustomRaceSection) >= 0) { var lapsInput = $('.laps-wrap > .input-wrap > input'); lapsInput.attr('value', numberOfLaps); var maxDriversInput = $('.drivers-max-wrap div.input-wrap input'); maxDriversInput.attr('value', maxDrivers); $('#select-racing-track').selectmenu(); $('#select-racing-track-menu > li:contains(' + trackName+ ')').mouseup(); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址