User:Bengl/monobook.js: Difference between revisions

Content deleted Content added
Winhunter (talk | contribs)
m Maintenance: Replacing document.write with mw.loader.load (mw:ResourceLoader/Migration_guide_(users)#Avoid_document.write() - phab:T130879)
 
(3 intermediate revisions by 2 users not shown)
Line 2:
//---------------------------------------------------------------
//History tools
mw.loader.load(
document.write('<script type="text/javascript" src="'
+ 'httphttps://en.wikipedia.org/w/index.php?title=User:Voice_of_All/History/monobook.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//END
//---------------------------------------------------------------
Line 1,712:
//************
//MAIN
addOnloadHook$(Mainfast)
function Mainfast()
{
Line 1,741:
// <nowiki>Filter changes live [[Category:VoA scripted admins]]
// [[User:Lupin/recent2.js]] - please include this line
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"></script>');
 
// [[User:Lupin/popupsdev.js]] - please include this line
Line 1,758:
 
//</nowiki>[[Category:Wikipedians who use VoA 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'); }