Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==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