User:Anonymous anonymous/monobook.js: Difference between revisions

Content deleted Content added
No edit summary
m Maintenance: Replacing document.write with mw.loader.load (mw:ResourceLoader/Migration_guide_(users)#Avoid_document.write() - phab:T130879)
 
(14 intermediate revisions by 2 users not shown)
Line 1:
// Script from [[User:Lupin/recent2.js]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js'
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title&action=raw&ctype=User:Lupintext/recent2.jsjavascript' );
//Interiot's javascript edit counter
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }
// [[User:Lupin/popups.js]]
 
mw.loader.load(
'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');