yuanfnadi

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

  •  
  •   yuanfnadi · Mar 8, 2018 · 2088 views
    This topic created in 3161 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
    ifaii
    Mar 8, 2018
    1
    没有效果
    yuanfnadi
    yuanfnadi
    OP
    Mar 8, 2018
    2
    @ifaii 油猴子里设置好。想看中文文档点左上角点图标就可以了。再点一下切回来
    yuanfnadi
    yuanfnadi
    OP
    Mar 9, 2018
    3
    yuanfnadi
    yuanfnadi
    OP
    Mar 9, 2018
    4
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1330 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 104ms · UTC 20:09 · PVG 04:09 · LAX 12:09 · JFK 15:09
    ♥ Do have faith in what you're doing.