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)
 
(15 intermediate revisions by 2 users not shown)
Line 1:
// Script from [[User:Lupin/recent2.js]]
+ mw.loader.load('httphttps://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2Lupin/coderecent2.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
//Interiot's javascript edit counter
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'); }
document.write('<script type="text/javascript" src="'
// [[User:Lupin/popups.js]]
+ 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js'
 
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
mw.loader.load(
'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');