User:TheGhostOfInky/common.js

(function {     var desktopLink = document.getElementById("mw-mf-display-toggle");     if (desktopLink === null) {          return;     }     var href = desktopLink.getAttribute('href')     var search = document.location.search     var hash = document.location.hash     if (href.indexOf('.m.') > -1) {          return;     }     window.location.replace(href+search+hash); })