Redirect Wikimedia Projects from Mobile Version to Desktop Version

Redirect wiki projects from mobile version to desktop version with ManifestV3. Including wikipedia, wikibooks, wiktionary, wikiquote, wikimedia, wikisource, wikiversity, wikispecies, wikidata, wikivoyage and wikinews.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Redirect Wikimedia Projects from Mobile Version to Desktop Version
// @version     1.0.0
// @description Redirect wiki projects from mobile version to desktop version with ManifestV3. Including wikipedia, wikibooks, wiktionary, wikiquote, wikimedia, wikisource, wikiversity, wikispecies, wikidata, wikivoyage and wikinews.
// @namespace   AmaniNakupendaWeWe
// @match       *://*.m.wikipedia.org/*
// @match       *://*.m.wikibooks.org/*
// @match       *://*.m.wiktionary.org/*
// @match       *://*.m.wikiquote.org/*
// @match       *://*.m.wikimedia.org/*
// @match       *://*.m.wikisource.org/*
// @match       *://*.m.wikiversity.org/*
// @match       *://*.m.wikispecies.org/*
// @match       *://*.m.wikidata.org/*
// @match       *://*.m.wikivoyage.org/*
// @match       *://*.m.wikinews.org/*
// @run-at      document-start
// @grant       none
// @license     MIT
// ==/UserScript==

const re = /m.wik(.+)\.org/;

location.replace(
  location.href
    .replace(re, location.href.match(re)[0].slice(2))
);