User:Manuel de la Fuente/global.js

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

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

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

/* Local scripts */

/* Adds link to recent blog posts in navigation bar */ (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; /* Mass Renamer */ window.massRenameDelay = 5000;

/* List of imports */ importArticles({   type: 'script',    articles: [      'u:dev:MediaWiki:MultiUpload/code.js',      'u:dev:MediaWiki:AjaxBatchDelete.js', // Mass delete.      'u:dev:AjaxDiff/code.js', // Allows to inspect diffs and stay in WikiActivity.      'u:dev:AjaxRC/code.js', // Auto Refresh.      'u:dev:AutoEditDropdown/code.js', // Automatically opens edit menu on hover.      'u:dev:BackToTopButton/code.js', // Adds "Back to top" button in pages.      'u:dev:DiscussionsActivity.js', // Discussions activity.      'u:dev:DupImageList/code.js',      'u:dev:ListFiles/code.js',      'u:dev:MassBlock/code.js',      'u:dev:MassCategorization/code.js',      'u:dev:MassNullEdit/code.js',      'u:dev:MassProtect/code.js',      'u:dev:MassRename/code.js',      'u:dev:MassRenameRevert/code.js',      'u:dev:MassRenameRevert/code.js',      'u:dev:MediaWiki:PurgeButton/code.js',      'u:dev:Nuke/code.js',      'u:dev:RedirectManagement/code.js', 'u:dev:ReferencePopups/code.js', // Displays content of references on hover. 'u:dev:RevealAnonIP/code.js', // Replaces "a wikia contributor" with IP address. 'u:dev:SeeMoreActivityButton/code.js', // Shows diff link in Wiki Activity module. 'u:dev:View_Source/code.js' // Adds "view source" link to edit dropdown. ] });

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