Greasy Fork is available in English.

block

ominięcie blokad

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/3865/12027/block.js

function addJS_Node (text, s_URL, funcToRun, runOnLoad) {
    var D                                   = document;
    var scriptNode                          = D.createElement ('script');
    if (runOnLoad) {
        scriptNode.addEventListener ("load", runOnLoad, false);
    }
    scriptNode.type                         = "text/javascript";
    if (text)       scriptNode.textContent  = text;
    if (s_URL)      scriptNode.src          = s_URL;
    if (funcToRun)  scriptNode.textContent  = '(' + funcToRun.toString() + ')()';

    var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
    targ.appendChild (scriptNode);
}

function register_event(name, funcGM, funcInject)
{
	unsafeWindow.addEventListener(name, exportFunction(funcGM, unsafeWindow), false);
	addJS_Node (null, null, funcInject);
}

if(!cloneInto) { function cloneInto(obj) { return obj; } }
if(!exportFunction) { function exportFunction(obj) { return obj; } }