From 843a0ce218dc16cf6d54a9be0224534e7b505d22 Mon Sep 17 00:00:00 2001 From: Conners Hua Date: Sun, 6 Jun 2021 12:55:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A9=20Turn=20Off=20Google=20Safesearch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Quantumult/Rewrite/Turn-Off-Google-Safesearch.conf | 8 ++++++++ Surge/Module/Turn-Off-Google-Safesearch.sgmodule | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 Quantumult/Rewrite/Turn-Off-Google-Safesearch.conf create mode 100644 Surge/Module/Turn-Off-Google-Safesearch.sgmodule diff --git a/Quantumult/Rewrite/Turn-Off-Google-Safesearch.conf b/Quantumult/Rewrite/Turn-Off-Google-Safesearch.conf new file mode 100644 index 0000000..4956b03 --- /dev/null +++ b/Quantumult/Rewrite/Turn-Off-Google-Safesearch.conf @@ -0,0 +1,8 @@ +# Turn Off Google Safesearch(Beta) +# 关闭 Google 安全搜索。第二条用于被 Google 识别成中国大陆,也就是访问不了 https://www.google.com/maps/timeline 的 IP。桌面端请使用 https://google.com/ncr。 + +hostname = www.google.com,www.google.com.* + +(https:\/\/www\.google\.com([.a-z]+)?\/.+)(&safe=strict&)(.+) url 302 $1&safe=off + +https://www\.google\.com\.hk\/search\?q=([\w.]+)&.+ url 302 https://www.google.com.sg/search?q=$1&safe=off \ No newline at end of file diff --git a/Surge/Module/Turn-Off-Google-Safesearch.sgmodule b/Surge/Module/Turn-Off-Google-Safesearch.sgmodule new file mode 100644 index 0000000..2caa41e --- /dev/null +++ b/Surge/Module/Turn-Off-Google-Safesearch.sgmodule @@ -0,0 +1,10 @@ +#!name=Turn Off Google Safesearch(Beta) +#!desc=关闭 Google 安全搜索。第二条用于被 Google 识别成中国大陆,也就是访问不了 https://www.google.com/maps/timeline 的 IP。桌面端请使用 https://google.com/ncr。 +#!system=ios + +[URL Rewrite] +(https:\/\/www\.google\.com([.a-z]+)?\/.+)(&safe=(active|strict)&)(.+) $1&safe=off 302 +https://www\.google\.com\.hk\/search\?q=([\w.]+)&(.+) https://www.google.com.sg/search?q=$1&safe=off 302 + +[MITM] +hostname = %INSERT% www.google.com,www.google.com.* \ No newline at end of file