1,212
edits
Jack Phoenix (talk | contribs) No edit summary |
Jack Phoenix (talk | contribs) No edit summary |
||
Line 160: | Line 160: | ||
} | } | ||
article = encodeURIComponent( article.replace( MonobookSidebar.re_s, '_' ) ); | article = encodeURIComponent( article.replace( MonobookSidebar.re_s, '_' ) ); | ||
if(wgUserName=='Jack Phoenix')console.log('MonobookSidebar: article is' + article); | |||
var a = document.createElement( 'a' ); | var a = document.createElement( 'a' ); | ||
if ( article.length > 7 && article.substr( 0, 7 ) == 'http://' ) { | if ( article.length > 7 && article.substr( 0, 7 ) == 'http://' ) { | ||
a.setAttribute( 'href', article ); | |||
} else { | } else { | ||
article = encodeURIComponent( article.replace( MonobookSidebar.re_s, '_' ) ); | article = encodeURIComponent( article.replace( MonobookSidebar.re_s, '_' ) ); |