User:Tokina8937/global.js

/*FUNCTIONS*/ $('.featured-video__wrapper').remove; //Disable the featured videos /*VARIABLES*/ /*For AjaxBatchDelete*/ window.batchDeleteDelay = 100;

window.announcementsIgnore = { option: 'opt-out-all', exceptWikiIds: [ 7857                   /*VOCALOID Wiki (EN)*/ ] };

/*For WHAM*/ window.WHAMDeleteReason = "spam"; window.massProtectDelay = 100;

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]', 'Fixing Phalanx issue', /*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*/ /*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*/ ],           'Dev Wiki',[ 'Added Languages bar', 'Added FR translations' ]   ] }; /*Typical JS tools*/ mw.loader.using(['mediawiki.util', 'ext.fandom.ContentReview.legacyLoaders.js'], function {	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: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: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:MassRename/code.js', 'u:dev:MediaWiki:AjaxDiff/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:BotManagement.js', 'u:dev:MediaWiki:MassProtect/code.js', 'u:dev:MassCategorization/code.js', 'u:dev:MediaWiki:AnnouncementsIgnore.js', 'u:dev:MediaWiki:Discussions Delete All/code.js' ] }); }); //anti-spam tools mw.loader.load('//internal-soap.fandom.com/index.php?title=User:Tokina8937/scripts-ucp.js&action=raw&ctype=text/javascript');
 * 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!*/