User:ItsPlantseed/common.js

var ns = mw.config.get('wgCanonicalNamespace').replace(/_/g, ' '); var title = document.getElementById('firstHeading'); var subtitle = document.getElementsByClassName('page-header__page-subtitle')[0]; if(subtitle === undefined && ns == 'Minecraft Dungeons' || ns == 'Minecraft Earth' || ns == 'Minecraft Story Mode'){ title.innerHTML = title.innerHTML.replace(ns + ':', ''); title.insertAdjacentHTML('afterend', ' + ns +  page '); } });
 * (function{