User:Manuel de la Fuente/global.js

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

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

if (localStorage.getItem('mfteGlobalJS') === 'false') { console.log('This wiki is excluded from global JS.'); return; }

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

/* 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      'u:dev:AjaxBatchDelete/code.js',      'u:dev:DupImageList/code.js',      'u:dev:ListFiles/code.js',      'u:dev:MassBlock/code.js', 'u:dev:MassCategorization/code.js', 'u:dev:MassRenameRevert/code.js', 'u:dev:MassNullEdit/code.js', 'u:dev:MassProtect/code.js', 'u:dev:MassRename/code.js', 'u:dev:MassRenameRevert/code.js', 'u:dev:Nuke/code.js', 'u:dev:RedirectManagement/code.js' ] });

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); });