User:Ohmystars/global.js

/*   ##############################################    SCRIPTS CONFIGURATION ##############################################

// Auto-refresh ajaxPages = ['Special:WikiActivity', 'Special:RecentChanges', 'Special:Log', "Special:Contributions"];

/*   ##############################################    IMPORT SCRIPTS ##############################################

importArticles({   type: "script",    articles: [        "u:dev:MediaWiki:NoImageLightbox/code.js", // Disable lightbox loader for images        "u:dev:MediaWiki:NullEditButton/code.js", // "Null Edit" option to rebuild the page         "u:dev:MediaWiki:View Source/code.js", // View the article in raw code        "u:dev:MediaWiki:MassCategorization/code.js", // Categorization (add/remove/replace) on multiple pages        "u:dev:MediaWiki:MultiUpload.js", // Multiple files upload    ] });

// Special namespace if(wgCanonicalNamespace == 'Special') { importArticles({       type: "script",        articles: [            "u:dev:MediaWiki:CacheCheck/code.js", // Cross out resolved entries on cached Special Pages            "u:dev:MediaWiki:AjaxRC/code.js", // Auto refreshing recent updates            "u:dev:MediaWiki:AjaxPatrol/code.js", // Makes the patrol links ajax links        ]    }); }

// Thread namespace if(wgCanonicalNamespace == 'Thread' || wgCanonicalNamespace == 'Board Thread') importScriptPage('Thread Inspection/code.js','dev'); // Reviewing removed messages from threads

// Upload pages if(wgCanonicalSpecialPageName == 'Upload' || wgCanonicalSpecialPageName == 'MultipleUpload') importScriptPage('MiniComplete/code.js','dev'); // Autocomplete for description in Upload

/*   ##############################################    HACKS/FIXES ##############################################

// Thread history return to thread if(wgCanonicalNamespace == "Thread" && wgAction == "history") $('.SortingBar').after('Back to thread');

// Make Visual Editor links load the regular editor instead if($.getUrlVar('veaction') == 'edit') location.replace(document.URL.replace('veaction','action'));