tools / files / userscripts / mobile-to-desktop-WIKI / script.user.js
script.user.js
| 1 | // ==UserScript== |
| 2 | // @name Redirect to non-mobile wiki page |
| 3 | // @namespace https://gitlab.com/PavelSafronov/tools |
| 4 | // @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 | })(); |