cobaltdisco / Google-Chinese-Results-Blocklist

我终于能用谷歌搜中文了……
7.45k stars 278 forks source link

屏蔽以 m. 开头的手机页面 #46

Closed bcaso closed 2 years ago

bcaso commented 2 years ago

正则:/(m\.).*/

m. 开头的多为手机页面,新闻页啥的

mtgq commented 2 years ago

/(m.).*/

好像这个正则有误杀,比方说测试的时候有这个网址 https://www.tianyuefangchan.com/mobile/sitemap/index-htm-mid-14-letter-m.html ,但是也会被 block掉

bcaso commented 2 years ago

/(m.).*/

好像这个正则有误杀,比方说测试的时候有这个网址 https://www.tianyuefangchan.com/mobile/sitemap/index-htm-mid-14-letter-m.html ,但是也会被 block掉

试试这个:/^https?:\/\/m\./

已测试,可屏蔽:https://m.uber.com, https://m.weibo.cn

保留:https://www.3m.com

https://regexper.com/#%5Ehttps%3F%3A%5C%2F%5C%2Fm%5C. image

mtgq commented 2 years ago

/(m.).*/

好像这个正则有误杀,比方说测试的时候有这个网址 https://www.tianyuefangchan.com/mobile/sitemap/index-htm-mid-14-letter-m.html ,但是也会被 block掉

试试这个:/^https?:\/\/m\./

已测试,可屏蔽:https://m.uber.com, https://m.weibo.cn

保留:https://www.3m.com

https://regexper.com/#%5Ehttps%3F%3A%5C%2F%5C%2Fm%5C. image

这个没问题,大佬牛批

bcaso commented 2 years ago

手机页面,还有以 wap. 开头的,规则是:/^https?:\/\/wap\./

如:zol 问答:https://wap.zol.com.cn/ask/details_2466034_2482161_3.html

还有以 3g. 开头的,规则是:/^https?:\/\/3g\./ https://3g.163.com/dy/article/EG9RIKD905315FR9.html 这个可能有误杀

mtgq commented 2 years ago

手机页面,还有以 wap. 开头的,规则是:/^https?:\/\/wap\./

如:zol 问答:https://wap.zol.com.cn/ask/details_2466034_2482161_3.html

还有以 3g. 开头的,规则是:/^https?:\/\/3g\./ https://3g.163.com/dy/article/EG9RIKD905315FR9.html 这个可能有误杀

我发现,网址中带数字的一般大部分都是垃圾站,例如 aaa.123x.com 等等,像这种网址

cobaltdisco commented 2 years ago

不好意思,现阶段不会选择这种方式屏蔽,潜在误杀有点大。