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:''} ], }

/* AnnouncementsIgnore */ window.announcementsIgnore = { option: 'opt-in-all', exceptWikiIds: [ 1547755,       1542998    ] };

/* 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"}, ],   } };/**/ /* 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' } ];/**/

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

/* GlobalNavButtons */ 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: t,   whoIsMain: f,    shortName: 'mediaw' }, {    text: 'WCSS', url: '/wiki/MediaWiki:Wikia.css', isMain: f,   whoIsMain: 'mediaw', shortName: 'wcss' }, {    text: 'GPages', url: '', isMain: t,   whoIsMain: f,    shortName: 'global' }, {    text: 'JS', url: 'https://c.wikia.com/wiki/Special:MyPage/global.js', isMain: f,   whoIsMain: 'global', shortName: 'js' }, {    text: 'CSS', url: 'https://c.wikia.com/wiki/Special:MyPage/universal.css', isMain: f,   whoIsMain: 'global', shortName: 'css' }, {    text: 'User', url: 'https://c.wikia.com/wiki/Template:User:PredatoR X ~CF0P~', isMain: f,   whoIsMain: 'global', shortName: 'usert' }, {    text: 'ListU', url: '/wiki/Special:ListUsers', isMain: t,   whoIsMain: f,    shortName: 'users' }, {    text: 'Admins', url: '/wiki/Special:ListUsers/sysop', isMain: f,   whoIsMain: 'users', shortName: 'sysop' }, {    text: 'BCrats', url: '/wiki/Special:ListUsers/bureaucrat', isMain: f,   whoIsMain: 'users', shortName: 'bureaucrats' }, {    text: 'Tests', url: '/wiki/Special:MyPage/Tests', isMain: f,   whoIsMain: f,    shortName: 'test' } ];/**/ /* 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: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: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', ], });/**/