Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulchabotca/2487186ce489ed780d12e8b7cb8c3e49 to your computer and use it in GitHub Desktop.
Save paulchabotca/2487186ce489ed780d12e8b7cb8c3e49 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Wikipedia mobile4desktop
// @namespace https://www.paulchabot.ca
// @version 0.1
// @description gives you the mobile version of wikipedia on desktop
// @author Paul Chabot
// @match https://*.wikipedia.org/wiki/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
'use strict';
//alert(location + '?mobileaction=toggle_view_mobile');
if (/\?$/.test (location.pathname) ) {
var new_url = location + '?mobileaction=toggle_view_mobile';
location.replace(new_url);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment