Difference between revisions of "User:WindPower/vector.js"

From Team Fortress Wiki
Jump to: navigation, search
m (i try dis)
m (ded)
Line 14: Line 14:
 
// Shiny thingy test
 
// Shiny thingy test
 
// importScript('User:WindPower/Spai.js');
 
// importScript('User:WindPower/Spai.js');
 
// temp
 
importScriptURI('http://en.wikipedia.org/w/index.php?title=user:js/urldecoder.js&action=raw&ctype=text/javascript');
 

Revision as of 17:20, 23 March 2012

function gid(i) {
    return document.getElementById(i);
}
function replaceRecentChangesLink(){
    if(gid('n-recentchanges')) {
        var a = gid('n-recentchanges').getElementsByTagName('a');
        for(i in a) {
            a[i].href = '/w/index.php?title=Special:RecentChanges&hidebots=0';
        }
    }
}
addOnloadHook(replaceRecentChangesLink);

// Shiny thingy test
// importScript('User:WindPower/Spai.js');