User:TheDemon08/global.js

window.highlightUsersConfig = { colors: { 'bot': 'var(--highlight-bot)', 'bureaucrat': 'var(--highlight-bureaucrat)', 'sysop': 'var(--highlight-sysop)', 'content-moderator': 'var(--highlight-content-moderator)', 'threadmoderator': 'var(--highlight-threadmoderator)', 'rollback': 'var(--highlight-rollback)', },   styles: { 'bot': 'var(--style-bot)', 'bureaucrat': 'var(--style-bureaucrat)', 'sysop': 'var(--style-sysop)', 'content-moderator': 'var(--style-content-moderator)', 'threadmoderator': 'var(--style-threadmoderator)', 'rollback': 'var(--style-rollback)', } }; window.ajaxSpecialPages = ["Recentchanges", "WikiActivity", "Watchlist", "Log", "Contributions"]; window.ajaxRefresh = 5000; window.ajaxIndicator = 'https://images.wikia.nocookie.net/software/images/a/a9/Indicator.gif'; window.BackToTopModern = true; window.BackToTopArrow = true; window.BackToTopSpeed = 200; window.BackToTopStart = 550; window.AjaxThreadDeleteConfig = { fastDelete: true, reason: 'Deleting comment' }; var MessageBlock = { title : 'Block', message : 'You have been blocked due to a reason Please view your block log for more information about your block. Thanks.' }; $.getScript("//dev.wikia.com/index.php?title=MediaWiki:DiscussionsBlock.js&action=raw&ctype=text/javascript"); $.getScript("https://dev.fandom.com/index.php?title=MediaWiki:DiscussionsButtons.js&action=raw&ctype=text/javascript"); window.WHAMBotMe = true; window.WHAMBotReason = "Cleaning"; window.WHAMDelay = 100; window.WHAMDeleteReason = "cleanup"; /*I don't have the time to do all of this nonsense in my mobile so AjaxBlock saves the time*/ window.AjaxBlock = { expiryTimes: { '2 hours': '2 hours', '1 day': 'one day', '1 week': 'a week', '2 months': '2m', 'never': 'Never' },   blockReasons: { 'Vandalism': 'Vandalism', 'Spam': 'Spam', 'Under the legal age': 'COPPA', 'Removing information/blanking articles': 'Blanking', 'Failing to comply with the File Policy': 'File policy', 'Inserting false information': 'Inserting false information', 'Removing content from pages': 'Removing content from pages', 'Inserting nonsense/gibberish into page(s)': 'Inserting nonsense/gibberish into page(s)', 'Intimidating behavior/harassment': 'Intimidating behavior/harassment', 'Uploading inappropriate images/videos': 'Uploading inappropriate images/videos', 'Spamming comments/forum threads': 'Spamming comments/forum threads', 'ToU violation':"Violation of Fandom's Terms of Use", 'Abusing multiple accounts': 'Multiaccounts', 'Bot cooldown': 'Bot cooldown (preventing harm)' },   /* must be true for maximum safety in the wiki */ check: { talk: true, autoBlock: true, override: true } }; QuickCommentsreason = "Adding unacceptable comments"; QuickCommentsdeletereason = "Inappropriate comments"; QuickCommentsduration = "2 weeks"; window.category = ['Candidates for deletion', 'Unused images']; window.reason = 'Housekeeping'; window.quickDeleteDelay = '800'; window.nukeDeleteReason = "Cleanup"; window.nukeDelay = 1000; window.massEditConfig = { editInterval: 650 }; window.fdButtons = [ {       summary: 'Housekeeping', label: 'Housekeeping' },   {        summary: 'Vandalism', label: 'Vandalism' },   {        summary: 'Spam', label: 'Spam' },   {        summary: 'Low quality article; not really needed like this. ',       label: 'Low Quality' },           {        summary: 'Copyright Violation', label: 'Copyright' },           {        summary: 'Marked for Deletion', label: 'Marked for Deletion' }, ]; window.pPreview = $.extend(true, window.pPreview, {RegExp: (window.pPreview || {}).RegExp || {} }); window.pPreview.defimage = 'https://images.wikia.nocookie.net/software/images/a/a9/Indicator.gif'; window.pPreview.noimage = 'https://vignette.wikia.nocookie.net/blacklist/images/f/ff/Picn-a.png/revision/latest'; window.pPreview.tlen = 1000; window.lastEdited = { avatar: true, avatarsize: 15, size: true, diff: true, comment: true, newpage: true, mainpage: true, time: 'timeago', timezone: 'UTC', lang: 'en', position: { element: document.getElementById('WikiaPageHeader'), method: 'append' },   namespaces: { exclude: [] },   pages: [] }; importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:MultiUpload/code.js',        'u:dev:MediaWiki:RailWAM/code.js',        'u:dev:MediaWiki:AjaxRC.js',        'u:dev:MediaWiki:AutoCreateUserPages.js',        'u:dev:MediaWiki:ModernProfile/EditButton.js',        'u:dev:MediaWiki:BackToTopButton/code.js',        'u:dev:MediaWiki:MastheadRightsBadge.js',        'u:dev:MediaWiki:EditBio/code.js',        'u:dev:MediaWiki:EditConflictAlert/code.js',        'u:dev:MediaWiki:dev:ModernLeaderboard.js',        'u:dev:MediaWiki:dev:SearchSuggest/code.js',        'u:dev:MediaWiki:ViewSource/code.js',        'u:dev:MediaWiki:RCStats.js',        'u:dev:MediaWiki:ProtectionIcons.js',        'u:dev:MediaWiki:ShowUserGroups.js',        'u:dev:MediaWiki:Status/code.js',        'u:dev:MediaWiki:MinimalJSPages.js', 'u:dev:MediaWiki:AjaxEdit.js', 'u:dev:MediaWiki:AdminDashboardblock.js', 'u:dev:MediaWiki:QuickDelete.js', 'u:dev:MediaWiki:QuickManagement.js', 'u:dev:MediaWiki:AjaxUndo.js', 'u:dev:MediaWiki:BlogDraft.js', 'u:dev:MediaWiki:UnhideUserMasthead/code.js', 'u:dev:MediaWiki:UnhideAceDiff.js', 'u:dev:MediaWiki:ReplyBottom/code.js', 'u:dev:MediaWiki:PowerDelete/code.js', 'u:dev:MediaWiki:SelectiveDelete/code.js', 'u:dev:MediaWiki:ChatQuote/code.js', 'u:dev:MediaWiki:WebArchive.js', 'u:dev:MediaWiki:AjaxRedirect/code.js', 'u:dev:MediaWiki:SeeMoreActivityButton/code.js', 'u:dev:MediaWiki:MarkBlocked.js', 'u:dev:MediaWiki:ListAdmins/code.js', 'u:dev:MediaWiki:CodeblockLineNumbers/code.js', 'u:dev:MediaWiki:PortableListUsers.js', 'u:dev:MediaWiki:View Raw/code.js', 'u:dev:MediaWiki:MisspelledPage/code.js', 'u:dev:MediaWiki:QuickComments/code.js', 'u:dev:MediaWiki:RevertOldGlobalNav/code.js', 'u:dev:MediaWiki:PageMakerPro/code.js', 'u:dev:MediaWiki:PageCreator/code2.js', 'u:dc-multiverse:MediaWiki:HighlightUsers.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:MediaWiki:GlobalEditcount/code.js', 'u:dev:MediaWiki:CodeLinksDropdown.js', 'u:dev:MediaWiki:ProfileIcons.js',//sitewide 'u:dev:MediaWiki:AdminDashboard JS-Button/code.js',//sitewide 'u:dev:MediaWiki:SandboxTab/code.js',//sitewide 'u:dev:MediaWiki:LinkPreview/code.js', 'u:dev:MediaWiki:EditIntroButton/code.js',//sitewide 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:ChatOptions/code.js', //'u:dev:MediaWiki:ModernButtons/code.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:BlogLink/code.js', 'u:dev:MediaWiki:VSTFReport.js', 'u:dev:MediaWiki:VSTF Report Menu/code.js', 'u:dev:MediaWiki:PiniginsUserInfo/code.js', 'u:dev:MediaWiki:AtUsername/code.js', 'u:dev:MediaWiki:AddSectionButton/code.js', 'u:dev:MediaWiki:RollbackSpamUserContribs/code.js', 'u:dev:MediaWiki:MercuryPreview/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:UserAccountAge/code2.js', 'u:dev:MediaWiki:FollowDropdown/code.js', 'u:dev:MediaWiki:DisplayTimer/code.js', 'u:dev:MediaWiki:AnchoredRollback/code.js', 'u:dev:MediaWiki:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/code.js', 'u:dev:MediaWiki:AbuseLogRC.js', 'u:dev:MediaWiki:CopyCodeButton.js', 'u:dev:MediaWiki:SelectContent.js', 'u:dev:MediaWiki:UsefulDropdown/code.js', 'u:dev:MediaWiki:UserActivityLink.js', 'u:dev:MediaWiki:WikiPlus/code.js', 'u:dev:MediaWiki:AjaxBlock/code.js', 'u:dev:MediaWiki:Thread Inspection/code.js', 'u:dev:MediaWiki:ChatErrorExplanation.js', 'u:dev:MediaWiki:AvatarLink.js', 'u:dev:MediaWiki:RecentChangesModule/code.js', 'u:dev:MediaWiki:JavascriptEditor.js', 'u:dev:MediaWiki:AjaxDelete/code.js', 'u:dev:MediaWiki:WorkingMoreUsersCount.js', 'u:dev:MediaWiki:GlobalChatJS.js', 'u:dev:MediaWiki:Luapreviewer/code.js', 'u:dev:MediaWiki:ListGroupMembers.js', 'u:dev:MediaWiki:AjaxRename/code.js', 'u:dev:MediaWiki:FixEditorTooltips.js', 'u:dev:MediaWiki:NewImages.js', 'u:dev:MediaWiki:AjaxThreadUnfollow/code.js', 'u:dev:MediaWiki:ConsistentModules/code.js', 'u:dev:MediaWiki:QuickComments/advanced.js', 'u:dev:MediaWiki:DiscussionsRailModule/code.js', 'u:dev:MediaWiki:RedirectManagement/code.js', ] }); //set scrollbar to whatever the wiki's link color is $(document).ready(function { $(document.body).addClass('group-' + mw.config.get('wgUserGroups')['0']); document.querySelector(":root").setAttribute(  "style",'--scrollbar-color: ' + mw.config.get('wgSassParams')['color-links'] + ';'); }); var WikisList = ""; MultipleWikis.forEach(CrossWikis); function CrossWikis(Wikis) { WikisList = WikisList + "" + Wikis + ".fandom.com"; }    //RecentChangesMultiple personal alterations $(".mw-special-WikiActivity .page-header__page-subtitle").append('See all cross-wiki activity |&nbspSee all local wiki activity'); $(".page-Special_CrossWikiRecentChanges #mw-content-text").html(' ' + WikisList + ' '); $(".page-Special_CrossWikiRecentChanges .page-header__title").html('Cross-Wiki Recent Changes'); if(wgPageName == 'Special:CrossWikiRecentChanges') {		$('title').html('Cross-Wiki Recent Changes | ' + mw.config.get('wgSiteName')); } if(wgPageName == 'Special:AdminDashboard') { $('.wiki .controls').prepend('  Theme Designer    Cross-Wiki Recent Changes   Local Wiki Recent Changes</a></li>'); } if(wgPageName == 'Special:SpecialPages') { $('table.mw-specialpages-table:nth-of-type(4) > tbody > tr > td:nth-of-type(3) > ul').append('Cross-Wiki Recent Changes</a></li>Recent changes</a></li>'); }