Giter Club home page Giter Club logo

gh-proxy-buttons's Introduction

gh-proxy-buttons

简介

一个基于gh-proxy的油猴脚本,为github中的特定链接(releases、文件、项目地址)添加一个悬浮按钮,提供代理后的加速链接。不需要修改hosts,不需要导入仓库,所需的仅仅是在油猴中安装本脚本。

Add a button beside github link(releases,files and repository url), click to get alternative url according to previously specified proxy.

安装

无论如何,首先你需要为你的浏览器安装油猴脚本管理器

自动安装

点击此处链接,如果一切顺利,会跳转到油猴的脚本安装页面,点击“安装”即可。

install

手动安装

  1. 点击油猴脚本管理器的图标,它通常长这个样子:image-20200728152241242

  2. 点击“管理面板”,选择“实用工具”选项卡:image-20200728152334351

  3. 此时你可以选择下列方式安装:

  4. “文件”:下载代码中的gh-proxy-buttons.js并在此处导入。

  5. “Install from url”:复制如下链接,填入并点击“安装”。

https://gh-proxy.du33169.workers.dev/https://github.com/du33169/gh-proxy-buttons/blob/master/gh-proxy-buttons.js

使用

安装后打开GitHub的网页,将你的鼠标悬浮于下述链接/按钮即可触发:

对于链接,点击出现的按钮将会通过代理开始下载该文件;

对于仓库地址,点击按钮将会复制代理后的链接(基于ClipboardJS,可直接用于git clone。

对象 图示 说明
Releases页面的下载按钮 release 点击按钮通过代理下载或右键复制链接
代码页面的文件链接(不支持文件夹) file 点击按钮通过代理下载或右键复制链接
仓库地址的文本框 copy 点击复制仓库链接(基于ClipboardJS
完整仓库的压缩包下载 zip 点击按钮通过代理下载或右键复制链接

自定义代理服务器

本脚本是gh-proxy项目的二次包装,原项目的演示服务器为https://gh.api.99988866.xyz,也可直接点击链接以网页形式使用。

注意:由于cloudflare免费版worker有单日请求数限制,如果需要大量下载,请根据教程自行部署worker。

我也部署了一个worker用于分流,也是目前脚本中默认使用的:https://gh-proxy.du33169.workers.dev/

当然如果有条件也请自行按要求部署(免费)。

要修改使用的代理服务器,可以直接编辑脚本(末尾斜杠不可省略):

image-20200728160207769

相关项目

Tampermonkey gh-proxy ClipboardJS

gh-proxy-buttons's People

Contributors

du33169 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.