User:PredatoR X ~CF0P~/global.js

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /************************* Table of Contents ***************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// /*   Section 1:Table of Contents Section 2:Custom Imports Section 2.1: Keybinds Section 3:Imports var t=true, f=false; ///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /*************************** Custom Imports ****************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// /* AjaxBatchDelete */ batchDeleteDelay = 300;/**/

/* AjaxEdit */ 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:''} ], } /* 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:"/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"}, ],   } };/**/ /* EditConflictAlert */ var EditConflictAlertInterval = 10000;/**/

/* FastBlock */ 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', } ];/**/ /* 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 = f;/**/

/* GlobalNavButtons */ window.globalNavButtons = [ {   text: 'RC', url: '/wiki/Special:RecentChanges', isMain: false, whoIsMain: false, shortName: 'RC' }, {    text: 'MW', url: '/wiki/Special:AllPages?namespace=8', isMain: false, whoIsMain: false, shortName: 'MW' }, {    text: 'JS', url: 'https://c.fandom.com/wiki/Special:MyPage/global.js', isMain: false, whoIsMain: Community, shortName: 'JS' }, {    text: 'CSS', url: 'https://c.fandom.com/wiki/Special:MyPage/universal.css', isMain: false, whoIsMain: Community, shortName: 'CSS' }, {    text: 'ListU', url: '/wiki/Special:ListUsers', isMain: false, whoIsMain: false, shortName: 'ListU' }, {    text: 'Admins', url: '/wiki/Special:ListUsers/sysop', isMain: false, whoIsMain: false, shortName: 'sysop' }, {    text: 'BCrats', url: '/wiki/Special:ListUsers/bureaucrat', isMain: false, whoIsMain: false, shortName: 'BCrat' }, {    text: 'W.CSS', url: '/wiki/MediaWiki:Wikia.css', isMain: false, whoIsMain: false, shortName: 'WCSS' }, {    text: 'WNav', url: '/wiki/MediaWiki:Wiki-navigation', isMain: false, whoIsMain: false, shortName: 'Nav' } ];/**/ /* MassEdit */ window.massEditConfig = { editInterval:500 };/**/ /* 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:false, 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 = false; $(document).on('keydown', function (q) {	keys[q.which] = true;	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] = false; }); $('input, textarea').on('keydown', function {   input = true; }).on('keyup', function {    input = false; });

///////////////////////////////////////////////////////////////////////// /***********************************************************************/ /******************************* Imports *******************************/ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////// importArticles({   type:'script',    articles:[        'u:dev:AjaxEdit.js',        'u:dev:AjaxEditSection.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AnchoredRollback/code.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:FindAndReplace/code.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', ], });/**/