您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Inverts the attacking layout horizontally, placing buttons on the right side of the screen
// ==UserScript== // @name Attacking Fakie // @namespace dev.kwack.torn.attacking-fakie // @version 1.0.0 // @description Inverts the attacking layout horizontally, placing buttons on the right side of the screen // @author Kwack [2190604] // @match https://www.torn.com/loader.php // @run-at document-end // ==/UserScript== if (new URL(document.location).searchParams.get("sid") !== "attack") return; // Only trigger on the attack page (() => { "use strict"; waitForElement("#attacker > div[class*=playerArea_]").then((element) => { element.css("flex-direction", "row-reverse"); }); function waitForElement(selector) { return new Promise((res) => { const getElement = () => { const element = $(selector); if (element.length) { res(element); } else { setTimeout(getElement, 100); } } getElement(); }) } })();