User:Manuel de la Fuente/global.js

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

(function {  console.log('mfteGlobalJS v1.0.7');

var excluded = [];

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

(function {      var tabs = document.querySelectorAll('.wds-community-header__local-navigation .wds-tabs__tab');      var explore = tabs[tabs.length - 2];      var list = explore.querySelector('.wds-list.wds-is-linked.wds-has-bolded-items');      list.appendChild(document.createRange.createContextualFragment('Blogs'));    });

/* 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;

massProtectDelay = 1000;

/* 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'); massProtectDelay = 1000; importArticles({       type: "script",        articles: [            'u:dev:MassProtect/code.js',        ]    }); } });