您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
no change
// ==UserScript== // @name no change to leaders // @namespace http://tampermonkey.net/ // @version 0.1 // @description no change // @author Salmon // @match /^https{0,1}:\/\/((www|qrator|my|mirror)\.(heroeswm|lordswm)\.(ru|com)|178\.248\.235\.15)\/(leader_guild|leader_army_exchange).php*/ // @include /^https{0,1}:\/\/((www|qrator|my|mirror)\.(heroeswm|lordswm)\.(ru|com)|178\.248\.235\.15)\/(leader_guild|leader_army_exchange).php*/ // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @license MIT // @grant none // ==/UserScript== (function() { 'use strict'; if (location.href.includes('leader_guild.php')) { let elems = [...document.getElementsByClassName('home_button2')]; elems = elems.filter(el => el.firstChild.href); elems = elems.filter(el => el.firstChild.href.includes("leader_army_exchange")); elems[0].remove(); } if (location.href.includes("leader_army_exchange.php")) { location.pathname = '/leader_guild.php' } })();