User:Ohmystars/global.js

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

/* Import scripts */ if(wgDBname !== 'admintools') { 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:View Source/code.js", // View the article in raw code            "w:dev:AjaxBatchDelete/code.2.js", // Delete a batch of pages        ]    }); }

/* Import scripts on Main namespace */ if(wgCanonicalNamespace == 'Main') { importScriptPage('AjaxRedirect/code.js','dev'); // Quickly redirect the current page }

/* Import scripts on 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        ]    }); }

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

/* Import scripts on upload pages*/ if(wgPageName == 'Special:Upload' || wgPageName == 'Special:MultipleUpload') { importScriptPage('MiniComplete/code.js','dev'); // Autocomplete for description in Upload }