fuzzyworld

tools / files / userscripts / mobile-to-desktop-WIKI / script.user.js

script.user.js

Blame: the commit that last changed each line · file · history

921e427f 2022-01-20 Pavel Safronov1// ==UserScript==
2// @name Redirect to non-mobile wiki page
3f3d8336 2023-02-01 Pavel Safronov3// @namespace https://gitlab.com/PavelSafronov/tools
921e427f 2022-01-20 Pavel Safronov4// @version 0.1
5// @description Redirects mobile wiki pages (ewww) to non-mobile wiki pages
6// @author Pavel Safronov
7// @match https://en.m.wikipedia.org/wiki/*
8// @icon https://www.google.com/s2/favicons?domain=wikipedia.org
9// @grant none
10// ==/UserScript==
11
12(function() {
13 'use strict';
14
15 const newPath = window.location.href.replace(".m.wikipedia.org", ".wikipedia.org");
16 window.location.href = newPath;
17})();