英文版本自动跳中文 插件

try to take over the world!

目前為 2019-05-31 提交的版本,檢視 最新版本

// ==UserScript==
// @name         英文版本自动跳中文 插件
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  try to take over the world!
// @author       You
// @match        *www.php.net/manual/en*
// @match        *developer.mozilla.org/en-US/*
// @match        *eslint.org/*
// @match        *api.jquery.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
     var href = window.location.href;


    skip('/api.jquery.com/','/www.jquery123.com/');
    skip('/www.php.net/manual/en/','/www.php.net/manual/zh/');
    skip('/developer.mozilla.org/en-US/','/developer.mozilla.org/zh-CN/');

    skip('/eslint.org/','/eslint.cn/');


    function skip(source,target){
        if(href.indexOf(source)!=-1){
            href = href.replace(source,target);
            window.location.href =href;
        }
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址