From 24efc66707c5d6bbcb7601360b882566a83e94f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=BC=AB?= Date: Mon, 12 Jan 2015 22:31:25 +0800 Subject: [PATCH] update bac file --- README.md | 4 ++-- ...272\344\276\213\345\244\207\344\273\275_rules_example.bac" | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 10bf737..429fe53 100644 --- a/README.md +++ b/README.md @@ -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`文件拖进去。 @@ -112,6 +112,6 @@ function (url){ ### 导出和导入 设置页面有`导出`和`导入`两个按钮,分别可以讲当前设置导出为`.bac`格式的文本文件,以及从`.bac`文件导入备份的设置。 -项目路径下有一个`示例备份`,里面包含本文档中的例子。 +#### 项目路径下有一个`示例备份`,里面包含本文档中的例子,你可以删掉或者关闭不需要的。 **请不要随便导入未知文件,切记** diff --git "a/\347\244\272\344\276\213\345\244\207\344\273\275_rules_example.bac" "b/\347\244\272\344\276\213\345\244\207\344\273\275_rules_example.bac" index c58c5e9..e240805 100644 --- "a/\347\244\272\344\276\213\345\244\207\344\273\275_rules_example.bac" +++ "b/\347\244\272\344\276\213\345\244\207\344\273\275_rules_example.bac" @@ -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}]} \ No newline at end of file +{"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}]} \ No newline at end of file