User:Aditya Kabir/monobook.js: Difference between revisions

Content deleted Content added
Optimum tool set
m Maintenance: Replacing document.write with mw.loader.load (mw:ResourceLoader/Migration_guide_(users)#Avoid_document.write() - phab:T130879)
 
(2 intermediate revisions by the same user not shown)
Line 94:
// install [[User:Cacycle/wikEd]] in-browser text editor
+ mw.loader.load('httphttps://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
document.write('<script type="text/javascript" src="'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/*
Line 105 ⟶ 104:
// Script from [[User:Lupin/recent2.js]]
mw.loader.load(
document.write('<script type="text/javascript" src="'
+ 'httphttps://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></s'+'cript>');
/*
Line 115 ⟶ 114:
/* [[User:Lupin/popups.js]] */
mw.loader.load(
document.write('<script type="text/javascript" src="'
+ 'httphttps://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/*{{User:AndyZ/peerreviewer.js}}*/