From cfd29a159447450ca91290530ae8e88ee68114db Mon Sep 17 00:00:00 2001 From: Moshel Date: Wed, 5 Jul 2017 16:33:31 +0800 Subject: [PATCH] add Google URL Rewrite --- factory/index.sh.bat | 2 -- factory/template/sr_foot.txt | 3 +++ sr_top500_banlist_ad.conf | 5 ++++- sr_top500_whitelist.conf | 5 ++++- sr_top500_whitelist_ad.conf | 5 ++++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/factory/index.sh.bat b/factory/index.sh.bat index 41e999b..5b17fe8 100644 --- a/factory/index.sh.bat +++ b/factory/index.sh.bat @@ -1,6 +1,4 @@ #!/bin/bash -cd factory - python ad.py python build_confs.py diff --git a/factory/template/sr_foot.txt b/factory/template/sr_foot.txt index bc2f221..8cb0438 100644 --- a/factory/template/sr_foot.txt +++ b/factory/template/sr_foot.txt @@ -1,2 +1,5 @@ +[URL Rewrite] +^http://(www.)?google.cn https://www.google.com header + # By Moshel @ https://hzy.pw/ diff --git a/sr_top500_banlist_ad.conf b/sr_top500_banlist_ad.conf index 7ad919e..3a817eb 100644 --- a/sr_top500_banlist_ad.conf +++ b/sr_top500_banlist_ad.conf @@ -1,6 +1,6 @@ # Best Shadowrocket Rules (https://github.com/h2y/Shadowrocket-ADBlock-Rules) # by Moshel -# build time: 2017-07-04 17:32:33 +# build time: 2017-07-05 16:31:58 [General] bypass-system = true @@ -2496,4 +2496,7 @@ IP-CIDR,127.0.0.0/8,DIRECT FINAL,direct +[URL Rewrite] +^http://(www.)?google.cn https://www.google.com header + # By Moshel @ https://hzy.pw/ diff --git a/sr_top500_whitelist.conf b/sr_top500_whitelist.conf index 836bf7c..99b270f 100644 --- a/sr_top500_whitelist.conf +++ b/sr_top500_whitelist.conf @@ -1,6 +1,6 @@ # Best Shadowrocket Rules (https://github.com/h2y/Shadowrocket-ADBlock-Rules) # by Moshel -# build time: 2017-07-04 17:32:33 +# build time: 2017-07-05 16:31:58 [General] bypass-system = true @@ -408,4 +408,7 @@ GEOIP,CN,DIRECT FINAL,proxy +[URL Rewrite] +^http://(www.)?google.cn https://www.google.com header + # By Moshel @ https://hzy.pw/ diff --git a/sr_top500_whitelist_ad.conf b/sr_top500_whitelist_ad.conf index 4093569..2bb4034 100644 --- a/sr_top500_whitelist_ad.conf +++ b/sr_top500_whitelist_ad.conf @@ -1,6 +1,6 @@ # Best Shadowrocket Rules (https://github.com/h2y/Shadowrocket-ADBlock-Rules) # by Moshel -# build time: 2017-07-04 17:32:33 +# build time: 2017-07-05 16:31:58 [General] bypass-system = true @@ -2764,4 +2764,7 @@ GEOIP,CN,DIRECT FINAL,proxy +[URL Rewrite] +^http://(www.)?google.cn https://www.google.com header + # By Moshel @ https://hzy.pw/