V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yuanfnadi

一键切换 kubernetes 官方文档到中文版

  •  
  •   yuanfnadi · Mar 8, 2018 · 1709 views
    This topic created in 2983 days ago, the information mentioned may be changed or developed.

    油猴子脚本

    // ==UserScript==
    // @name         Kubernetes Doc to cn
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       You
    // @match        https://kubernetes.io/*
    // @match        https://k8smeetup.github.io/*
    // @grant        none
    // ==/UserScript==
    
    
    
    (function() {
        'use strict';
        if(document.URL.match("kubernetes.io")){
            document.querySelector('body > header > a').href=document.URL.replace("kubernetes.io","k8smeetup.github.io");
        }else{
            document.querySelector('body > header > a').href=document.URL.replace("k8smeetup.github.io","kubernetes.io");
        }
    })();
    
    
    
    4 replies    2018-03-09 22:13:18 +08:00
    ifaii
        1
    ifaii  
       Mar 8, 2018
    没有效果
    yuanfnadi
        2
    yuanfnadi  
    OP
       Mar 8, 2018
    @ifaii 油猴子里设置好。想看中文文档点左上角点图标就可以了。再点一下切回来
    yuanfnadi
        3
    yuanfnadi  
    OP
       Mar 9, 2018
    yuanfnadi
        4
    yuanfnadi  
    OP
       Mar 9, 2018
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   955 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 20:34 · PVG 04:34 · LAX 13:34 · JFK 16:34
    ♥ Do have faith in what you're doing.