将 Google CDN 替换为国内镜像 v3

Latest Version

Version
0.10.23
Update
February 13, 2023
Size
110KiB
Developer
justjavac.com
Category
Users
10,000+
Rating
4.52941 ★
Manifest Version
3
Web Store Status
Languages Support
中文 (简体)
See more
Permissions
DeclarativeNetRequest
DeclarativeNetRequestWithHostAccess
DeclarativeNetRequestFeedback
See more

Replace Google CDN Extension

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

很多网站,尤其是国外网站,为了加快网站的速度,都是用了 Google 的 CDN。

但是在天朝,由于某些原因,导致全球最快的 CDN 变成了全球最慢的。

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

本来我使用的是 360 提供的。经网友提醒 360 的不支持 https,于是改成中科大的。
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Replace Google CDN", "version": "0.10.23", "manifest_version": 3, "icons": { "128": "icons/128.png" }, "description": "\u5c06 Google CDN \u66ff\u6362\u4e3a\u56fd\u5185\u955c\u50cf v3", "background": { "service_worker": "js/background.js", "type": "module" }, "permissions": [ "declarativeNetRequest", "declarativeNetRequestWithHostAccess", "declarativeNetRequestFeedback" ], "host_permissions": [""], "declarative_net_request": { "rule_resources": [ { "id": "ruleset_redirect_main", "enabled": true, "path": "rules/rules_redirect_main.json" }, { "id": "ruleset_redirect_main_extra", "enabled": true, "path": "rules/rules_redirect_main_extra.json" }, { "id": "ruleset_remove_content_security_policy_header", "enabled": true, "path": "rules/rules_remove_content_security_policy_header.json" }, { "id": "ruleset_domain_replace", "enabled": false, "path": "rules/rules_domain_replace.json" } ] }, "content_security_policy": { "extension_pages": "default-src 'self';script-src 'self' 'wasm-unsafe-eval' ;object-src 'self'; style-src 'self' 'unsafe-inline' ; connect-src https://justjavac.com https://justjavac.github.io https://*.justjavac.com/ https://*.jingjingxyk.com https://jingjingxyk.github.io http://localhost https://raw.githubusercontent.com https://github.com https://gitee.com https://gitcode.net;", "sandbox": "sandbox allow-scripts allow-popups; script-src 'unsafe-inline' 'unsafe-eval' " }, "options_ui": { "page": "options_ui/index.html", "open_in_tab": true }, "sandbox": { "pages": ["sandbox/index.html"] }, "action": { "default_title": "Replace Google CDN" }, "author": "https://github.com/justjavac", "homepage_url": "https://github.com/justjavac/ReplaceGoogleCDN"}
Read more

How to download and manually install Replace Google CDN extension for Chrome

Looking for a way to install Replace Google CDN extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install Replace Google CDN extensions manually, this article outlines two simple methods to effortlessly install Replace Google CDN extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download Replace Google CDN extension and manually install through Drag &Drop

If you ever need to manually install a Replace Google CDN extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the Replace Google CDN Extension by clicking the "Download CRX" button on the website.

Look for the Replace Google CDN extension you wish to install. Go to the website and download the Replace Google CDN extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Replace Google CDN extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the Replace Google CDN extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download Replace Google CDN extension for Chrome and install in Developer Mode

This is another method to install Replace Google CDN extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the Replace Google CDN extension file

Select and download the Replace Google CDN extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the Replace Google CDN extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Replace Google CDN extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the Replace Google CDN extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install Replace Google CDN extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

Gooreplacer Extension · Productivity 10,000+ 14 ★ 1002KiB

icon

稀土掘金 Extension · Productivity 10,000+ 339 ★ 4.66MiB

icon

FeHelper(前端助手) Extension · Developer Tools 10,000+ 321 ★ 2.72MiB

icon

划词翻译 Extension · Productivity 10,000+ 1736 ★ 4.73MiB

icon

v2ex plus Extension · Productivity 10,000+ 102 ★ 64.7KiB

icon

Sourcegraph Extension · Developer Tools 10,000+ 169 ★ 8.22MiB

icon

Aria2 Explorer Extension · Productivity 10,000+ 260 ★ 1.36MiB

icon

SimpRead - Reader View Extension · Productivity 10,000+ 2100 ★ 1.2MiB

icon

京价保 - 京东价保助手 Extension · Shopping 10,000+ 426 ★ 1.01MiB

icon

购物党自动比价工具 Extension · Shopping 10,000+ 416 ★ 7.36MiB

icon

Header Editor Extension · Developer Tools 10,000+ 61 ★ 449KiB

icon

广告终结者 Extension · Productivity 10,000+ 2706 ★ 302KiB

icon

Octotree - GitHub code tree Extension · Developer Tools 10,000+ 1139 ★ 3.54MiB

icon

YAAW for Chrome Extension · Accessibility 10,000+ 96 ★ 204KiB

icon

Saladict - Pop-up Dictionary and Page Translator Extension · Productivity 10,000+ 1656 ★ 3.64MiB

icon

RSSHub Radar Extension · Productivity 10,000+ 60 ★ 1.54MiB

icon

Extension Manager Extension · Productivity 10,000+ 1029 ★ 562KiB

icon

Ghelper Extension · Productivity 10,000+ 783 ★ 333KiB

icon

Enhanced GitHub Extension · Developer Tools 10,000+ 59 ★ 47.01KiB

icon

添加到aria2 Extension · Accessibility 10,000+ 32 ★ 94.77KiB

icon

网易有道翻译 Extension · Productivity 10,000+ 620 ★ 2.09MiB

icon

為什麼你們就是不能加個空格呢? Extension · Productivity 10,000+ 415 ★ 2.5MiB

icon

WizClipper Extension · Productivity 10,000+ 505 ★ 276KiB

icon

有道云笔记网页剪报 Extension · Productivity 10,000+ 475 ★ 270KiB

User reviews

icon

KS LGD (ID: 000000d7e473a152) Voted 4 ★ - Updated 06/14/2023 版本稍小于微软商店,是不是同一版 版号不同?静态资源替换?google翻译api更换了么?尽量加油吧,谢谢!

icon

鹓雏 (ID: 0000009ecb9279a0) Voted 5 ★ - Updated 03/20/2023 stack overflow确实快了!!!!!nice!

icon

谢填 (ID: 0000007f00735ab9) Voted 5 ★ - Updated 03/04/2022 很棒,感谢作者

icon

S S (ID: 000000c04bb63cb0) Voted 3 ★ - Updated 09/08/2021 没什么感觉

icon

河凤凰 (ID: 000000cd1a6a8768) Voted 5 ★ - Updated 01/12/2021 厉害