MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/* Expand all categories in tree by default */ $( document ).ready(function { $('.CategoryTreeToggle[data-ct-state="collapsed"]').click; });

/* Get session # from page name*/ (function {	var pagenameIn = mw.config.get("wgTitle");	var pagenameString = pagenameIn.toString;	var numOutput = pagenameString.match(/(?<=Session )(\d+)(?=:)/gi);	var myElement = document.getElementById('jsseshnumber');	myElement.innerHTML = numOutput; });