MediaWiki:Common.js

screen.width<450&&$("body").addClass("sidebar-collapsed"),$(":not(.references li) ol li").click(function(a){a.stopPropagation,$(this).hasClass("highlighted")?($(this).removeClass("highlighted"),$(this).find("li").removeClass("highlighted")):($(this).addClass("highlighted"),$(this).find("li").addClass("highlighted"))}),$("#footer-partnersico:first-child").click(function(a){a.stopPropagation,$("body").hasClass("sidebar-collapsed")?$("body").removeClass("sidebar-collapsed"):$("body").addClass("sidebar-collapsed")});var namespace_name;$("title").each(function{var a=this.innerHTML;if(!a.includes(":")||a.includes("MediaWiki")||a.includes('"'))this.innerHTML="ConsoleMods Wiki";else{namespace_name=a.split(":",2)[0];var b=this.innerHTML=a.split(":",2)[1];b=b.replace(" - ConsoleMods Wiki",""),$("h1#title").each(function{this.innerHTML=b}),$("#firstHeading").each(function{this.innerHTML=b}),a.includes("Mods Wiki")||a.includes("ConsoleMods:")||(namespace_name=namespace_name.replace("ConsoleMods",""))}}),void 0==namespace_name||namespace_name.includes("Special")||namespace_name.includes("Category")||namespace_name.includes("File")||window.location.href.includes("action=history")||$('a[title*=":"]').each(function{var a=this.innerHTML.split(":",2)[1];void 0!=a&&(this.innerHTML=a)}),$("#ca-talk a").each(function{window.location.href.includes("_talk")&&(this.href=this.href.replace("_talk",""),$("#ca-talk a span").each(function{this.innerHTML="Back to Page"})),window.location.href.includes("Talk:")&&(this.href=this.href.replace("Talk:",""),$("#ca-talk a span").each(function{this.innerHTML="Back to Page"}))});