Greasemonkey SSID Check

From SubPos
Jump to navigation Jump to search
// ==UserScript==
// @name     SubPos DD-WRT Remove SSID Check
// @include  http://[your_router_ip]*
// @include  https://[your_router_ip]*


function isValid (SSID) {
    return true;
}

addJS_Node (isValid);

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);
}