Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
let queryString = new URLSearchParams(window.___location.search);
upperName = mw.config.get("wgPageName").toUpperCase();
if(queryString.get("redirect") !== "no") {
if
if(
window.___location.href = "/wiki/" + mw.config.get("wgFormattedNamespaces")[14] + ":" + mw.config.get("wgPageName").replace("CAT:", "");
}
else if(upperName.startsWith("P:")) {
window.___location.href = "/wiki/" + mw.config.get("wgFormattedNamespaces")[100] + ":" + mw.config.get("wgPageName").replace("P:", "");
}
else if(upperName.startsWith("H:")) {
window.___location.href = "/wiki/" + mw.config.get("wgFormattedNamespaces")[12] + ":" + mw.config.get("wgPageName").replace("H:", "");
}
}
|