User:Tokina8937/global.js

/*FUNCTIONS*/

$('.featured-video__wrapper').remove; //Disable the featured videos

/*VARIABLES*/

/*For AjaxBatchDelete*/ window.batchDeleteDelay = 100;

/*Shortcuts*/ 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' }, {    text: 'VSTF', url: 'https://vstf.wikia.com', isMain: true, whoIsMain: false, shortName: 'V' }, {   text: 'Profiles', url: 'https://vstf.wikia.com/wiki/Report:User_profile_headers', /*To use when a profile contains spam (header!)*/ isMain: false, whoIsMain: 'V', shortName: 'R:U' }, {    text: 'Spam', url: 'https://vstf.wikia.com/wiki/Report:Spam', /*When profile empty, anon IP spamming etc (except "the spam bot")*/ isMain: false, whoIsMain: 'V', shortName: 'R:S' }, {    text: 'Wiki', url: 'https://vstf.wikia.com/wiki/Report:Wiki', /*For spam Wikis*/ isMain: false, whoIsMain: 'V', shortName: 'R:W' }, {    text: 'Biglist', url: 'https://vstf.wikia.com/wiki/Report:Spam/Biglist', /*If number of spam reports in R:S is more than 10 / the "spam bot"*/ isMain: false, whoIsMain: 'V', shortName: 'R:BL' } ];

var lang = mw.config.get('wgContentLanguage');

window.FCButtons = [ /*Only use for the Wikis where I am really active*/ {       label: 'User page!', target: 'User:Tokina8937', summary: 'User page generation', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list', require: lang === 'en' },   {        label: 'Page utilisateur !', target: 'Utilisateur:Tokina8937', summary: 'Génération de la page utilisateur', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list', require: lang === 'fr' },   /*For other Wikis (aka "just passing and nothing more")*/ {       label: 'Not here!', target: 'User:Tokina8937', summary: 'User page generation', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list', require: lang === 'en' },   {        label: 'Pas ici !', target: 'Utilisateur:Tokina8937', summary: 'Génération de la page utilisateur', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list', require: lang === 'fr' }, ];

/*For AJAXUndo: never set as minor*/

window.AjaxUndoMinor = true;

/*Pre-definite edit summaries. window.dev = window.dev || {}; window.dev.editSummaries = { css: false, select: [ 'Summaries', 'Common',[ /*Classic*/ 'Misprint [minor]', /*User page*/ 'Updated status', /*User talk*/ '(answering)', '(updating info)', '(adding info)', '(new subsection)', 'Moved discussions to archive (50K bytes threshold reached) (criteria: closed discussions)', 'Created archive', /*Archive creation*/ /*Creations*/ 'Added new page, transported from the sandbox', /*Page creation*/ 'Initialized page', /*Page creation, without sandbox*/ /*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) * 2 last summaries are self-undo and self-alteration. * Add their summary MANUALLY*/ 'Deletion requested',  /*If no supplementary reason given*/ 'Access violation', /*Condition-specific*/ 'Rollback:', 'Self-alteration:', ],       'Vocaloid Wiki', [  /*Specific to Vocaloid Wiki*/ 'View count updated [minor]', 'Formatting [minor]', 'Comment added (no reprints allowed) [invisible]', 'Reprint removal task',    /*Set the minor tag manually*/ 'List updated',            /*Stalk list*/ ],        /*For VSTF reports: *- Fast Check means no tool has been used. (classic method) *- Wikia Watchers means the WW tool has been used. * Please note Fast Check type may disappear.*/ 'VSTF / Wiki', [               /*Bad wikis*/ /*For R:W*/ 'Added 1 spam Wiki (Fast Check)', 'Added 2 spam Wikis (Fast Check)', 'Added 1 spam Wiki (Wikia Watchers)', 'Added 5 spam Wikis (Wikia Watchers)', 'Added 5 spam Wikis (Wikia Watchers) (mobile report)', /*If a Wiki is mistakenly reported: */ 'Rollback: incorrect report',  /*Self-undo summary*/ ],       'VSTF / User profiles', [       /*Masterheads*/ /*Confirmed only*/ 'Added 1 confirmed spam account (Fast Check)', 'Added 2 confirmed spam accounts (Fast Check)', 'Added 1 confirmed spam account (Wikia Watchers)', 'Added 5 confirmed spam accounts (Wikia Watchers)', 'Added 5 confirmed spam accounts (Wikia Watchers) (mobile report)', /*Potential*/ 'Added 1 potential spam account (Fast Check)', 'Added 2 potential spam accounts (Fast Check)', 'Added 1 potential spam account (Wikia Watchers)', 'Added 5 potential spam accounts (Wikia Watchers)', ],       'VSTF / Spam and Biglist', [ /* Reserved to spam accounts without any header. * if nb_current_reports in R:S >= 10 * then move to Spam Biglist * ONLY anonymous IPs (mass spam) * Use BigList for all that is "spam bot" things*/ 'Added 1 spam IP/account (Fast Check)', 'Added 2 spam IPs/accounts (Fast Check)', 'Added 1 spam IP/account (Wikia Watchers)', 'Added 5 spam IPs/accounts (Wikia Watchers)', /*R:S ver*/ 'Added 10 spam IPs/accounts (Wikia Watchers)', /*BigList ver*/ 'Added 5 spam IPs/accounts (Wikia Watchers) (mobile report)', 'Rollback: duplicated report', /*Self-undo summary*/ /*Following are for R:S only*/ 'Added 1 spam account. (Fast Check) Section name updated', 'Added 2 spam accounts. (Fast Check) Section name updated', 'Added 1 spam account. (Wikia Watchers) Section name updated', 'Added 2 spam accounts. (Wikia Watchers) Section name updated', ],           'Dev Wiki',[ 'Added Languages bar', 'Added FR translations' ]   ] };
 * 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:
 * 1) Undo revision, Altered revision
 * Respectively:
 * Undo of another user's edit/Partial undo of another user's edit
 * These are not included in this list (manual writing required)
 * 2) Rollback, Self-alteration
 * Respectively: Self-undo/Partial self-undo
 * These have summaries here that are not complete.
 * To complete manually.
 * 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:kocka:MediaWiki:ReportFormatter.js',        'u:dev:MediaWiki:UserAccountAge/code2.js', 'u:dev:MediaWiki:FastCreate.js', 'u:thegoldenpatrik1:Rollback.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:QuickToolsv2/code.js', 'u:dev:MediaWiki:MassEdit/code.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:FindAndReplace/code.js' ] });