Skip to content

Instantly share code, notes, and snippets.

@unt0uchable
Created June 23, 2016 02:17
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 unt0uchable/a38c521e1bd417fe8ef1b830f37de2d6 to your computer and use it in GitHub Desktop.
Save unt0uchable/a38c521e1bd417fe8ef1b830f37de2d6 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name wikipedia_desktop_redirect
// @namespace https://jspenguin.org/monkey
// @description Redirect mobile wikipedia to desktop version
// @include http://*.m.wikipedia.org/*
// @include https://*.m.wikipedia.org/*
// @version 1
// @grant none
// ==/UserScript==
var m = /^(https?:\/\/.*)\.m(\.wikipedia\.org\/.*)/.exec(location.href);
if (m) location.href = m[1] + m[2];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment