User:TheWWRNerdGuy/global.js

window.AjaxUndoPrompt = true; // Otherwise Ajax Undo is just inferior rollback basically window.AjaxUndoMinor = true;

window.toDoList = { page: 'User:TheWWRNerdGuy' }; // more useful than /todo imo

window.massRenameSummary = ' ' // Remove the (automatic) thing from MassRename window.massRenameDelay = 3000 // Reduce chances of hitting rate limits

// Remove the (script) part of rollback script window.dev = $.extend(true, window.dev, {   i18n: {        overrides: {            Rollback: {                'summary': 'Reverted edits by $1 to last revision by $2',                // 'summary': ' ',                'summaryShort': 'k'            }        }    } });

window.customUserAccountAge = { showFullDate: true }; // UserAccountAge

mw.config.set('UMFBypassLicenseCheck', true); // UploadMultipleFiles

// modified version of script to use fandomdesktop instead of common /* (function {    if (window.NavCodeLinksLoaded) {        return;    }    window.NavCodeLinksLoaded = true;    $('.wds-global-navigation__user-menu .wds-list, .wiki-tools .wds-dropdown__content .wds-list').append( ['css', 'js'].map(function (ext) {           return $('', { append: $('', {                   'href': mw.util.getUrl('MediaWiki:Fandomdesktop.' + ext),                    text: 'Fandomdesktop ' + ext.toUpperCase                }) });       })    ); });
 * NavCodeLinks
 * Adds Wiki's CSS and JS link to navigation dropdown
 * @author Monochromatic Bunny

// LastEdited window.lastEdited = { size: false, // clutter diffModal: false, // I hate the QuickDiff modal };

// https://dev.fandom.com/f/p/4400000000000020879/r/4400000000000162375 $('.tools a[href$="Special:Log"]').each(function(_, elem) {   elem.href += '?page=' + encodeURIComponent(mw.config.get('wgPageName')); });

// prevent discord integrator loading (I don't think this works tbh) window.DiscordIntegratorLoaded = true // prevent quick diff loading (strangely, this does work) window.quickDiffLoaded = true

importArticles({   type: 'script',    articles: [        /* Rollback/Spam prevention stuff        Basically just there to stop spam/useless contributions*/        'u:dev:MediaWiki:Rollback/code.js',        // reverse-engineered rollback script        'u:dev:MediaWiki:AnchoredRollback/code.js',        // makes rollback happen without leaving the page        'u:dev:MediaWiki:MassRollback.js',        // add rollback all option        'u:dev:MediaWiki:Nuke/code.js',        // Deletes all pages created by a user        'u:dev:MediaWiki:AddBlockUserTag/code.js',        // Adds a Block button to a user's masthead for easy access

/* Page Controls Stuff that appears in the dropdown menu next to the edit button*/ 'u:dev:MediaWiki:View_Source/code.js', // lightweight source viewer which also shows links (GOATed) 'u:dev:MediaWiki:NullEditButton/code.js', // just read about it on the page 'u:dev:MediaWiki:PurgeButton.js', // AJAX purging

/* My Tools Stuff that appears in the My Tools menu at the bottom of the screen 'u:dev:MediaWiki:MassEdit/code.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:JWB/load.js', Obsolete because AWB and pywikibot, still occasionally useful due to lack of configuration required */       'u:dev:MediaWiki:MassRename/code.js', 'u:dev:MediaWiki:AjaxBatchDelete.js', 'u:dev:MediaWiki:AjaxBatchUndelete.js', // 'u:dev:MediaWiki:MassRenameRevert/code.js', // kinda useless, just reversing MassRename is better imo

/* Help Stuff that I find to be generally quite helpful (sometimes theoretically), mostly just small QOL things*/ 'u:dev:MediaWiki:CopyTitle.js', // adds buttons to copy the page title with or without namespace (GOATed) 'u:dev:MediaWiki:DupeArgs.js', // easy for spotting duplicate vars in template calls but this doesn't actually happen too often and IDK if I even like it       'u:dev:MediaWiki:EditConflictAlert/code.js', // I don't even know if this is useful any more 'u:dev:MediaWiki:DecodeURI/code.js', // useful once in a blue moon 'u:dev:MediaWiki:FastFileDelete.js', // adds a delete button on Special:UnusedFiles 'u:dev:MediaWiki:CategoryQuickRemove.js', // similar thing but for page categories 'u:dev:MediaWiki:AjaxUndo/code.js', // undo but only one button needed (GOATed) 'u:dev:MediaWiki:ToDoList.js', // adds quick toolbar access to a specific page 'u:dev:MediaWiki:UploadMultipleFiles.js', // GOATed

//Visual stuff 'u:dev:MediaWiki:MarkBlocked.js', // strikethrough for blocked users 'u:dev:MediaWiki:ProtectionIcons.js', // this is quite cool and helpful

//Fun 'u:dev:MediaWiki:FirstEditDate.js', 'u:dev:MediaWiki:ShowUserGroups.js', 'u:dev:MediaWiki:MastheadGender/code.js', 'u:dev:MediaWiki:RevealAnonIP/usercode.js', 'u:dev:MediaWiki:UserAccountAge/code2.js', 'u:dev:MediaWiki:UserAndIPTools.js', 'u:dev:MediaWiki:ShowWROnToolbar.js', // WWR (real)

//Pretty cool 'u:dev:MediaWiki:AddUserRightsTag/code.js', // same thing as masthead block thing 'u:dev:MediaWiki:ImportJSPage/code.js', // makes importjs look nicer 'u:dev:MediaWiki:MassNullEdit/code.js', // GOATed (null edits everything (useful in and of itself), but also try using it on a category or whatlinkshere page and you'll see its true power) 'u:dev:MediaWiki:GlobalJSLinks.js', // makes navigating through global js, css etc. a bit easier 'u:dev:MediaWiki:Bang.js', // means e.g. I can search !p and it auto-expands to Project: (GOATed) 'u:dev:MediaWiki:Sofix.js', // idek but it seems important 'u:dev:MediaWiki:DisableCode/code.js', // adds some my tools buttons to disable CSS and JS

'u:dev:MediaWiki:PowerDelete.js', // delete and protect title 'u:dev:MediaWiki:WHAM/code.2.js', // WHAM 'u:dev:MediaWiki:OriginalImages.js', // Looks cool 'u:dev:MediaWiki:PageReport.js', // Adds a parser report to the right rail's Page Tools

'u:dev:MediaWiki:MinimalTestModeAlert.js', // I don't know if I'll ever use it but having an icon to show I'm in test mode is cool 'u:dev:MediaWiki:UserActivityLink.js', // useful occasionally ig       'u:dev:MediaWiki:AlwaysShowBottomBar.js', // I think just makes the toolbar always show up, quite nice 'u:dev:MediaWiki:CategoryRedLinks.js', // makes categories listed at bottom of page redlinks if the category doesn't exist 'u:dev:MediaWiki:CompareLink.js', // makes the "Compare selected revisions" button a link so it can be opened in a new tab 'u:dev:MediaWiki:CacheCheck/code.js', // Crosses out resolved things on stuff like Special:WantedPages 'u:dev:MediaWiki:CodeLinksDropdown.js', // links to my personal css/js pages 'u:dev:MediaWiki:ChangeModelButton.js', // adds change content model to dropdown next to edit button 'u:dev:MediaWiki:MisspelledPage/code.js', // interesting, if you misspell a page name slightly it can help with navigation 'u:dev:MediaWiki:LastEdited/code.js', // adds up some stuff to the top of the page about the latest edit to the page 'u:dev:MediaWiki:UserBadge/code.js', // adds some badges after usernames to show user groups 'u:dev:MediaWiki:BlockSummary.js', // adds a little thing on blocked users' pages 'u:dev:MediaWiki:HighlightDeprecatedElements.js', // Adds a really annoying red underline to deprecated HTML elements because why not 'u:dev:MediaWiki:TemplatesUsedModule.js', // displays the templates used on the page on the right rail

/* :sussy: Try them 😏*/ // 'u:dev:MediaWiki:EnterTheMatrix.js', // 'u:dev:MediaWiki:YouShallNotPass/code.js', 'u:dev:MediaWiki:Discussions Restore All.js', ] });