User:Ohmystars/global.js

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

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

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

importArticles({   type: "script",    articles: [        "w:dev:NoImageLightbox/code.js", // Disable lightbox loader for images        "w:dev:NullEditButton/code.js", // "Null Edit" option to rebuild the page         "w:dev:AjaxRedirect/code.js", // Quickly redirect the current page        "w:dev:View Source/code.js", // View the article in raw code        "w:dev:AjaxBatchDelete/code.2.js", // Delete a batch of pages        "w:dev:MassNullEdit/code.js" // Mass Null Edit pages    ] });

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

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