加速访问谷歌静态资源

目的: 访问外文网站时,由于引用的谷歌的资源服务导致网页访问奇慢无比,下面的方式可以加速访问. 资料来源: 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 }

其他使用参考 插件文档.

上一篇:k8s安装之prometheus.yaml


下一篇:kubernetes1.14部署kube-dashboard: