fastGithub

加速你的github clone速度

Stan na 16-04-2020. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         fastGithub
// @namespace    https://github.zhlh6.cn
// @version      0.1
// @description  加速你的github clone速度
// @author       ZHLH
// @match        https://github.com/*
// @grant        none
// ==/UserScript==

(function() {
    var patt = /[email protected]:/;
    var address = document.querySelectorAll('input.input-monospace');
    var i,add;
    for(i = 0;i<address.length;i++){
        add = address[i];
        if(patt.test(add.value)){
            add.value = add.value.replace("[email protected]:","[email protected]:");
        }
    }
    var copyAddress = document.querySelectorAll('clipboard-copy');
    var cadd;
    for(i = 0;i<copyAddress.length;i++){
        cadd = copyAddress[i];
        if(patt.test(cadd.value)){
            cadd.value = cadd.value.replace("[email protected]:","[email protected]:");
        }
    }
})();