ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

加速访问谷歌静态资源

2019-10-08 21:55:13  阅读:849  来源: 互联网

标签:src kind enable 静态 dst 谷歌 访问 wildcard com


目的: 访问外文网站时,由于引用的谷歌的资源服务导致网页访问奇慢无比,下面的方式可以加速访问. 资料来源: https://github.com/jiacai2050/gooreplacer
步骤: 下载安装FireFox浏览器插件 https://addons.mozilla.org/zh-CN/firefox/addon/gooreplacer/ 打开插件配置导入如下规则 

 

保存为 gooreplacer.gson

 1 {
 2   "createBy": "http://liujiacai.net/gooreplacer/",
 3   "version": "3.10.0",
 4   "createAt": "Tue Oct 08 2019 09:57:27 GMT+0800 (中国标准时间)",
 5   "redirect-rules": [
 6     {
 7       "src": "themes.googleusercontent.com",
 8       "dst": "google-themes.proxy.ustclug.org",
 9       "kind": "wildcard",
10       "enable": true
11     },
12     {
13       "src": "apis.google.com/js/api.js",
14       "dst": "cdn.jsdelivr.net/gh/jiacai2050/gooreplacer@gh-pages/proxy/api.js",
15       "kind": "wildcard",
16       "enable": true
17     },
18     {
19       "src": "apis.google.com/js/plusone.js",
20       "dst": "cdn.jsdelivr.net/gh/jiacai2050/gooreplacer@gh-pages/proxy/plusone.js",
21       "kind": "wildcard",
22       "enable": true
23     },
24     {
25       "src": "gerrit.googlesource.com",
26       "dst": "gerrit-googlesource.proxy.ustclug.org",
27       "kind": "wildcard",
28       "enable": true
29     },
30     {
31       "src": "fonts.gstatic.com",
32       "dst": "fonts-gstatic.proxy.ustclug.org",
33       "kind": "wildcard",
34       "enable": false
35     },
36     {
37       "src": "fonts.googleapis.com",
38       "dst": "fonts.proxy.ustclug.org",
39       "kind": "wildcard",
40       "enable": false
41     },
42     {
43       "src": "storage.googleapis.com",
44       "dst": "storage-googleapis.proxy.ustclug.org",
45       "kind": "wildcard",
46       "enable": true
47     },
48     {
49       "src": "ajax.googleapis.com",
50       "dst": "ajax.proxy.ustclug.org",
51       "kind": "wildcard",
52       "enable": true
53     },
54     {
55       "src": "platform.twitter.com/widgets.js",
56       "dst": "cdn.jsdelivr.net/gh/jiacai2050/gooreplacer@gh-pages/proxy/widgets.js",
57       "kind": "wildcard",
58       "enable": true
59     },
60     {
61       "src": "https://www.google.com/jsapi",
62       "kind": "wildcard",
63       "dst": "https://www.google.cn/jsapi",
64       "enable": false
65     },
66     {
67       "src": "https://www.google.com/cse/$",
68       "kind": "wildcard",
69       "dst": "https://www.google.cn/cse/$",
70       "enable": false
71     },
72     {
73       "src": "(google)\\.com",
74       "kind": "wildcard",
75       "dst": "$1.cn",
76       "enable": true
77     }
78   ],
79   "cancel-rules": [],
80   "request-headers": [],
81   "response-headers": []
82 }

其他使用参考 插件文档.

标签:src,kind,enable,静态,dst,谷歌,访问,wildcard,com
来源: https://www.cnblogs.com/onion94/p/11638150.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有