User:CloudNine/monobook.js: Difference between revisions

Content deleted Content added
m Maintenance: Replacing document.write with mw.loader.load (mw:ResourceLoader/Migration_guide_(users)#Avoid_document.write() - phab:T130879)
m Maintenance: Replacing document.write with mw.loader.load (mw:ResourceLoader/Migration_guide_(users)#Avoid_document.write() - phab:T130879)
 
Line 13:
 
// install [[User:Cacycle/diff]] text diff code
+ mw.loader.load('httphttps://en.wikipedia.org/w/index.php?title=User:Cacycle/diff.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/diff.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
// install [[User:Pilaf/Live_Preview]] page preview tool
Line 23 ⟶ 22:
 
// install [[User:Mboverload/RegExTypoFix|RegExTypoFix]] common typo fixer
+ mw.loader.load('httphttps://en.wikipedia.org/w/index.php?title=User:Cacycle/RegExTypoFix.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/RegExTypoFix.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
// install [[User:Cacycle/wikEd international]] translation here
 
// install [[User:Cacycle/wikEd]] editing page extension
+ 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>');
 
// Script from [[User:Omegatron/monobook.js/addlink.js]]