yuanfnadi

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

  •  
  •   yuanfnadi · Mar 8, 2018 · 1737 views
    This topic created in 2993 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   ·   3034 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 65ms · UTC 13:13 · PVG 21:13 · LAX 06:13 · JFK 09:13
    ♥ Do have faith in what you're doing.