User:Meeples/monobook.js: Difference between revisions

Content deleted Content added
Meeples (talk | contribs)
m Twinkle
m Maintenance: Replacing document.write with mw.loader.load (mw:ResourceLoader/Migration_guide_(users)#Avoid_document.write() - phab:T130879)
 
(5 intermediate revisions by 2 users not shown)
Line 1:
importScript('User:AzaToth/twinkle.js');
 
 
//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
+ mw.loader.load('httphttps://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
 
// [[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>');
 
 
// Script from [[User:MarkS/extraeditbuttons.js]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js'
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title&action=raw&ctype=User:MarkStext/extraeditbuttons.jsjavascript' );
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
//ARV Install -- see User:Lightdarkness/ARV
function inc (file) {
mw.loader.load('/w/index.php?title='+file+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
var lt = String.fromCharCode(60);
var gt = String.fromCharCode(62);
document.writeln(lt+'script type="text/javascript" src="/w/index.php?title='+file+'&action=raw&ctype=text/javascript&dontcountme=s"'+gt+lt+'/script'+gt);
}
 
inc("User:Lightdarkness/aiv.js");
 
 
// 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"></script>');
 
//
Line 39 ⟶ 30:
// [[User:Kbh3rd/whackamole.js]] - please include this line
//
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Kbh3rd/whackamole.js'
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title&action=raw&ctype=User:Kbh3rdtext/whackamole.jsjavascript' );
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');