User:Exodeux/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)
 
(2 intermediate revisions by the same user not shown)
Line 192:
//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>'); }
//
Line 207 ⟶ 205:
//[[User:Lupin/popupsdev.js]] - please include this line
+ mw.loader.load('httphttps://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2Lupin/codepopupsdev.js'
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title&action=raw&ctype=User:Lupintext/popupsdev.jsjavascript' );
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
popupShortcutKeys=true; // optional: enable keyboard shortcuts
Line 304 ⟶ 301:
//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="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
/**** welcome new user ****/
mw.loader.load('src="httphttps://en.wikipedia.org/w/index.php?title=User:Nmajdan/welcome_newuser.js' +
document.write('<script type="text/javascript"' +
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); }
'src="http://en.wikipedia.org/w/index.php?title=User:Nmajdan/welcome_newuser.js' +
'&action=raw&ctype=text/javascript&dontcountme=s"></script>');
importScript('User:AzaToth/twinkle.js');function resetSandbox() {
document.editform.wpTextbox1.value = "\{\{Please leave this line alone (sandbox heading)\}\}\n" +
Line 322 ⟶ 316:
function addResetTab() {
if( wgPageName == "Wikipedia:Sandbox" && ( wgAction == "edit" || wgAction == "submit" ) ) //Add the tab for previews, edit conflicts, and bare editing of the sandbox
{ mw.util.addPortletLink('p-cactions', 'javascript:resetSandbox()', 'reset', 'ca-reset', "Reset the Sandbox"); }
}