Github Mirror Jumper

在检测到选中文本包含guihub.com地址,会弹出镜像地址按钮,点击打开新窗口

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Aŭtoro
subao zhong
Ĉiutagaj instaloj
0
Tutaj instaloj
39
Ratings
0 0 0
Versio
0.0.1
Kreita
2024/01/27
Ĝisdatigita
2024/01/27
Size
5,66 kb
Licenco
MIT
Aplikiĝas al
Ĉiuj retejoj

跳转到guihub镜像

作为遵纪玩家,在国内访问github.com时,有时会出现网站无法加载打不开情况。这时我们可以选择打开镜像加快访问,但时常需要我们手动拼接地址不是很方便所以做了这个插件。

用法

  1. 选择带有github.com地址,如果比配到,就会弹出我们的插件按钮

  2. 点击绿色按钮就可以打开新的窗口到提示中的地址

地址的匹配

// 匹配正则是: /github.com\S+/ig

/*
* 当我们选择的文本是:点击https://github.com/chcg/NPP_HexEdit/releases
* 会匹配到github.com/chcg/NPP_HexEdit/releases,然后把 github.com域名换成镜像
*/

/*
* 当我们选择的文本是:点击https://github.com/chcg/NPP_HexEdit/releases去下载安装包,
* 会匹配到github.com/chcg/NPP_HexEdit/releases去下载安装包
* 这是因为后面没有空格,是会匹配到。
* 只要不选择不是链接的文本就可以了:点击https://github.com/chcg/NPP_HexEdit/releases