MediaWiki:Monobook.js: Difference between revisions

From Halopedia, the Halo wiki

(hmm)
No edit summary
Line 163: Line 163:
if ( article.length > 7 && article.substr( 0, 7 ) == 'http://' ) {
if ( article.length > 7 && article.substr( 0, 7 ) == 'http://' ) {
if ( wgUserName == 'Jack Phoenix' ) { // test code
if ( wgUserName == 'Jack Phoenix' ) { // test code
a.setAttribute( 'href', decodeURI( article ) );
a.setAttribute( 'href', decodeURIcomponent( article ) );
} else {
} else {
a.setAttribute( 'href', article );
a.setAttribute( 'href', article );