User:Saxbryn/monobook.js

/* Takes the wikipage "page" and includes its raw text as javascript. */ function import_module(page){ if( document.createElement && document.childNodes ) { var url = 'http://en.wikipedia.org/w/index.php?title=' + escape(page) + '&action=raw&ctype=text/javascript&dontcountme=s'; var scriptElem = document.createElement('script'); scriptElem.setAttribute('src', url); scriptElem.setAttribute('type', 'text/javascript'); document.getElementsByTagName('head')[0].appendChild(scriptElem); } }

//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'); }

import_module('Wikipedia:WikiProject User scripts/Scripts/Formatter'); import_module('Wikipedia:WikiProject User scripts/Scripts/quickedit.js'); import_module('Wikipedia:WikiProject User scripts/Scripts/Easy_db'); import_module('Wikipedia:WikiProject User scripts/Scripts/AutoAFD.js'); import_module('Wikipedia:WikiProject User scripts/Scripts/Quick_wikify.js'); import_module('Wikipedia:WikiProject User scripts/Scripts/CleanupTab.js'); import_module('Wikipedia:WikiProject User scripts/Scripts/Revert_tools'); import_module('Wikipedia:WikiProject User scripts/Scripts/View_source');