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

/* 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 sectionwithout 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 */

/* 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 */

/* 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: 'WA', url: '/wiki/Special:WikiActivity', isMain: f,   whoIsMain: f,    shortName: 'wa' }, {    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 = { editInterval:500 } // End MassEdit */

/* MassNullEdit */ nullEditDelay = 300; /* MassProtect */ massProtectDelay = 300;

/* Make Visual Editor links load the regular editor instead */ if ($.getUrlVar('veaction') === 'edit') { location.replace(document.URL.replace('veaction', 'action')); } /* PortableListUsers */ window.PortableListUsers={ editcount:'1', landing:'sysop', storage:f, time:'timeago', }; /* WallGreetingButton */ WallGreetingButtonProtect = t; /* WHAM */ WHAMDelay = 500;

/* Kocka User:KockaAdmiralac/AutoCreateUserPages */ window.AutoCreateUserPagesConfig = { content:{ 2:,       3:,        1202:''    },    summary:'Creating automatic user pages', };

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /****************************** 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: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:DisableDrafts.js',        'u:dev:DisableInfoboxBuilder.js',        'u:dev:DiscussionsFeed.js',        'u:dev:EditBio/code.js',        'u:dev:EditConflictAlert/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: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' ], });