User:Manuel de la Fuente/global.js

/* eslint-env browser */ /* global importArticles */

(function {  console.log('mfteGlobalJS v1.0.3')

var excluded = []

if (window.wgUserGroups.indexOf('sysop') === -1 || excluded.indexOf(window.location.host) !== -1 || localStorage.getItem('mfteGlobalJS') !== 'false') { /* Imported scripts */

/* AutoEditDropdown */ window.AutoEditDropdownConfig = { expandedAreaContribute: true, expandedAreaEdit: true }

/* Auto Refresh */ window.AjaxRCRefreshText = 'Auto-Refresh' window.AjaxRCRefreshHoverText = 'Automatically refresh the page' window.ajaxPages = [ 'Special:WikiActivity', 'Special:RecentChanges', 'Special:Log' ]   window.ajaxRefresh = 30000

/* List of imports */ importArticles({     type: 'script',      articles: [        'u:dev:AjaxRC/code.js', // Auto Refresh        'u:dev:DiscussionsActivity.js', // Discussions activity        'u:dev:AjaxDiff/code.js', // Allows to inspect diffs and stay in WikiActivity        'u:dev:ReferencePopups/code.js', // Displays content of references on hover        'u:dev:BackToTopButton/code.js', // Adds "Back to top" button in pages        'u:dev:View_Source/code.js', // Adds "view source" link to edit dropdown        'u:dev:RevealAnonIP/code.js', // Replaces "a wikia contributor" with IP address        'u:dev:AutoEditDropdown/code.js', // Automatically opens edit menu on hover        'u:dev:SeeMoreActivityButton/code.js', // Shows diff link in Wiki Activity module        'u:dev:Rollback/code.js' // Rollback      ]    }) } else { console.log('This wiki is excluded from global JS') } })