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; //Adding button to global navigation user dropdown menu - Source: Thread:1121340, originally from User:SuperSajuuk, here: User_blog:DaNASCAT/Technical_Update:_September_26,_2016#comm-1119391 if (mw.config.get('skin') === 'monobook') { mw.util.addPortletLink('creates', '#', 'Sandbox', 'creates'); } else { // Prevent adding duplicate links (Credits to Cblair91) if(!window.CustomButtonsLoaded) { addOnloadHook(addCustomLinks); }   var CustomButtonsLoaded = true; } function addCustomLinks { $('Sandbox').insertBefore('.wds-global-navigation__user-menu .wds-dropdown__content li:last'); } // Customizations // 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 = { namespaces: { include: [12, 13, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 502] } }; // 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'; // AbuseLogRC Customization, see http://dev.wikia.com/wiki/AbuseLogRC abuseLogRC_interval = 300; //Sync with the refresh above abuseLogRC_entries = 5; // 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: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',        'u:dev:AllPagesHideRedirect/code.js',        'u:dev:GlobalEditcount/code.js',        'u:dev:AbuseLogRC.js',        'u:dev:DiscussionsFeed.js',        'u:dev:ContribsLink/code.js'    ] }); //Importing from AutoLink from Wikipedia //mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lenore/autolink.js&action=raw&ctype=text/javascript'); //Debug notice //console.log("End of personal javascript reached");