User:Jackarmy 286/common.js

if (window.location.href.match(/^https?:\/\/[^.]+\.m\./)) { var isMobile = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i); var desktopUrl = $('#mw-mf-display-toggle').attr('href'); if (!isMobile && desktopUrl) { window.location.href = desktopUrl; } }