User:Manuel de la Fuente/global.js

if (['attackontitan.wikia.com', 'thementalist.wikia.com'].indexOf(window.location.host) === -1) { /* Scripts executed after the HTML document is loaded */

$(function {

/* Inserts link to blogs in navigation bar */ $('.subnav-2').first.append('Blogs'); });

/* Scripts executed after the whole page is loaded (including images and other objects) */ $(window).load(function{

/* Adds option to refresh page to edit dropdown */ var url = '//' + location.host + location.pathname + '?action=purge'; $('.WikiaMenuElement').append('Refresh'); });	/* Imported scripts */	/* AutoEditDropdown */	window.AutoEditDropdownConfig = {		expandedAreaContribute: true,		expandedAreaEdit: true	};	/* Auto Refresh */	AjaxRCRefreshText = 'Auto-Refresh';	AjaxRCRefreshHoverText = 'Automatically refresh the page';	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: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:Rollback/code.js' // Rollback			]		});

}