MediaWiki:Minerva.js

/* Any JavaScript here will be loaded for users of the Minerva skin */

/* Fix search back button issue */ $(window).on('hashchange', function(e) {	if (e.originalEvent.oldURL.endsWith('#/search')) {		e.preventDefault;		e.stopImmediatePropagation;		window.location.href = e.originalEvent.newURL;	} });

/* Collapse the navbox section by default */ $(function {	if ($(window).width >= 720 && $('.navbox-section:visible').length)		$('.navbox-heading').click; });