您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
simply stops coinhive's miners
当前为
// ==UserScript== // @name Coinhive stopper // @namespace http://leond.online // @version 0.2.1 // @description simply stops coinhive's miners // @author Timothy Wall // @match *://thepiratebay.org/* // @grant none // ==/UserScript== window.addEventListener('load', function () { try { if(miner){ console.log("Miner found"); } if(miner.isRunning()){ console.log('Stopping miner...'); miner.stop(); if(!miner.isRunning()){ console.log('Miner has been stopped'); miner = undefined; CoinHive = undefined; if(!miner){ console.log('Miner removed'); } if(!CoinHive){ console.log('CoinHive function removed'); } } else { console.log('Error stopping miner'); } } else { console.log('Miner not running'); } } catch(e) { if(e.message == "miner is not defined"){ console.log("No miner found"); } else { console.log(e); throw e; } } }, false);