User:AndyZ/personalredirect.js

// var p_redirects = new Array(	["U:AZ", "User:AndyZ"],	["U:JS", "User:AndyZ/monobook.js"],	["U:SUGG", "User:AndyZ/Suggestions"],	["U:PR", "User:AndyZ/PR"],	["U:PRT", "User:AndyZ/PRtemplates"],	["U:FT", "User:AndyZ/monobook.js/footnotehelper.js"],	["U:RE", "User:AndyZ/monobook.js/mypersonalredirect.js"],	["U:SAND", "User:AndyZ/sandbox"],	["U:JSAND", "User:AndyZ/sandbox.js"],	["U:JPR", "User:AndyZ/peerreviewer.js"],	["U:JPR2", "User:AndyZ/peerreviewer2.js"]   );

if(wgPageName == "Special:Search"){ addOnloadHook(function {    for(i = 0; i < p_redirects.length; i++){        if(document.getElementById("contentSub").getElementsByTagName("a")[0].innerHTML == p_redirects[i][0])        	document.location.href = "http://en.wikipedia.org/wiki/" + p_redirects[i][1];    }  }); } //