MediaWiki:Wikiamobile.js

$("a").attr("href",function(i,n){return window.location.hostname===this.hostname?n+"?useskin=wikiamobile":void 0});