User:Miss Toki/global.js

window.AjaxBlock = { blockReasons: { 'Inserting false information': 'Inserting false information', 'Removing content from pages': 'Removing content from pages', 'Inserting nonsense/gibberish into page(s)': 'Inserting nonsense/gibberish into page(s)', 'Intimidating behavior/harassment': 'Intimidating behavior/harassment', 'Uploading inappropriate images/videos': 'Uploading inappropriate images/videos', 'Spamming comments/forum threads': 'Spamming comments/forum threads', 'Spam': 'Spam', 'Vandalism': 'Vandalism', "Violation of Fandom's Terms of Use":"ToU violation", 'Abusing multiple accounts': 'Multiaccounts' },   check: { talk: false, autoBlock: true, override: false } };

/*Shortcuts */ /*Raccourcis*/ var globalNavButtons = [ {       text: 'Community', url: 'https://community.fandom.com', isMain: true, whoIsMain: false, shortName: 'C'   }, {       text: 'New users log', url: 'https://community.fandom.com/wiki/Special:Log/newusers?limit=500', isMain: false, whoIsMain: 'C', shortName: 'NU' },   {        text: 'Recent Activity log', url: 'https://community.fandom.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.fandom.com/wiki/Special:AbuseLog?limit=80', /*80 is enough in general (faster loading speed)*/ isMain: false, whoIsMain: 'C', shortName: 'AL' },   {        text: 'Wikis log', url: 'https://community.fandom.com/wiki/Special:Newwikis', /*In case logs get broken*/ isMain: false, whoIsMain: 'C', shortName: 'WL' },   {        text: 'VSTF', url: 'https://vstf.fandom.com', isMain: true, whoIsMain: false, shortName: 'V'   }, {       text: 'Profiles', url: 'https://vstf.fandom.com/wiki/Report:User_profile_headers', isMain: false, whoIsMain: 'V', shortName: 'R:P' },   {        text: 'Spam', url: 'https://vstf.fandom.com/wiki/Report:Spam', isMain: false, whoIsMain: 'V', shortName: 'R:S' },   {        text: 'Vandalism', url: 'https://vstf.fandom.com/wiki/Report:Vandalism', isMain: false, whoIsMain: 'V', shortName: 'R:V' },   {        text: 'Wiki', url: 'https://vstf.fandom.com/wiki/Report:Wiki', isMain: false, whoIsMain: 'V', shortName: 'R:W' },   {        text: 'My talk page', url: 'https://vstf.fandom.com/wiki/User_talk:TokihikoH11', isMain: false, whoIsMain: 'V', shortName: 'TP' },   {        text: 'AbuseLog', url: 'https://vstf.fandom.com/wiki/Special:AbuseLog', isMain: false, whoIsMain: 'V', shortName: 'AL' } ];

/*For AjaxBatchDelete*/ window.batchDeleteDelay = 100; window.fdButtons = [{ summary: 'vandalism', label: 'Vandalism', }, {       summary: 'spam', label: 'Spam' }, {       summary: 'Cleanup', label: 'Cleanup' }, {       summary: 'Violation of the Term of Use', label: 'ToU' }, {       summary: 'Housekeeping', label: 'H'   }, { summary: 'vandalisme', label: 'Vandalisme' }, {       summary: 'spam', label: 'Spam' }, {       summary: "Violation des conditions d'utilisation", label: 'CUvio' }, {       summary: 'Ménage', label: 'Ménage' } ];

// AjaxBlock setting

window.ajaxRefresh = 30000; // AjaxRC time setting batchDeleteDelay = 500; // AjaxBatchDelete delay

// WHAM window.WHAMBlockReason = "vandalism"; window.WHAMDelay = 100; window.WHAMDeleteReason = "spam/vandalism";

window.announcementsIgnore = { option: 'opt-out-all', exceptWikiIds: [ 177,     // Community Central (English) 3439,    // Community Central (Japanese) 7857,    // Vocaloid Wiki (English) 7931,    // Fandom Developers Wiki 10261,   // Community Central (French) 557670,  // Vocaloid Wiki (French) 658996,  // Candy Crush Wiki 961714,  // Diamond Digger Saga Wiki 1065982, // Candy Crush Soda Wiki 1263005, // Candy Crush Jelly Wiki 1539060, // Candy Crush Friends Wiki 2064151, // Piapro Studio Wiki (English) 2121587  // Piapro Studio Wiki (French) ] };

var MultiUploadoption = { max: 20, }; // MultiUpload

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

window.FCButtons = [ /*Only use for the Wikis where I am really active      */ /*Usage uniquement pour les wikis lorsque je suis active*/ {       label: 'User page!', target: 'User:TokihikoH11', summary: 'Userpage generation', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list', require: lang === 'en' },   {        label: 'Page utilisateur !', target: 'Utilisateur:TokihikoH11', summary: 'Génération de ma 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")*/ /*Pour les autres wikis                               */ {       label: 'Not here!', target: 'User:TokihikoH11', summary: 'Not here! — Userpage generation', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list', require: lang === 'en' },   {        label: 'Pas ici !', target: 'Utilisateur:TokihikoH11', summary: 'Pas ici ! — Génération de ma page utilisateur', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list', require: lang === 'fr' },   /*Message Wall Greeting*/ {       label: 'MWG', target: 'Message Wall Greeting:TokihikoH11', summary: 'Message Wall Greeting generation', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list', require: lang === 'en' },   {        label: 'BMD', target: 'Bienvenue mur discussion:TokihikoH11', summary: 'Génération de l\'en-tête de mur de discussion', content: '', alwaysDisplay: true, placement: '.wds-global-navigation__user-menu .wds-list', require: lang === 'fr' } ]; /*Pre-definite edit summaries. */ /*Résumés de modification prédéfinis.*/ window.dev = window.dev || {}; window.dev.editSummaries = { css: false, select: [ 'Summaries / Résumés de modification', 'Common / Général',[ /*User page      */ /*Page utilisateur*/ 'Updated status', 'Mise à jour de mon statut', /* French */ /*User talk               */ /*Page de disc. utilisateur*/ 'response', 'réponse', 'Vocaloid Wiki (English)', [ /*Specific to Vocaloid Wiki (English)*/ '+fr [m]' ],       'Vocaloid Wiki (Français)', [  /*Spécifique au Vocaloid Wiki (Français)*/ 'Nombre de vues mise à jour [mineur]', 'Retouche [mineur]' ],        /* For VSTF reports / CVN */ 'CVNning EN', [ 'Reverting vandalism', 'spam', ],       'CVNning FR', [ 'Révocation de vandalisme', 'spam', ],       'Dev Wiki', [ '+ Languages bar', '+ fr translations' ]   ] ]};

/*JS tools*/ importArticles({   type: "script",    articles: [        'u:dev:MediaWiki:AbuseLogRC.js', // AbuseLog Recent Changes        'u:dev:MediaWiki:AjaxBatchDelete/code.2.js', // Batch Delete        'u:dev:MediaWiki:AjaxBlock/code.js', // AjaxBlock        'u:dev:MediaWiki:AjaxRC/code.js', // Auto Refresh        'u:dev:MediaWiki:AnchoredRollback/code.js',        'u:dev:MediaWiki:AnnouncementsIgnore.js', // AnnouncementsIgnore        'u:dev:MediaWiki:BackToTopButton/code.js', // Adding 'Back to top' button        'u:dev:MediaWiki:CategoryQuickRemove.js',        'u:dev:MediaWiki:ContribsLink/code.js', // ContribsLink        'u:dev:MediaWiki:DisableCode/code.js', // Disable JS/CSS if there are problem        'u:dev:MediaWiki:DisableInfoboxBuilder.js',        'u:dev:MediaWiki:Discussions Delete All/code.js',         'u:dev:MediaWiki:DiscussionsFeed.js', // DiscussionsFeed        'u:dev:MediaWiki:DiscussionsRailModule/code.js', 'u:dev:MediaWiki:DiscussionsRC.js', // Discussion Recent Changes 'u:dev:MediaWiki:DupImageList/code.js', // List of duplicated images (Put to activate) 'u:dev:MediaWiki:DynamicImages/code.js', // Dynamic Images 'u:dev:MediaWiki:EditBio/code.js', // Edit Bio section on profile on any device 'u:dev:MediaWiki:EditConflictAlert/code.js', 'u:dev:MediaWiki:FastCreate.js', // Userpage generation 'u:dev:MediaWiki:FindAndReplace/code.js', 'u:dev:MediaWiki:FileUsageAuto-update/code.js', // Automatically updates file links 'u:dev:MediaWiki:GlobalEditcount/code.js', // Global edits count 'u:dev:MediaWiki:GlobalNavButtons.js', // Global navigation 'u:dev:MediaWiki:LastEdited/code.js', // LastEdited 'u:dev:MediaWiki:MassEdit/code.js', // MassEdit 'u:dev:MediaWiki:MassCategorization/code.js', // MassCategorization (Category automatic cleanup script) 'u:dev:MediaWiki:MassProtect/code.js', // Protecting massive amount of articles 'u:dev:MediaWiki:MassRename/code.js', // Rename multiple pages 'u:dev:MediaWiki:MassRenameRevert/code.js', // Revert pages move 'u:dev:MediaWiki:MultipleFileDelete/code.js', // MultipleFileDelete (Seems only work properly on Special:PrefixIndes page) 'u:dev:MediaWiki:MarkBlocked.js', 'u:dev:thegoldenpatrik1:MarkForDeletion.js', 'u:dev:MediaWiki:MobileEditor.js', // Mobile Editor 'u:dev:MediaWiki:MultiUpload/code.js', // Multi uploading images 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:PageCreator/code2.js', // PageCreator 'u:dev:MediaWiki:PrivateMessageAlert/code.js', // Private message alert 'u:dev:MediaWiki:ProtectionIcons.js',// Lock icons for protected pages 'u:dev:MediaWiki:PurgeButton/code.js', // Adding 'Refresh' option to page control 'u:dev:MediaWiki:RedirectManagement/code.js', // Redirect management 'u:dev:MediaWiki:ReportFormatter.js', 'u:dev:MediaWiki:RevealAnonIP/usercode.js', 'u:dev:MediaWiki:RollbackSpamUserContribs/code.js', 'u:dev:MediaWiki:SearchSuggest/code.js', // SearchSuggest 'u:dev:MediaWiki:ShowUserGroups.js', // Show User Groups 'u:dev:MediaWiki:Standard Edit Summary/code.js', // Standard Edit Summary 'u:dev:MediaWiki:UserAccountAge/code2.js', 'u:dev:MediaWiki:UserCheck/code.js', 'u:dev:MediaWiki:UnhideUserMasthead/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', 'u:dev:MediaWiki:View_Source/code.js', // View Source tag added on edit button menu 'u:dev:MediaWiki:WHAM/code.2.js' ] });

// DARK THEME (Fansun) on VSTF Wiki if (mw.config.get('wgCityId') === '65099') { importArticle({       type: 'style',        article: 'u:dev:MediaWiki:FANSUN.css'    }, {        type: 'script',        article: 'u:dev:FANSUN.js'    }); }

// VSTF tools mw.loader.load('//internal-vstf.fandom.com/index.php?title=User:TokihikoH11/scripts.js&action=raw&ctype=text/javascript');