Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
update bac file
Browse files Browse the repository at this point in the history
  • Loading branch information
花漫 committed Jan 12, 2015
1 parent 40fae95 commit 24efc66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ OWL
===
Chrome 重定向工具

[英文版翻译中](https://github.com/meowtec/Owl-redirector/blob/master/README_en.md)(作者英文渣)
[英文版即将翻译中](https://github.com/meowtec/Owl-redirector/blob/master/README_en.md)(作者英文渣)
### 安装
- 如果你可以翻墙,建议直接访问 [Chrome Webstore](https://chrome.google.com/webstore/detail/beknllkoddklgoflifhgkhkkibgkpdch)
- 如果你翻不了墙,可以下载 [owl-redirector.crx](https://github.com/meowtec/Owl-redirector/blob/master/owl-redirector.crx?raw=true),然后打开`扩展程序`页面,把`.crx`文件拖进去。
Expand Down Expand Up @@ -112,6 +112,6 @@ function (url){
### 导出和导入
设置页面有`导出``导入`两个按钮,分别可以讲当前设置导出为`.bac`格式的文本文件,以及从`.bac`文件导入备份的设置。

项目路径下有一个`示例备份`,里面包含本文档中的例子。
#### 项目路径下有一个`示例备份`,里面包含本文档中的例子,你可以删掉或者关闭不需要的

**请不要随便导入未知文件,切记**
2 changes: 1 addition & 1 deletion 示例备份_rules_example.bac
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"build":1,"rules":[{"url":"^https?:\\/\\/(((ajax|fonts)\\.googleapis\\.com)|(themes\\.googleusercontent\\.com)|(fonts\\.gstatic\\.com))\\/","replacer":"function (url){\n return url.replace('googleapis.com', 'lug.ustc.edu.cn')\n .replace('themes.googleusercontent.com', 'google-themes.lug.ustc.edu.cn')\n .replace('fonts.gstatic.com', 'fonts-gstatic.lug.ustc.edu.cn')\n}","regex":true,"type":"function","enable":true,"inTrash":false},{"url":"http://ajax.lug.ustc.edu.cn/ajax/libs/jquery/1.11.2/jquery.min.js","replacer":"http://ajax.lug.ustc.edu.cn/ajax/libs/jquery/1.11.2/jquery.js","regex":false,"type":"url","enable":true,"inTrash":false},{"url":"^http:\\/\\/fc\\.5sing\\.com\\/(\\d+)\\.html.*$","replacer":"function (url){\n var matchResult = url.match(/^http:\\/\\/fc\\.5sing\\.com\\/(\\d+)\\.html.*$/)\n return 'http://5sing.kugou.com/fc/' + matchResult[1] + '.html'\n}","regex":true,"type":"function","enable":true,"inTrash":false},{"url":"http://www.google-analytics.com/analytics-2.js","replacer":"function (){\n // return undefined 的例子,表示不进行重定向\n // 当然,这个链接可能访问不了\n}","regex":false,"type":"function","enable":true,"inTrash":false},{"url":"http://www.google-analytics.com/analytics-1.js","replacer":"function (){\n return false\n // 这是返回值为 false 的例子,表示阻止跳转\n}","regex":false,"type":"function","enable":true,"inTrash":false},{"url":"http://www.google-analytics.com/analytics.js","replacer":"","regex":false,"type":"url","enable":true,"inTrash":false},{"url":"^http:\\/\\/cc\\.stream\\.qqmusic\\.qq\\.com\\/.*\\.m4a.*$","replacer":"function (url){\n download(url)\n}","regex":true,"type":"function","enable":true,"inTrash":false}]}
{"build":3,"rules":[{"url":"^https:\\/\\/www\\.google\\.com\\.hk\\/url\\?(.*&)?url=","replacer":"/* Google 结果页面直接跳转 */\nfunction (url){\n var matchResult = url.match(/&url=([^&]+).*/)\n return matchResult && decodeURIComponent(matchResult[1])\n}","regex":true,"type":"function","enable":true,"inTrash":false},{"url":"^https?:\\/\\/(((ajax|fonts)\\.googleapis\\.com)|(themes\\.googleusercontent\\.com)|(fonts\\.gstatic\\.com))\\/","replacer":"/* Google 资源国内 CDN */\nfunction (url){\n return url.replace('googleapis.com', 'lug.ustc.edu.cn')\n .replace('themes.googleusercontent.com', 'google-themes.lug.ustc.edu.cn')\n .replace('fonts.gstatic.com', 'fonts-gstatic.lug.ustc.edu.cn')\n}","regex":true,"type":"function","enable":true,"inTrash":false},{"url":"http://ajax.lug.ustc.edu.cn/ajax/libs/jquery/1.11.2/jquery.min.js","replacer":"http://ajax.lug.ustc.edu.cn/ajax/libs/jquery/1.11.2/jquery.js","regex":false,"type":"url","enable":true,"inTrash":false},{"url":"^http:\\/\\/fc\\.5sing\\.com\\/(\\d+)\\.html.*$","replacer":"function (url){\n var matchResult = url.match(/^http:\\/\\/fc\\.5sing\\.com\\/(\\d+)\\.html.*$/)\n return 'http://5sing.kugou.com/fc/' + matchResult[1] + '.html'\n}","regex":true,"type":"function","enable":true,"inTrash":false},{"url":"http://www.google-analytics.com/analytics-2.js","replacer":"function (){\n // return undefined 的例子,表示不进行重定向\n // 当然,这个链接可能访问不了\n}","regex":false,"type":"function","enable":true,"inTrash":false},{"url":"http://www.google-analytics.com/analytics-1.js","replacer":"function (){\n return false\n // 这是返回值为 false 的例子,表示阻止跳转\n}","regex":false,"type":"function","enable":true,"inTrash":false},{"url":"http://www.google-analytics.com/analytics.js","replacer":"","regex":false,"type":"url","enable":true,"inTrash":false},{"url":"^http:\\/\\/cc\\.stream\\.qqmusic\\.qq\\.com\\/.*\\.m4a.*$","replacer":"function (url){\n download(url)\n}","regex":true,"type":"function","enable":true,"inTrash":false},{"url":"http://^https?://hm\\.baidu\\.com/h\\.js.*$","replacer":"","regex":true,"type":"url","enable":true,"inTrash":false},{"url":"^http:\\/\\/w\\.cnzz\\.com\\/","replacer":"","regex":true,"type":"url","enable":true,"inTrash":false}]}

0 comments on commit 24efc66

Please sign in to comment.