User:Akasim/global.js

importScriptPage('EditIntroButton/code.js', 'dev');

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:FindAndReplace/code.js',    ] });

importArticles({ type: 'script', articles: [    'u:dev:Standard_Edit_Summary/code.js' ]});

importArticles({   type: 'script',    articles: [        'u:googology:MediaWiki:Common.js'    ] });

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Insert a comment visible only by editors", "tagOpen": "", "sampleText": "Insert comment here" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/central/images/a/a0/Button_references_alt.png", "speedTip": "Insert a list of references",

"tagOpen": "=== Sources ===\n ",

"tagClose": "", "sampleText": "" }; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/1/16/Button_reflink_alternate.png", "speedTip": "Insert a reference", "tagOpen": " ", "sampleText": "Insert reference" }; }

/* Any JavaScript here will be loaded for all users on every page load. */ (function {  var script = document.createElement("script");  script.type = "text/javascript";  script.src  = "http://cdn.mathjax.org/mathjax/latest/MathJax.js";

var config = 'MathJax.Hub.Config({' +                'extensions: ["tex2jax.js"],' +                 'jax: ["input/TeX","output/HTML-CSS"]' +               '});' + 'MathJax.Hub.Startup.onload;';

if (window.opera) {script.innerHTML = config} else {script.text = config}

document.getElementsByTagName("head")[0].appendChild(script); });

/* Cf. http://dev.wikia.com/wiki/MassEdit */ importArticles({   type: 'script',    articles: [        'u:dev:MassEdit/code.js'    ] });

importArticles({   type: "script",    articles: [        'u:dev:AjaxBatchDelete/code.2.js'    ] });

importScriptPage('SkinSwitchButton/code.js', 'dev');

if (mw.config.get("wgUserGroups").indexOf('sysop') > -1) { massCategorizationDelay = 1000; importScriptPage('MediaWiki:MassCategorization/code.js', 'dev'); }

importArticles({   type: 'script',    articles: [        'u:dev:CategoryRenameAuto-update/code.js',    ] });