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 */ $('title').each(function {   var page_title = this.innerHTML;     if (page_title.includes(":") && !page_title.includes("MediaWiki") && !page_title.includes("\"")) {        var namespace_name = page_title.split(':',2)[0];        var page_name = this.innerHTML = page_title.split(':',2)[1];        page_name = page_name.replace(" - ConsoleMods Wiki", "");

$('h1#title').each(function {           this.innerHTML = page_name;        });

$('#firstHeading').each(function {           this.innerHTML = page_name;        });

/* COLOR HEADER TITLE */ if (!page_title.includes("Mods Wiki") && !page_title.includes("ConsoleMods:")) { namespace_name = namespace_name.replace("ConsoleMods", ""); }

} else { this.innerHTML = "ConsoleMods Wiki"; } });

$('a[title*=":"]').each(function {   var link_page_name = this.innerHTML.split(':',2)[1];    if (link_page_name != undefined) {        this.innerHTML = this.innerHTML.split(':',2)[1];    } });