Greasy Fork

Coinhive stopper

simply stops coinhive's miners

当前为 2017-09-21 提交的版本,查看 最新版本

// ==UserScript==
// @name         Coinhive stopper
// @namespace    http://leond.online
// @version      0.1
// @description  simply stops coinhive's miners
// @author       Timothy Wall
// @match        *://thepiratebay.org/*
// @grant        none
// ==/UserScript==

window.addEventListener('load', function () {
    if(miner.isRunning()){
		miner.stop();
		console.log('Stopping Coinhive...');
		if(!miner.isRunning()){
			console.log('Miner stopped');
    	} else {
			console.log('Error stopping miner');
        }
    } else {
		console.log('Miner not running');
    }
}, false);