Giter Site home page Giter Site logo

yk007 / replacegooglecdn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justjavac/replacegooglecdn

0.0 0.0 0.0 124 KB

:cancer: 一个 Chrome 插件:将 Google CDN 替换为国内的。

Home Page: https://chrome.google.com/webstore/detail/replace-google-cdn/kpampjmfiopfpkkepbllemkibefkiice

License: GNU General Public License v3.0

JavaScript 100.00%

replacegooglecdn's Introduction

Replace Google CDN

Chrome Web Store

将 Google CDN 替换为国内的。

缘起

由于众所周知的原因,只需替换一个域名就可以继续使用 Google 提供的前端公共库了。 同样,通过 script 标记引用这些资源,让网站访问速度瞬间提速!

很多网站,尤其是国外网站,为了加快网站的速度,都使用了 Google 的 CDN。 但是在天朝,由于某些原因,导致全球最快的 CDN 变成了全球最慢的。

于是,我写了这个插件/扩展,将 Google 的 CDN 替换成国内的。

原理

此插件/扩展包括:

  1. ajax.googleapis.com - 前端公共库
  2. fonts.googleapis.com - 免费字体库
  3. themes.googleusercontent.com - fonts 有时会使用到这个里面的资源
  4. fonts.gstatic.com - 免费字体库
  5. www.google.com/recaptcha - Google 图像验证库
  6. secure.gravatar.com - gravatar 头像

安装

在线安装

手动安装

Chrome 安装方法(Google 被墙了上不去):

  1. 下载 ReplaceGoogleCDN 然后解压,找到 chrome 子目录
  2. 打开 Chrome,输入: chrome://extensions/
  3. 勾选 Developer Mode
  4. 选择 Load unpacked extension... 然后定位到刚才解压的文件夹里面的 chrome 目录,确定
  5. 这就安装好了,去掉 Developer Mode 勾选。

replacegooglecdn's People

Contributors

justjavac avatar i36lib avatar yuxuanzuo avatar dishuostec avatar fjy202 avatar wuxianucw 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.