User:Sotuman/common.js

$(document).ready( function {	var desktopLink = document.getElementById("mw-mf-display-toggle");	if (desktopLink === null) {		return;	}	var href = desktopLink.getAttribute('href');	if (href.indexOf('.m.') > -1) {		return;	}	// You can use .assign instead, if you want to	// keep the URL of the mobile site in your history.	window.location.replace(href); } );