User:AZPR/personalredirect.js

// if(document.location.href.substring(0,51)=="http://en.wikipedia.org/wiki/Special:Search?search="){ thePage = document.location.href.substring(51,document.location.href.length) wikiURL = "http://en.wikipedia.org/wiki/" /* Usage for personal redirects:

Add the contents of this page. For every personal redirect you wish to add, add the following onto your monobook.js file:

if(thePage=="THE REDIRECT"){ document.location.href = wikiURL+"THE PAGE YOU WISH TO REACH" }

where THE REDIRECT is the redirect (note: colons should be replaced with %3A), and THE PAGE YOU WISH TO REACH is the title of the page you wish to reach. Please do not forget the quotes, otherwise it won't work.

For example,

if(thePage=="U%3AAZ"){ document.location.href = wikiURL+"User:AndyZ" }

Please add all the personal redirects before the closing brace at the end.

if(thePage=="U%3AJS"){ document.location.href = wikiURL+"User:AZPR/monobook.js" } if(thePage=="U%3AJPR"){ document.location.href = wikiURL+"User:AndyZ/peerreviewer.js" } if(thePage=="U%3AT"){ document.location.href = wikiURL+"User talk:AndyZ" } if(thePage=="U%3PR"){ document.location.href = wikiURL+"User:AndyZ/PR" }

//end brace } //