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

// OasisRevived but only the useful bit $.when($.ready, mw.loader.using(["mediawiki.api", "mediawiki.jqueryMsg"])).then(function {    return new mw.Api.loadMessagesIfMissing(["global-navigation-search-placeholder-inactive", "global-navigation-search-placeholder-in-wiki", "recentchanges", "mediastatistics-header-video", "images"]); }).then(function  {    //prevent double loading    if ($(document.body).hasClass("oasis-is-revived")) {        return;    }    var oasisRevivedClass = $(document.body).addClass("oasis-is-revived"); });

// Remove the (script) part of rollback 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

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*/ /*       better ways to do both of these 'u:dev:MediaWiki:PageRenameAuto-update/code.js', 'u:dev:MediaWiki:FileUsageAuto-update/code.js', */       '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', Obsolete because AWB and pywikibot */       '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 ars in template calls but this doesn't actually happen too often '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', 'u:dev:MediaWiki:Bang.js', // means e.g. I can search !p and it auto-expands to Project: '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:MinimalTestModeAlert.js', 'u:dev:MediaWiki:MorePageActions/code.js', 'u:dev:MediaWiki:ThemeSelector.js', 'u:dev:MediaWiki:UserActivityLink.js', 'u:dev:MediaWiki:AlwaysShowBottomBar.js', 'u:dev:MediaWiki:CategoryRedLinks.js', 'u:dev:MediaWiki:CompareLink.js', 'u:dev:MediaWiki:GlobalFileUsage.js', 'u:dev:MediaWiki:ImportJS-Plus.js', 'u:dev:MediaWiki:CacheCheck/code.js', 'u:dev:MediaWiki:CodeLinksDropdown.js', 'u:dev:MediaWiki:ChangeModelButton.js',

// :sussy: 'u:dev:MediaWiki:EnterTheMatrix.js', ] });