您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Prevents the widgets so they can't be moved by accident by removing the move button
// ==UserScript== // @name Homepage-Widget-Lock // @namespace whiskysip.torn.chilliking.userscripts // @version 1.0 // @description Prevents the widgets so they can't be moved by accident by removing the move button // @author ChilliKing [2949201] // @license GNU GPLv3 // @run-at document-start // @match https://www.torn.com/index.php // @grant none // ==/UserScript== (function() { 'use strict'; // Set this variable to true to enable the removal of accordion-header-move elements var removeAccordions = true; window.addEventListener('load', function() { if (removeAccordions) { var elements = document.querySelectorAll('.accordion-header-move'); elements.forEach(function(element) { element.parentNode.removeChild(element); }); } }); })();