Greasy Fork

Greasy Fork is available in English.

Move to PC Page on Wikipedia

move from mobile page to PC page on Wikipedia, Wiktionary etc...

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Move to PC Page on Wikipedia
// @version      0.1
// @description  move from mobile page to PC page on Wikipedia, Wiktionary etc...
// @author       Linuxmetel
// @namespace    https://twitter.com/linuxmetel
// @license      MIT

// @match        *.m.wikipedia.org/*
// @match        *.m.wiktionary.org/*
// @match        *.m.wikibooks.org/*
// @match        *.m.wikisource.org/*
// @match        *.m.wikinews.org/*
// @match        *.m.wikiversity.org/*
// @match        *.m.wikidata.org/*
// @match        *.m.wikimedia.org/*
// @match        *.m.wikiquote.org/*
// @match        *.m.wikivoyage.org/*

// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var re=/^(.*)m\.(.*)$/;
    location.host = location.host.replace(re, "$1$2");
    // Your code here...
})();