Created
June 23, 2016 02:17
-
-
Save unt0uchable/a38c521e1bd417fe8ef1b830f37de2d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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