User:King Dragonhoff/global.js

// Dev Wiki Imports AjaxDiff = { expiry: "2 weeks", reason: "Spam" }; QuickThreads = { message: "Inappropriate", 'notify-admin': false }; QuickCommentsdeletereason = "Spam"; QuickCommentsreason = "Inappropriate behavior"; QuickCommentsduration = "2 weeks"; nullEditDelay = 500; massProtectDelay = 500; massCategorizationDelay = 500;

importArticles({ type: 'script',  articles: [    'u:dev:MediaWiki:WHAM/code.2.js',    'u:dev:MediaWiki:MassProtect/code.js',    'u:dev:MediaWiki:MassNullEdit/code.js',    'u:dev:MediaWiki:MassCategorization/code.js',    'u:dev:MediaWiki:PurgeButton/code.js',    'u:dev:MediaWiki:AjaxDiff/code.js',    'u:dev:MediaWiki:QuickComments/code.js',    'u:dev:MediaWiki:QuickThreads/code.js'  ] });

// Change user links on Recent Activity to go to Contributions (function {   function activityUserLinks {        $('.activityfeed .subtle > a, .activityfeed .wallfeed a.real-name, .activityfeed li > cite > a:not(.activityfeed-diff), .activityfeed .activity-type-talk a.real-name').each(function  { var username = decodeURIComponent($(this).attr('href').split(':').pop); if (!username.includes('Contributions')) { $(this).attr('href', mw.util.getUrl('Special:Contributions/' + username)); }       });    }    var activityEntries = document.querySelectorAll(".activityfeed > li").length;    $('.activity-feed-more').click(function { var userLinksInterval = setInterval(function {           if (document.querySelectorAll(".activityfeed > li").length > activityEntries) {                activityEntries = document.querySelectorAll(".activityfeed > li").length;                activityUserLinks;                clearInterval(userLinksInterval);            }        }, 1000); });   activityUserLinks; });