User:Tokina8937/global.js

/*VARIABLES*/

var globalNavButtons = [ {   text: 'Wikia', url: 'https://wikia.com', isMain: true, whoIsMain: false, shortName: 'W' }, {   text: 'New Profiles', url: 'https://www.wikia.com/Special:Log/newusers', /*Since full log doesn't list them anymore, go here instead*/ isMain: false, whoIsMain: 'W', shortName: 'PL' }, {    text: 'Community', url: 'https://community.wikia.com', isMain: true, whoIsMain: false, shortName: 'C' }, {   text: 'Recent Activity log', url: 'https://community.wikia.com/wiki/Special:RecentChanges?days=1&limit=250', /*250 or 100 to enhance loading speed, depends of last check time*/ isMain: false, whoIsMain: 'C', shortName: 'RA' }, {    text: 'Abuse Log', /*In case RA doesn't list anything*/ url: 'https://community.wikia.com/wiki/Special:AbuseLog?limit=100', /*100 is enough in general (faster loading speed)*/ isMain: false, whoIsMain: 'C', shortName: 'AL' } ];

/*Pre-definite edit summaries. window.dev = window.dev || {}; window.dev.editSummaries = { css: false, select: [ 'Summaries', 'Vocaloid Wiki', [ /*Classic*/ 'Misprint [minor]', 'View count updated [minor]', 'Formatting [minor]', 'Comment added (no reprints allowed) [invisible]', /*Undos, deletions * Note: Access violation does NOT apply when: * - edit has been done by an admin/staff/helper * - when the edit is reversion of vandalism/spam (tolerance) * Deletion requested: may add a reason of request (manually)*/ 'Deletion requested',  /*If no supplementary reason given*/ 'Access violation', /*Condition-specific*/ /*User page*/ 'Updated status', /*User talk*/ '(answering)', '(updating info)', '(adding info)', '(new subsection)', /*Creations*/ 'Added new page, transported from the sandbox', /*Page creation*/ 'Initialized page', /*Page creation, without sandbox*/ ],       'VSTF', [                   /*For VSTF reporting*/ /*For Report:Wiki*/ 'Added 1 spam Wiki', 'Added 2 spam Wikis',      /*May rarely need more*/ /*For Report:User profiles*/ 'Added 1 confirmed spam account', 'Added 2 confirmed spam accounts', 'Added 3 confirmed spam accounts', 'Added 4 confirmed spam accounts', 'Added 5 confirmed spam accounts', 'Added 6 confirmed spam accounts', 'Added 7 confirmed spam accounts', 'Added 8 confirmed spam accounts', 'Added 9 confirmed spam accounts', 'Added 10 confirmed spam accounts', /*For Report:Spam*/ 'Became cross-Wiki', 'Added 1 confirmed spam account. Section name updated', 'Added 2 confirmed spam accounts. Section name updated' /*Note: if need more, take the "2" one and modify the number*/ ],   ] };
 * Works by using the beacon system.
 * [minor] means the "minor edit" case has been checked.
 * In manual edits, [invisible] means source only has been modified.
 * (!) is an informative beacon in case of problem detection.
 * (page breaking detected, abnomaly in task etc)
 * The undo summaries are the following:
 * Undo revision, Altered revision, Rollback, Self-alteration
 * Respectively:
 * Undo of another user's edit/Undo and edit of another user's edit/
 * Self-undo/Self-undo and edit
 * These are not included in this list (manual writing required)
 * Only lists ENGLISH summaries!*/

/*Typical JS tools*/ importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:UnhideUserMasthead/code.js',        'u:dev:MediaWiki:MastheadGender/code.js',        'u:dev:MediaWiki:GlobalEditcount/code.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:ShowUserGroups.js',        'u:dev:MediaWiki:VSTFReport.js',        'u:dev:MediaWiki:RevealAnonIP/usercode.js',        'u:dev:MediaWiki:GlobalNavButtons.js',        'u:dev:MediaWiki:AbuseLogRC.js',        'u:dev:Standard Edit Summary/code.js',        'u:dev:MediaWiki:EditConflictAlert/code.js',        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:BlogLink/code.js',        'u:dev:MediaWiki:AjaxDelete/code.js',        'u:dev:MediaWiki:AjaxBatchDelete.js',        'u:dev:MediaWiki:EditIntroButton/code.js',        'u:dev:MediaWiki:NullEditButton/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js'    ] });