您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Navigate to the next profile in numerical order on Torn
// ==UserScript== // @name Torn Halloween Profile Navigator // @namespace http://tampermonkey.net/ // @version 1.1 // @description Navigate to the next profile in numerical order on Torn // @author TLDR [3348219] // @match https://www.torn.com/profiles.php?XID=* // @grant none // ==/UserScript== (function() { 'use strict'; // Create the button const button = document.createElement('button'); button.textContent = 'Next Profile'; button.style.position = 'fixed'; button.style.top = '10px'; button.style.left = '10px'; button.style.zIndex = '9999'; // Add click event listener button.addEventListener('click', () => { const currentURL = window.location.href; const xidMatch = currentURL.match(/XID=(\d+)/); if (xidMatch) { const currentXID = parseInt(xidMatch[1]); const nextXID = currentXID + 1; window.location.href = `https://www.torn.com/profiles.php?XID=${nextXID}`; } }); // Add the button to the page document.body.appendChild(button); })();