In this article we are going to delve into the topic of
User:Writ Keeper/Scripts/unmobilePlus.js, since it is an aspect that has become very relevant in recent times. From various perspectives,
User:Writ Keeper/Scripts/unmobilePlus.js has impacted society and has generated debates in different areas. That is why it is essential to examine in detail the implications and consequences that
User:Writ Keeper/Scripts/unmobilePlus.js entails, as well as analyze possible solutions or alternatives. In addition, we will address different opinions from experts in the field, who will highlight relevant aspects that will help to better understand the importance of
User:Writ Keeper/Scripts/unmobilePlus.js in our current reality.
if(window.location.host.search("m.wikipedia.org") > 0 || window.location.pathname.search("Special:MobileDiff") > 0)
{
let urlParams = new URLSearchParams(window.location.search);
if(!urlParams.has("desktop"))
{
urlParams.set("desktop", "");
let newURL = window.location.protocol + "//" + window.location.host.replace(".m.",".") + window.location.pathname.replace("Special:MobileDiff", "Special:Diff") + "?" + decodeURIComponent(urlParams.toString());
window.location.replace(newURL);
}
}
mw.hook("wikipage.content").add( function()
{
$("div.mw-parser-output a").each(function(ind, el)
{
el.href = el.href.replace("Special:MobileDiff", "Special:Diff");
if( $(el).hasClass("external"))
{
el.href = el.href.replace(".m.", ".");
}
});
});