MediaWiki:Monobook.js: Difference between revisions

testing to see if this fixes the encoding problems
No edit summary
(testing to see if this fixes the encoding problems)
Line 159: Line 159:
article = caption = txt;
article = caption = txt;
}
}
article = encodeURIComponent( article.replace( MonobookSidebar.re_s, '_' ) );
article = 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://' ) {