User:Mainframe98/global.js

// User page creation, see dev.wikia.com/wiki/QuickCreateUserPage // Borrowed from Yatalu // How it works: if the wiki language is listed in the array below, it will create a page with the template including the language prefix at the end. If the language isn't listed, it uses English as default templateLanguages = ['en', 'fy', 'nl']; qtUserPageTemplate = ''; qtEnableUserPageOverwrite = true; //Message Wall Creation, see dev.wikia.com/wiki/QuickCreateMessageWallGreeting qtMessageWallGreetingTemplate = ''; qtEnableMessageWallGreetingOverwrite = true; //Highlight whitespace characters in diffs when they're the only thing that was changed //Written by Bobogoobo if (window.location.href.indexOf('diff=') !== -1) { $('.diffchange-inline').each(function {       if (!(new RegExp('\\S+').test($(this).text))) {            $(this).css('background-color', 'red');        }    }); } //Adding button to UserDropDown Menu, based on code from http://dev.wikia.com/wiki/AutoEditPages if (mw.config.get('skin') === 'monobook') { mw.util.addPortletLink('creates', '#', 'Sandbox', 'creates'); } else { if ($('.creates').length === 0) { $('#AccountNavigation > li > .subnav > li:last-child').after(              $('').append('Sandbox')             ); $('#my-tools-menu').prepend(' Sandbox'); }      } // MarkForDeletion customization, see http://dev.wikia.com/wiki/MarkForDeletion window.MarkForDeletion = { promptedDeleteReason: "Duplicate" }; //Nuke customization, see http://dev.wikia.com/wiki/Nuke nukeDeleteReason = "Removing spam"; // LastEdited customization, see http://dev.wikia.com/wiki/LastEdited window.lastEdited = { lang: 'nl', namespaces: { include: [12, 13, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 502, 828, 829] }, }; // PurgeButton customization, see http://dev.wikia.com/wiki/PurgeButton PurgeButtonText = 'Verversen'; // AjaxRC customization, see http://dev.wikia.com/wiki/AjaxRC window.ajaxPages = ["Special:RecentChanges", "Special:WikiActivity"]; //extend usage to Special:WikiActivity window.ajaxRefresh = 300000; //refresh every 5 minutes window.AjaxRCRefreshText = 'Automatisch verversen'; window.AjaxRCRefreshHoverText = 'Ververs deze pagina automatisch'; // Scripts importArticles({   type: 'script',    articles: [        'u:dev:CacheCheck/code.js',        'u:dev:LastEdited/code.js',        'u:dev:PurgeButton/code.js',        "u:dev:MarkForDeletion/code.js",        "u:dev:RevealAnonIP/usercode.js",        'u:dev:WallGreetingButton/code.js',        'u:dev:View Source/code.js',        'u:dev:QuickToolsv2/code.js',        'u:dev:TabKeyInserter/code.js',        'u:dev:NullEditButton/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:Rollback/code.js',        'u:dev:Nuke/code.js',        'u:dev:QuickCreateUserPage/code.js',        'u:dev:QuickCreateMessageWallGreeting/code.js',        'u:dev:AjaxPatrol/code.js',        'u:dev:ViewRemovedAlways/code.js',        'u:dev:QuickTitle/code.js'    ] });