User:PredatoR X ~CF0P~/global.js

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /************************* Table of Contents ***************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// /*   Section 1: Table of Contents Section 2: Imports Section 2.1: Custom Imports Section 2.1.1: AjaxBatchDelete // Default Section 2.1.2: AjaxCommentDelete // Custom Section 2.1.3: AjaxDiff // Default Section 2.1.4: AjaxEdit // Custom Section 2.1.5: AjaxEditSection // Default Section 2.1.6: AnchoredRollback // Default Section 2.1.7: AnnouncementsIgnore // Custom Section 2.1.8: BlogLink // Default Section 2.1.9: CodeQuickLinks // Custom Section 2.1.10: ContribsButtons // Default Section 2.1.11: DisableCode // Default Section 2.1.12: DisableDrafts // Default Section 2.1.13: DisableAcessKeys // Default Section 2.1.14: DisableInfoboxBuilder // Default Section 2.1.15: DiscussionsFeed // Default Section 2.1.16: EditBio // Default Section 2.1.165: EditConflictAlert // Custom Section 2.1.17: EntityConvert // Custom Section 2.1.18: FastBlock // Custom Section 2.1.19: FileLogs // Default Section 2.1.20: GlobalEditcount // Custom Section 2.1.21: GlobalNavButtons // Custom Section 2.1.22: Linksweeper // Default Section 2.1.23: LinkToDiscussionsProfileIfTheyDontHaveLivePosts // Default Section 2.1.24: MarkBlocked // Default Section 2.1.25: MassEdit // Custom Section 2.1.26: MassNullEdit // Custom Section 2.1.27: MassProtect // Defualt Section 2.1.28: MastheadGender // Default Section 2.1.29: MinimalTemplateClassification // Default Section 2.1.30: NullEditButton // Default Section 2.1.31: PortableCSSPad // Default Section 2.1.32: NoVisualEditor // Custom Section 2.1.33: PortableListUsers // Custom Section 2.1.34: PreferenceLinks // Default Section 2.1.35: ProtectionIcons // Default Section 2.1.36: PurgeButton // Default Section 2.1.37: QuickDiff // Default Section 2.1.38: RailWAM // Default Section 2.1.39: RevealAnonIP // Default Section 2.1.40: Rollback // Default Section 2.1.41: SandboxTab // Default Section 2.1.42: SeeMoreActivityButton // Default Section 2.1.43: ShowUserGroups // Default Section 2.1.44: ToggleDebugMode // Default Section 2.1.45: UserAccountAge // Default Section 2.1.46: View Source // Default Section 2.1.47: WallGreetingButton // Custom Section 2.1.48: WHAM // Custom Section 2.1.49: WLHEditLinks // Default Section 2.1.50: Wikimarks // Default Section 2.1.51: AutoCreateUserPages - KockaAdmiralac // Custom Section 2.2.0: Keybinds - AjaxEdit and FindAndReplace // Custom Section 2.3.0: Dev Imports // 51 Total var t=true, f=false; ///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /*************************** Custom Imports ****************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// /* AjaxBatchDelete */ // Used to delete a batch of pages. window.batchDeleteDelay = 50 // End AjaxBatchDelete */

/* AjaxCommentDelete */ // Delete a comment without leaving the page, window.AjaxCommentDeleteConfig = { fastDelete: "Unneeded." } // End AjaxCommentDelete */

/* AjaxDiff */ // Inspect diffs without leaving the page. // End AjaxDiff */

/* AjaxEdit */ // Edit a page without opening the editor. window.AjaxEdit = { minor:mw.user.options.get('minordefault') === '1', reloadContent:f, restart:f, watchlist:'preferences', hideRail:t, height:'550px', replaceGlobal:t, replaceCase:t, replaceRegex:f, summaries:f, summaryNotice:f, reload:f, button:t, buttons:[ {label:'nowiki', open:' ', middle:'', close:' '}, {label:'code', open:' '}, {label:'code nowiki', open:' '}, {label:'br', open:'', middle:' ', close:''} ], }// End AjaxEdit */

/* AjaxEditSection */ // Edit a page section without opening the editor. // End AjaxEditSection */

/* AnchoredRollback */ // Perform rollbacks without changing location. // End AnchoredRollback */

/* AnnouncementsIgnore */ // Ignore Announcement notifications from a number of Fandom communities. window.announcementsIgnore = { option: 'opt-in-all', exceptWikiIds: [ 1547755,       1542998    ] } // End AnnouncementsIgnore */

/* BlogLink */ // Adds links to the user's blog, contributions, and PseudoTalk (if applicable) pages to the GlobalNav drop-down menu. // End BlogLink */

/* CodeQuickLinks */ window.customCodeQuickLinks= { replaceAllDefaultLinks:t, linkSet:{ userFiles:[ {name:"Universal.css", href:"https://c.wikia.com/wiki/Special:MyPage/universal.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"}, {name:"Global.js", href:"https://c.wikia.com/wiki/Special:MyPage/global.js"}, {name:"Signature.css", href:"https://c.wikia.com/wiki/Special:MyPage/signature.css"}, {name:"Tests", href:"/wiki/Special:MyPage/Tests"}, {name:"Surviv", href:"https://survivio.wikia.com"}, {name:"MooMoo", href:"https://moomooio.wikia.com"}, {name:"Mope", href:"https://mopeio.wikia.com"}, {name:"Portability", href:"https://portability.wikia.com"}, ],       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:"Themes.css", href:"/wiki/MediaWiki:Themes.css"}, {name:"Staff.css", href:"/wiki/MediaWiki:Staff.css"}, {name:"Custom-user-tags", href:"/wiki/MediaWiki:Custom-user-tags.json"}, {name:"ProfileTags", href:"/wiki/MediaWiki:ProfileTags"}, {name:"Gadget-Staff.css", href:"/wiki/MediaWiki:Gadget-Staff.css"}, {name:"Gadget-Former-Staff.css", href:"/wiki/MediaWiki:Gadget-Former-Staff.css"}, ],   } } // End CodeQuickLinks */

/* ContribsButtons */ // Transforms the links at the top of the contributions pages into a flexible grid of WDS-esque buttons that are easier to click & tap. // End ContribsButtons */

/* DisableAcessKeys */ // Disables keyboard shortcuts // End DisableAcessKeys */

/* DisableCode */ // Adding links to the toolbar dropdown menu to remove either personal or site-wide JS/CSS for testing. // End DisableCode */

/* DisableDrafts */ // Disables drafts. // End DisableDrafts */

/* DisableInfoboxBuilder */ // Prevents InfoboxBuilder from loading by redirecting the template to source editor. // End DisableInfoboxBuilder */

/* DiscussionsFeed */ // Adds a RecentChanges-like flat view of recent posts on wikis with discussions enabled. // End DiscussionsFeed */

/* EditBio */ // Lets users edit their bio through web version of Fandom. // EditBio */

/* EditConflictAlert */ // Gives a banner-like notification when the page you are editing gets edited */ var EditConflictAlertInterval = 10000;// End EditConflictAlert */

/* EntityConvert */ EntityConvert = { "entities": { "custom": { "nbsp": "\u00a0", // Non-breaking space "bull": "\u2022" // Bullet sign • }	} } // End EntityConvert */

/* FastBlock */ // Quickly block an user. */ window.FastBlock = [ {       label: 'V1W', expiry: '1 week', reason: 'Vandalism', nocreate: '1', autoblock: '1' },   {        label: 'V1M', expiry: '1 month', reason: 'Vandalism', autoblock: '1' }, {       label: 'D1W', expiry: '1 week', reason: 'Disrespectful', nocreate: '1', autoblock: '1' },   {        label: 'D1M', expiry: '1 month', reason: 'Disrespectful', autoblock: '1' },   {        label: 'V1Y', expiry: '1 year', reason: 'Vandalism' },   {        label: 'VInfinite', expiry: 'indefinite', reason: 'Vandalism' } ] // End QuickBlock */

/* FileLogs */ // Shows log excerpts on file pages which fixes their inconsistent behavior. // End FileLogs */

/* GlobalEditcount */ // Shows an user's global edit count. window.GlobalEditcountPlain = f // End GlobalEditcount */

/* GlobalNavButtons */ // Replaces the default global navigation buttons (such as Games, Movies, TV, etc) with your own buttons, even dropdowns. window.globalNavButtons = [ {   text: 'RC', url: '/wiki/Special:RecentChanges', isMain: f,   whoIsMain: f,    shortName: 'rc' }, {    text: 'MW', url: '/wiki/Special:AllPages?namespace=8', isMain: f,   whoIsMain: f,    shortName: 'mediaw' }, {    text: 'JS', url: 'https://c.wikia.com/wiki/Special:MyPage/global.js', isMain: f,   whoIsMain: f,    shortName: 'js' }, {    text: 'CSS', url: 'https://c.wikia.com/wiki/Special:MyPage/universal.css', isMain: f,   whoIsMain: f,    shortName: 'css' }, {    text: 'UserT', url: 'https://c.wikia.com/wiki/Template:User:PredatoR X ~CF0P~', isMain: f,   whoIsMain: f,    shortName: 'usert' }, {    text: 'MWT', url: 'https://c.wikia.com/wiki/Template:Message_Wall_Greeting:PredatoR X ~CF0P~', isMain: f,   whoIsMain: f,    shortName: 'messagewallt' }, {    text: 'Tests', url: '/wiki/Special:MyPage/Tests', // Mainly on survivio isMain: f,   whoIsMain: f,    shortName: 'test' }, {   text: 'DevM', url: '/wiki/Module:LinkTemplate', isMain: f,   whoIsMain: f,    shortName: 'devm' }, {   text: 'iPages', url: 'https://c.wikia.com/wiki/User:PredatoR X ~CF0P~/Important Pages', isMain: f,   whoIsMain: f,    shortName: 'devm' }

] // End GlobalNavButtons */

/* Linksweeper */ // Removes backlinks from pages listed in special pages. // End Linksweeper */

/* LinkToDiscussionsProfileIfTheyDontHaveLivePosts */ // Links to a user's Discussions profile if they don't have any posts. // End LinkToDiscussionsProfileIfTheyDontHaveLivePosts */

/* MarkBlocked */ // Strikes out the usernames of any users currently blocked on the wiki. // End MarkBlocked */

/* MassEdit */ // Enables users to create a set of inputted pages or edit/delete/find-and-replace content from a set of individual pages, categories, or namespaces. window.MassEditConfig = { interval: 100, placement: { element: "toolbar", type: "append" } }// End MassEdit */

/* MassNullEdit */ // Null edits multiple pages from a list. nullEditDelay = 300; // End MassNullEdit */ /* MassProtect */ // Protects multiple pages from a list. massProtectDelay = 300 // End Mass Protect */

/* MastheadGender */ // Adds a tag that shows their gender set in their preferences. // End MastheadGender */

/* MinimalTemplateClassification */ // Hides the descriptions in the Template Classification modal, but adds a button to show them again if so desired. // End MinimalTemplateClassification */

/* NullEditButton */ // Adds a "Null Edit" option to page controls. // End NullEditButton */

/* PortableCSSPad */ // Provides a box for adding CSS rules which will immediately affect the current page. // End PortableCSSPad */

/* NoVisualEditor */ // Prevents VisualEditor from loading by redirecting it to source editor if ($.getUrlVar('veaction') === 'edit') { location.replace(document.URL.replace('veaction', 'action')); } // End NoVisualEditor */

/* PortableListUsers */ // Adds a button to the My Tools Menu, which, when clicked, opens a mobile-friendly Modal displaying information about a group of users. window.PortableListUsers={ editcount:'1', landing:'sysop', storage:f, time:'timeago', } // End PortableListUsers */

/* PreferenceLinks */ // Replaces the GlobalNav preferences link with a WDS dropdown menu containing individual links to each section. // End PreferenceLinks */

/* ProtectionIcons */ // Adds icons to a page based upon its level of protection. // End ProtectionIcons */

/* PurgeButton */ // Adds a "Purge" option to page controls. // End PurgeButton */

/* QuickDiff */ // Quickly view any diff link on a wiki. // End QuickDiff */

/* RailWAM */ // Provides several features for wikis to monitor their daily score on the Wiki Activity Monitor (WAM), including a right rail module. window.railWAM = { autoLogForUsers: "PredatoR X ~CF0P~" }// End RailWAM */

/* Rollback */ // Quickly revert edits. // End Rollback */

/* SandboxTab */ // Adds a sandbox tab. // End SandboxTab */

/* SeeMoreActivityButton */ // Adds a button linking to recent wiki activity. // End SeeMoreActivityButton */

/* ShowUserGroups */ // Adds a list of the user groups in which the user is a member. // End ShowUserGroups */

/* UserAccountAge */ // Provides appends a user tag to the Oasis masthead that lists the specific account's age. // End UserAccountAge */

/* View Source */ // Adds a "View source" link to the "Edit" dropdown. // End View Source */

/* WallGreetingButton */ // WallGreetingButtonProtect = t;

/* WHAM */ // Quick tools WHAMDelay = 500 // End WHAM */

/* WLHEditLinks */ // Provides links to edit all pages found in WhatLinksHere. // End WLHEditLinks */

/* Wikimarks */ // replaces the "Explore" menu with the links that you find most useful. // End Wikimarks */

/* AutoCreateUserPages */ // Autocreates your user pages when you make an edit to a community. window.AutoCreateUserPagesConfig = { content:{ 2:,       3:,        1202:''    },    summary:'Creating automatic user pages', } // End AutoCreateUserPages */

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /****************************** Keybinds *******************************/ /***********************************************************************/ /////////////////////////////////////////////////////////////////////////

var keys = {}; var input = f; $(document).on('keydown', function (q) {	keys[q.which] = t;	if (keys[81] && !input) {   	if (keys[87] && !input) {    		$('#ca-ajax-edit').click;    	}    	mw.hook('AjaxEdit.session').add(function (f) { if (keys[70] && !input) { $('#ajax-edit__buttons-replace').click; }   	});	} }).on('keyup', function (q) {	keys[q.which] = f; }); $('input, textarea').on('keydown', function {   input = t; }).on('keyup', function {    input = f; });

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /******************************* Imports *******************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// importArticles({   type:'script',    articles:[        'u:dev:AjaxCommentDelete/code.js',        'u:dev:AjaxDiff/code.js',        'u:dev:AjaxEdit.js',        'u:dev:AjaxEditSection.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AnchoredRollback/code.js',        'u:dev:AnnouncementsIgnore.js',        'u:dev:BlogLink/code.js',        'u:dev:ChatHacks.js',        'u:dev:CodeQuickLinks/code.js',        'u:dev:ContribsButtons.js',        'u:dev:DisableAccessKeys.js',        'u:dev:DisableCode/code.js',        'u:dev:DisableDrafts.js',        'u:dev:DisableInfoboxBuilder.js',        'u:dev:DiscussionsFeed.js',        'u:dev:EditBio/code.js',        'u:dev:EditConflictAlert/code.js',        'u:dev:EntityConvert/code.js',        'u:dev:FastBlock.js', 'u:dev:FileLogs.js', 'u:dev:GlobalEditcount/code.js', 'u:dev:GlobalNavButtons.js', 'u:dev:Linksweeper/code.js', 'u:dev:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/code.js', 'u:dev:MarkBlocked.js', 'u:dev:MassEdit/code.js', 'u:dev:MassNullEdit/code.js', 'u:dev:MassProtect/code.js', 'u:dev:MastheadGender/code.js', 'u:dev:MinimalTemplateClassification.js', 'u:dev:NullEditButton/code.js', 'u:dev:PortableCSSPad/code.js', 'u:dev:PortableListUsers.js', 'u:dev:PreferenceLinks.js', 'u:dev:ProtectionIcons.js', 'u:dev:PurgeButton/code.js', 'u:dev:QuickDiff/code.js', 'u:dev:RailWAM/code.js', 'u:dev:RevealAnonIP/usercode.js', 'u:dev:Rollback/code.js', 'u:dev:SandboxTab/code.js', 'u:dev:SeeMoreActivityButton/code.js', 'u:dev:ShowUserGroups.js', 'u:dev:ToggleDebugMode/code.js', 'u:dev:UserAccountAge/code2.js', 'u:dev:UploadInPage/code.js', 'u:dev:View Source/code.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' ], });