Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Force desktop interface on Wikipedia and disable Wikipedia's mobile UI
// ==UserScript==
// @name Force desktop Wikipedia
// @namespace
// @version 1.0
// @description Disable Wikipedia's mobile UI in favor of its desktop UI
// @author Alex DeLorenzo <>
// @match https://**
// @grant none
// @license GPL-3.0
// ==/UserScript==
(function() {
'use strict';
const MOBILE_SUB = ".m.";
const DOT = '.';
const newUrl = new URL(location); =, DOT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment