User:ThePokegeek5000/global.js

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /************************* Table of Contents ***************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// /*   Section 1: Table of Contents Section 2: Functions Section 2.1: Kill Infobox Builder | By Eizen Section 2.2: Kill Mainpage Ads Residue (WIP) | By ThePokegeek5000 Section 3: Import Customization A Lot Of Import Customization; 1 for Every Import Section 4: Imports

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /***************************** Functions *******************************/ /***********************************************************************/ /////////////////////////////////////////////////////////////////////////

/* Kill Infobox Builder | By Eizen */ if (mw.config.get("wgCanonicalSpecialPageName") === "InfoboxBuilder") { var $pageName = "Template:" + mw.config.get("wgPageName").split("/")[1] + "?action=edit&useeditor=source"; window.location.href = mw.config.get("wgArticlePath").replace("$1", $pageName); }/**/

/* Kill Mainpage Ads Residue (WIP) | By ThePokegeek5000 */ /* background-ad background-not-tiled background-dynamic *///One with Ad /* uap-skin has-bfaa *///One without ad, but scrollable defect /* mediawiki ltr ns-0 ns-subject page-MooMoo_io_Wiki oasis-one-column oasis-breakpoints skin-oasis mainpage user-logged background-fixed wiki-moom wikia-bar-visible menu-dark page-bright *///Same Classes /* background-ad background-not-tiled background-dynamic */// w/ Only Classes /* uap-skin has-bfaa */// w/o Only Classes var killAdsResidueConfig = { tags: [ document.getElementsByTagName("body"), document.getElementById("globalNavigation") ],   removeClasses: [ ["background-ad", "background-not-tiled", "background-dynamic", "uap-skin", "has-bfaa"], ["bfaa-pinned"] ],   addClasses: [ [""],       [""]    ], };/**/

/*var killAdsResidue = function { for (var a = 0; a < killAdsResidueConfig.tags.length; a++) { var tag = killAdsResidueConfig.tags[a]; var remove = killAdsResidueConfig.removeClasses[a]; var add = killAdsResidueConfig.addClasses[a]; for (var b = 0; b < remove.length; b++) { var classRemove = remove[b]; tag.classList.remove(classRemove); }       for (var c = 0; c < remove.length; c++) { var classAdd = add[c]; tag.classList.add(classAdd); }   } };/**/

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /************************ Import Customization *************************/ /***********************************************************************/ /////////////////////////////////////////////////////////////////////////

/* Community User:TYA AutoEditDropdown */

/* AjaxBatchDelete */ batchDeleteDelay = 250;/**/

/* AjaxBatchUndelete */

/* AjaxDelete */ window.AjaxDelete = { deleteReasons: { 'Vandalism': 'Vandalism', 'Spam': 'Spam', 'Marked for speedy deletion': 'Speedy', 'Empty page': 'Empty', 'Author request': 'Author request', 'Irrelevant to ': 'Irrelevant', 'Failed to comply with the manual of style for over 6 months': 'MoS' },   imageDeleteReasons: { 'Offensive': 'Offensive', 'Innapropiate': 'Innapropiate', 'Harassment': 'Harassment', 'Housekeeping/Unused': 'Unused', 'Copyright infringement': 'Copyright', 'Author request': 'Author request' },   autoCheckWatch: true, noUndelete: false, };/**/

/* AjaxThreadDelete */ window.AjaxThreadDeleteConfig = { fastDelete: false, reason: 'Cleanup' };

/* AjaxUndo */

/* CleanWantedFiles */

/* CodeQuickLinks */ window.customCodeQuickLinks= { replaceAllDefaultLinks: true, linkSet: { userFiles: [ {               name: "Global.js", href: "//c.wikia.com/wiki/Special:MyPage/global.js", },           {                name: "Global.css", href: "//c.wikia.com/wiki/Special:MyPage/universal.css", },           {                name: "Common.js", href: "/wiki/Special:MyPage/common.js", },           {                name: "Common.css", href: "/wiki/Special:MyPage/common.css", },           {                name: "Wikia.js", href: "/wiki/Special:MyPage/wikia.js", },           {                name: "Wikia.css", href: "/wiki/Special:MyPage/wikia.css", },           {                name: "Chat.js", href: "/wiki/Special:MyPage/chat.js", },           {                name: "Chat.css", href: "/wiki/Special:MyPage/chat.css", },           {                name: "", href: "", },           {                name: "Universal.css", href: "//c.wikia.com/wiki/Special:MyPage/global.css", },           {                name: "Wikimarks", href: "/wiki/Special:MyPage/Wikimarks", },           {                name: "Sandbox", href: "/wiki/Special:MyPage/Sandbox", },           {                name: "To Do List", href: "/wiki/Special:MyPage/To Do List", },       ],        siteFiles: [ {               name: "JSPages", href: "/wiki/Special:JSPages", },           {                name: "ImportJS", href: "/wiki/MediaWiki:ImportJS", },           {                name: "Common.js", href: "/wiki/MediaWiki:common.js", },           {                name: "Common.css", href: "/wiki/MediaWiki:common.css", },           {                name: "Wikia.js", href: "/wiki/MediaWiki:wikia.js", },           {                name: "Wikia.css", href: "/wiki/MediaWiki:wikia.css", },           {                name: "Chat.js", href: "/wiki/MediaWiki:chat.js", },           {                name: "Chat.css", href: "/wiki/MediaWiki:chat.css", },           {                name: "", href: "", },           {                name: "Themes.css", href: "/wiki/MediaWiki:Themes.css", },           {                name: "Staff.css", href: "/wiki/MediaWiki:Staff.css", },           {                name: "ProfileTags", href: "/wiki/MediaWiki:ProfileTags", },           {                name: "", href: "", },       ],    } };/**/

/* DiscussionsFeed */

/* EditConflictAlert */ var EditConflictAlertInterval = 10000;/**/

/* FileLogs */

/* FindAndReplace */ var cvGlobalMatching = 'checked'; // Global matching, Default Checked. var cvCaseSensitive = 'checked'; // Case sensitive, Default UnChecked. var cvEnableRegex = 'unchecked'; // Regular expression, Default UnChecked. /**/

/* GlobalEditcount */ window.GlobalEditcountPlain = false;/**/

/* Linksweeper */ linkSweepConfirmation = true; LinkSweeperDelay = 1000;/**/

/* Mark Blocked */

/* MassCategoration */ massCategorizationDelay = 500;/**/

/* MassEdit */ window.massEditConfig = { editInterval: 1000 };/**/

/* MassNullEdit */ nullEditDelay = 250;/**/

/* MassProtect */ massProtectDelay = 500;/**/

/* MassRedirect */ massRedirectDelay = 500;/**/

/* MassRename */ massRenameDelay = 500; massRenameSummary = "Mass Edit (Automatic)";/**/

/* MassRenameRevert */

/* MastheadGender */

/* NullEditButton */

/* PortableCSSPad */

/* QuickDiff */

/* Rollback */

/* SandboxTab */

/* ToggleDebugMode */

/* UserAccountAge */

/* WallGreetingButton */ WallGreetingButtonProtect = true;/**/

/* WHAM */ WHAMDelay = 500;/**/

/* WLHEditLinks */

/* Wikimarks */

/* Kocka User:KockaAdmiralac AutoCreateUserPages */ window.AutoCreateUserPagesConfig = { content: { 2: '',       3: '\n\n', 1202: ''   },    summary: 'Creating UserPages (Automatic)', };/**/

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /******************************* Imports *******************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// importArticles({   type: 'script',    articles: [        'u:community:User:TyA/AutoEditDropdown.js',        'u:dev:AjaxBatchDelete/code.2.js',        'u:dev:AjaxBatchUndelete.js',        'u:dev:AjaxThreadDelete/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:CleanWantedFiles/code.js',        'u:dev:CodeQuickLinks/code.js',        'u:dev:DiscussionsFeed.js',        'u:dev:EditConflictAlert/code.js',        'u:dev:FileLogs.js',        'u:dev:FindAndReplace/code.js',        'u:dev:GlobalEditcount/code.js',        'u:dev:Linksweeper/code.js',        'u:dev:MarkBlocked.js',        'u:dev:MassCategorization/code.js',        'u:dev:MassEdit/code.js',        'u:dev:MassNullEdit/code.js',        'u:dev:MassProtect/code.js', 'u:dev:MassRedirect/code.1.js', 'u:dev:MassRename/code.js', 'u:dev:MassRenameRevert/code.js', 'u:dev:MastheadGender/code.js', 'u:dev:NullEditButton/code.js', 'u:dev:PortableCSSPad/code.js', 'u:dev:QuickDiff/code.js', 'u:dev:Rollback/code.js', 'u:dev:SandboxTab/code.js', 'u:dev:ToggleDebugMode/code.js', 'u:dev:UserAccountAge/code2.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:WHAM/code.2.js', 'u:dev:WLHEditLinks/code.js', 'u:dev:Wikimarks/code.js', 'u:kocka:User:KockaAdmiralac/AutoCreateUserPages.javascript', 'u:kocka:User:KockaAdmiralac/DecodeHex.javascript', ], });/**/