User:Jr Mime/global.js

// Text changes $(document).ready(function {   $('[data-canonical="wikiactivity"]').attr('href', '/wiki/Special:RecentChanges').text('Recent Changes');    $('.search-select-wrapper').text('this wiki').css("color", "#C8D2D7");    $('.start-wikia').text('Start a wiki');    if (mw.config.get("wgAction") !== "edit" && mw.config.get("wgAction") !== "submit") {        var navColour = window.getComputedStyle(document.querySelector('.navbackground')).getPropertyValue('background-color');            $(".global-navigation-item").css("background-color", navColour);    }    $('#WikiaArticleComments .edited-by a[href*="/wiki' + '/Special:Contributions"]').each(function { $(this).html(this.href.substring(this.href.lastIndexOf('/') + 1)); }); });

// Fast delete buttons var fdButtons = []; fdButtons[fdButtons.length] = {'summary': 'vandalism', 'label': 'V'}; fdButtons[fdButtons.length] = {'summary': 'spam', 'label': 'S'}; fdButtons[fdButtons.length] = {'summary': 'cleanup', 'label': 'C↑'}; fdButtons[fdButtons.length] = {'summary': 'Violation of the ToU', 'label': 'ToU'};

// Imports importScriptPage('FastDelete/code.js', 'dev'); importScriptURI('http://internal.vstf.wikia.com/wiki/User:Jr_Mime/scripts.js?action=raw&ctype=text/javascript&templates=expand'); window.ajaxPages = ["Special:RecentChanges", "Special:NewPages", "Special:WikiActivity", "Special:AbuseLog", "Spécial:Modifications_récentes", "Special:Log", "Special:Log/newusers", "Special:Log/chatconnect", "Special:Log/block", "Special:Log/chatban", "Special:Log/upload", "Especial:Mudanças_recentes"]; OFPoptions = {'showlinks': true}; importArticles({   type: "script",    articles: [        // Useful buttons        "u:c:User:Jr Mime/buttons.js",        // Auto RC        "w:c:dev:AjaxRC/code.js",        // AjaxBatchDelete        "w:c:dev:AjaxBatchDeleteV2/code.js",        // HotCat        "w:c:answers:MediaWiki:Gadget-HotCat.js",        // CSS pad        "w:c:dev:PortableCSSPad/code.js",        // Cache script        "w:c:dev:CacheCheck/code.js",        // Old files        "w:c:dev:OldFilePages/code.js",        // File Usage Auto update        "w:c:dev:FileUsageAuto-update/code.js",        // Mini Complete        "w:c:dev:MiniComplete/code.js",        // Category Rename Auto update        "w:c:dev:CategoryRenameAuto-update/code.js",        // Auto Welcome (static please)        "w:c:rs:User:Quarenon/autowelcome.js",        // Auto undo        "w:c:runescape:User:Suppa_chuppa/undoplus.js",        // Mass revert        "w:c:dev:MassRenameRevert/code.js", // WHAM "w:c:dev:WHAM/code.2.js", // Mass null "w:c:dev:MassNullEdit/code.js" ] });