User:Cheeseskates/antivandalkit.javascript

// ///////////////////////////////////////////////////////////////////////////////

//———————————————————————————————————————————————————————————————————————————— // Direct JavaScript code. /* Direct Javascript code is here either because a page does not exist for it  here on Wikia's and Wikimedia's domain or if it is too small to be worthy of   a pastebin import compression. */ //————————————————————————————————————————————————————————————————————————————

///////////////////////////////////////////////////////////////////////////////

// Add a clear reason button on Special:Delete if (mw.config.get("wgAction") === "delete") { $("#wpReason").after(' ⌫ '); $("#wpClearReason").click(function {   $("#wpReason").val("").focus;  }); }

// Add a history button on diff pages if ($('strong:contains("Changes:")').length) { $("#WikiaPageHeader").find("p").children("a").after(' (history)'); }

// Disable the 5 sec. edit save delay $(function { $("#editform").off("submit").on("submit", function { $(window).unbind(".leaveconfirm"); }); });

// AjaxDelete Configuration window.AjaxDelete = { deleteReasons: { "w:Help:Vandalism"      : "Vandalism", "w:Help:Spam"           : "Spam", "Marked for speedy deletion" : "Speedy", "Empty page"                : "Empty", "Author's request"          : "Author request", "Irrelevant to " : "Irrelevant" }, imageDeleteReasons: { "Offensive"                 : "Offensive", "inappropriate"             : "inappropriate", "Harassment"                : "Harassment", "Housekeeping/Unused"       : "Unused", "Copyright infringement"    : "Copyright", "Author's request"          : "Author request" }, autoCheckWatch: false, noUndelete: true };

// CacheCheck Configuration /* Add between the brackets the pages this script does not activate on. */ window.cacheSkip = [];

/* The number of links it will check and cross out before going no futher. */ window.cacheSkipLimit = 1E3;

/* I'm not entirely sure what this does, so I left it blank. */ window.topLevelCat = "";

// Fast Delete Configuration var fdButtons = [];          /*  Delete Summaries --- */ /* Button Labels */ fdButtons[fdButtons.length] = {"summary" : "spam",          "label" : "S"     }; fdButtons[fdButtons.length] = {"summary" : "Broken file",                   "label" : "B"     }; fdButtons[fdButtons.length] = {"summary" : "Duplicate",                     "label" : "D"     }; fdButtons[fdButtons.length] = {"summary" : "Housekeeping",                  "label" : "HK"    }; fdButtons[fdButtons.length] = {"summary" : "Cleanup",                       "label" : "C"     }; fdButtons[fdButtons.length] = {"summary" : "Unused",                        "label" : "U"     }; fdButtons[fdButtons.length] = {"summary" : "Unofficial/Irrelevant",         "label" : "UI"    }; fdButtons[fdButtons.length] = {"summary" : "ToU", "label" : "ToU"   };

// Global Navbar Configuration window.globalLinks = { global: { "User"       : "Special:Mypage", "Talk"       : "Special:Mytalk", "Contribs"   : "Special:MyContributions", "Admins"     : "Special:ListAdmins", "Activity"   : "Special:RecentChanges?days=99999&hidebots=0&hidepatrolled=0", "Maintenance" : "Special:Maintenance", "Torus"      : "Special:Torus", "Purge"      : "%page%?action=purge", "Raw"        : "%page%?action=raw", "Help"       : "Help:Index", "Contact"    : "Special:Contact" }, community: { "JS"         : "Special:Mypage/global.js", "CSS"        : "Special:Mypage/global.css" } };

// PageCreator Configuration var PCOptions = { avatar    : true, /* Display avatar           */ utc       : true, /* Display time of creation */ namespaces : [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 110, 111, 828, 829, 1202 ] };                     /* Namespace IDs used to specify where to activate script. */

// WHAM Configuration /* WHAM bots me by default */ WHAMBotMe = true;

/* Default reason */ WHAMBotReason = "Official Cleanup Business";

/* Ticks equaling 0.1 seconds. 1,000 ticks = 1 second */ WHAMDelay = 100;

///////////////////////////////////////////////////////////////////////////////

/// // ——————————————————————— End Configuration Section ———————————————————————— // ///

///////////////////////////////////////////////////////////////////////////////

//———————————————————————————————————————————————————————————————————————————— // Imports /* Imports minify the rest of the JavaScript or CSS code and combines multiple HTTP requests into a single data transfer, making it save space and load faster than direct code. It is recommended to import this way. */ //————————————————————————————————————————————————————————————————————————————

///////////////////////////////////////////////////////////////////////////////

//--- /* importscriptURL */ //---

// AutoLink - Parses wikilinks, [external links], {templates}, and URLs into clickable links importScriptURI("https://en.wikipedia.org/w/index.php?title=User:Lenore/autolink.js&action=raw&ctype=text/javascript");

// RevisionJumper - Quickly navigate between page revisions importScriptURI("https://de.wikipedia.org/w/index.php?title=MediaWiki:Gadget-revisionjumper.js&action=raw&ctype=text/javascript");

// wikEdDiff - Improved diff view between article versions importScriptURI("https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js&action=raw&ctype=text/javascript");

//--- /* importArticles */ //---

$(function { importArticles({ type: "script", articles: [ "u:dev:MediaWiki:AddUserRightsTag/code.js",                     // w:c:dev:AddUserRightsTag "u:dev:MediaWiki:AjaxBatchDelete/code.2.js",                    // w:c:dev:AjaxBatchDelete "u:dev:MediaWiki:AjaxBatchUndelete.js",                         // w:c:dev:AjaxBatchUndelete "u:dev:MediaWiki:AjaxDelete/code.js",                           // w:c:dev:AjaxDelete "u:dev:MediaWiki:AjaxPatrol/code.js",                           // w:c:dev:AjaxPatrol "u:dev:MediaWiki:AjaxUndo/code.js",                             // w:c:dev:AjaxUndo "u:dev:MediaWiki:CacheCheck/code.js",                           // w:c:dev:CacheCheck "u:dev:MediaWiki:CategoryRenameAuto-update/code.js",            // w:c:dev:CategoryRenameAuto-update "u:dev:MediaWiki:EditIntroButton/code.js",                      // w:c:dev:EditIntroButton "u:dev:MediaWiki:FastDelete/code.js",                           // w:c:dev:FastDelete "u:dev:MediaWiki:FastOldImageDelete/code.js",                   // w:c:dev:FastOldImageDelete "u:dev:MediaWiki:FileUsageAuto-update/code.js",                 // w:c:dev:FileUsageAuto-update "u:dev:MediaWiki:FloatingTableHeader/Code.js",                  // w:c:dev:FloatingTableHeader "u:dev:MediaWiki:GlobalEditcount/code.js",                      // w:c:dev:GlobalEditcount "u:dev:MediaWiki:LastEdited/code.js",                           // w:c:dev:LastEdited "u:dev:MediaWiki:ListFiles/code.js",                            // w:c:dev:ListFiles "u:dev:MediaWiki:MarkBlocked.js",                               // w:c:dev:MarkBlocked "u:dev:MediaWiki:MarkForDeletion/code.js",                      // w:c:dev:MarkForDeletion "u:dev:MediaWiki:MassBlock/code.js",                            // w:c:dev:MassBlock "u:dev:MediaWiki:MassCreate/code.js",                           // w:c:dev:MassCreate "u:dev:MediaWiki:MassNullEdit/code.js",                         // w:c:dev:MassNullEdit "u:dev:MediaWiki:MassProtect/code.js",                          // w:c:dev:MassProtect "u:dev:MediaWiki:MassRenameRevert/code.js",                     // w:c:dev:MassRenameRevert "u:dev:MediaWiki:MultipleFileDelete/code.js",                   // w:c:dev:MultipleFileDelete "u:dev:MediaWiki:NullEditButton/code.js",                       // w:c:dev:NullEditButton "u:dev:MediaWiki:OldFilePages/code.js",                         // w:c:dev:OldFilePages "u:dev:MediaWiki:PageCreator/code.js",                          // w:c:dev:PageCreator "u:dev:MediaWiki:PageRenameAuto-update/code.js",                // w:c:dev:PageRenameAuto-update "u:dev:MediaWiki:ProtectedHighlight/code.js",                   // w:c:dev:ProtectedHighlight "u:dev:MediaWiki:QuickDiff/code.js",                            // w:c:dev:QuickDiff "u:dev:MediaWiki:RevealAnonIP/code.js",                         // w:c:dev:RevealAnonIP "u:dev:MediaWiki:ShowUserGroups.js",                            // w:c:dev:ShowUserGroups "u:dev:MediaWiki:UserAccountAge/code.js",                       // w:c:dev:UserAccountAge "u:dev:MediaWiki:UserRightsRecord/code.js",                     // w:c:dev:UserRightsRecord "u:admintools:MediaWiki:Common.js/ajaxRollback.js",             // w:c:admintools:MediaWiki:Common.js/ajaxRollback.js "u:admintools:MediaWiki:Common.js/extraRollbacks.js",           // w:c:admintools:MediaWiki:Common.js/extraRollbacks.js "u:admintools:MediaWiki:Common.js/iprange.js",                  // w:c:admintools:MediaWiki:Common.js/iprange.js "u:admintools:MediaWiki:Common.js/Maintenance.js",              // w:c:admintools:MediaWiki:Common.js/Maintenance.js "u:josephhawk:User:Josephyr/categorycleanup.js",                // w:c:josephhawk:User:Josephyr/categorycleanup.js "u:josephhawk:User:Josephyr/FastActions.js",                    // w:c:josephhawk:User:Josephyr/FastActions.js "u:josephhawk:User:Josephyr/filecleanup.js",                    // w:c:josephhawk:User:Josephyr/filecleanup.js "u:josephhawk:User:Josephyr/linksweeper.js",                    // w:c:josephhawk:User:Josephyr/linksweeper.js "u:josephhawk:User:Josephyr/redirects.js",                      // w:c:josephhawk:User:Josephyr/redirects.js "u:josephhawk:User:Josephyr/tc.js",                             // w:c:josephhawk:User:Josephyr/tc.js "u:kocka:MediaWiki:AjaxCommentDelete/code.js",                  // w:c:kocka:MediaWiki:AjaxCommentDelete/code.js "u:kocka:MediaWiki:AjaxThreadDelete/code.js",                   // w:c:kocka:MediaWiki:AjaxThreadDelete/code.js "u:kocka:MediaWiki:MessageWallActions/code.js",                 // w:c:kocka:MediaWiki:MessageWallActions/code.js "u:kocka:User:KockaAdmiralac/BoardThreadDelete.javascript",     // w:c:kocka:User:KockaAdmiralac/BoardThreadDelete.javascript "u:kocka:User:KockaAdmiralac/GlobalNavModifications.javascript", // w:c:kocka:User:KockaAdmiralac/GlobalNavModifications.javascript "u:kocka:User:KockaAdmiralac/LinkModifications.javascript",     // w:c:kocka:User:KockaAdmiralac/LinkModifications.javascript "u:kocka:User:KockaAdmiralac/UnhideUserWikis.javascript",       // w:c:kocka:User:KockaAdmiralac/UnhideUserWikis.javascript "u:noreply:MediaWiki:HideWikiaLogs.js",                         // w:c:noreply:MediaWiki:HideWikiaLogs.js "u:noreply:MediaWiki:FileUsage.js",                             // w:c:noreply:MediaWiki:FileUsage.js "u:ozank:MediaWiki:Chatconnect.js",                             // w:c:ozank:MediaWiki:Chatconnect.js "u:starmanw:User:Dorumin/QuickLogs",                            // w:c:starmanw:User:Dorumin/QuickLogs "u:starmanw:User:Dorumin/WHAM",                                 // w:c:starmanw:User:Dorumin/WHAM "u:undertale:User:Cheeseskates/C-WRB.javascript",               // User:Ditto Creeper Bot "u:undertale:User:Cheeseskates/ME.javascript",                  // w:c:dev:MassEdit "u:undertale:User:Cheeseskates/MFD.javascript",                 // w:c:dev:MultipleFileDelete "u:undertale:User:Cheeseskates/RB.javascript",                  // w:c:dev:Rollback "u:vstf:User:Sactage/EasyCURangeCalc.js"                        // w:c:vstf:User:Sactage/EasyCURangeCalc.js ] }); });

///////////////////////////////////////////////////////////////////////////////

/// // —————————————————— End ImportArticles section and page ——————————————————— / ///

///////////////////////////////////////////////////////////////////////////////

//