User:Isdrakthül/global.js

var annoyingMessage = "You have new messages on Community Central";

function globalDocMod{ var isRunning; var isRunningTwo; var curel = document.firstChild; isRunning = 1; while(isRunning==1){ if(curel.firstChild!=null){ curel = curel.firstChild; }       else if(curel.nextSibling!=null){ curel = curel.nextSibling; }       else if(curel.parentNode.nextSibling!=null){ curel = curel.parentNode.nextSibling; }       else{ isRunningTwo=1; while(isRunningTwo==1){ if(curel.parentNode.nextSibling!=null){ curel = curel.parentNode.nextSibling; isRunningTwo=0; }               else if(curel!=document.lastChild){ curel = curel.parentNode; }               else{ isRunning=isRunningTwo=0; }           }        }        if(curel.innerHTML==annoyingMessage){ $(curel).hide; }   } }

function PersonalLoad{ $("#spotlight_container").hide; globalDocMod; } hookEvent('load', PersonalLoad);