User:PedroM/global.js

function getHref(href) {   var anchor = ""; if (href.indexOf("#") != -1) {     href = href.split("#"); anchor = "#" + href[1]; href = href[0]; }   if (href.indexOf("?") != -1) return href + "&useskin=monobook&handheld=yes" + anchor; else return href + "?useskin=monobook&handheld=yes" + anchor; } function run{ if(navigator.userAgent.indexOf("3DS") != -1){ $("a[href^='/'],a[href*='.wikia.com/']").each(function{     $(this).attr("href", getHref($(this).attr("href")));    }); } } addOnloadHook(run);