From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.

/*

  Force Wikipedia to use the desktop version.

  Google on mobile uses "en.m.wikipedia.org", this scripts redirects to the normal version.

  

  CC0

*/

if(window.location.href.match(/^https?:\/\/[^.]+\.m\./)) {

  var desktopUrl = $('#mw-mf-display-toggle').attr('href')

  if(desktopUrl) {

  	window.location.href = desktopUrl

  }

}