When available, automatically maps Google devsites to its CN mirrors
Google CN DevSites Extension
这是一个简单的Chrome扩展,自动将google.com上的开发者网站URL替换成google.cn上的对应URL(如果有相对应的.CN域名上的页面),这样只要点击就能直接打开页面。现在支持的映射有:
- \"developers.google.com\" -> \"developers.google.cn\"
- \"firebase.google.com\" -> \"firebase.google.cn\"
- \"developer.android.com\" -> \"developer.android.google.cn\"
- \"source.android.com\" -> \"source.android.google.cn\"
- \"www.tensorflow.org\" -> \"tensorflow.google.cn\"
- \"tfhub.dev\" -> \"hub.tensorflow.google.cn\"
- \"angular.io\" -> \"angular.cn\"
- \"golang.org\" -> \"golang.google.cn\"
- \"sum.golang.org\" -> \"sum.golang.google.cn\"
同时它还包含一些其他谷歌服务的网址映射:
- \"translate.google.com\" -> \"translate.google.cn\"
- \"careers.google.com\" -> \"careers.google.cn\"
代码已经在这里开源:https://github.com/chenzhuo914/google-cn-devsites-extension.
Read more
- \"developers.google.com\" -> \"developers.google.cn\"
- \"firebase.google.com\" -> \"firebase.google.cn\"
- \"developer.android.com\" -> \"developer.android.google.cn\"
- \"source.android.com\" -> \"source.android.google.cn\"
- \"www.tensorflow.org\" -> \"tensorflow.google.cn\"
- \"tfhub.dev\" -> \"hub.tensorflow.google.cn\"
- \"angular.io\" -> \"angular.cn\"
- \"golang.org\" -> \"golang.google.cn\"
- \"sum.golang.org\" -> \"sum.golang.google.cn\"
同时它还包含一些其他谷歌服务的网址映射:
- \"translate.google.com\" -> \"translate.google.cn\"
- \"careers.google.com\" -> \"careers.google.cn\"
代码已经在这里开源:https://github.com/chenzhuo914/google-cn-devsites-extension.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Google CN DevSites", "description": "When available, automatically maps Google devsites to its CN mirrors", "version": "0.25", "permissions": [ "declarativeNetRequest", "storage" ], "declarative_net_request": { "rule_resources": [{ "id": "ruleset_1", "enabled": true, "path": "rules.json" }] }, "host_permissions": [ "*://*.google.com/*", "*://*.android.com/*", "*://*.tensorflow.org/*", "*://*.angular.io/*", "*://*.golang.org/*" ], "background": { "service_worker": "bg.js" }, "icons": { "128": "on.png" }, "action": {}}
Read more