All pastes #1016228 Raw Edit

norbits_not_connected_removal.js

public javascript v1 · immutable
#1016228 ·published 2008-05-12 20:49 UTC
rendered paste body
// ==UserScript==// @include http://www.norbits.net*// @include http://www.norbits.net// @include http://norbits.net*// @include http://norbits.net// ==/UserScript==(function(){         if(location.hostname.indexOf('norbits.net') == -1) {        return false;    }       function getNodes(expression, startElement) {        startElement = startElement || document;        var nodes = document.evaluate( expression, startElement, null,                                        XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null );                return nodes;    }      document.addEventListener(    'DOMContentLoaded',    function (e) {             try{            var nodes = getNodes('//font[@color="red"' +                                 'and contains(text(), "IKKE ")]' +                                  '//a[@href="faq.php#user8" and contains(text(), "connectable")]/../..');            var stupidStatement = nodes.snapshotItem(0);                        stupidStatement.style.visibility = 'hidden';                    }catch(e) {                }    },    false  );    })();