MediaWiki:Common.js

/* TOGGLE HIGHLIGHT ON ORDERED LISTS WHEN CLICKED */ $(":not(.references li) ol li").click(function (e) {   e.stopPropagation;    if(!($(this).hasClass("highlighted"))) {        $(this).addClass("highlighted");        $(this).find("li").addClass("highlighted");     } else {        $(this).removeClass("highlighted");        $(this).find("li").removeClass("highlighted");     } });

/* HIDE NAMESPACES */ $('h1#title').each(function {   if (this.innerHTML.includes(":")) {        this.innerHTML = this.innerHTML.split(':',2)[1];    } }); $('#firstHeading').each(function {   this.innerHTML = this.innerHTML.replace("Main Page", "Console Mods Wiki")    if (this.innerHTML.includes(":")) {        this.innerHTML = this.innerHTML.split(':',2)[1];    } }); $('title').each(function {   if (this.innerHTML.includes(":")) {        this.innerHTML = this.innerHTML.split(':',2)[1];    } })