Update hide_farm.py

This commit is contained in:
観月唯 2020-11-24 11:41:16 +08:00 committed by GitHub
parent 388930c2ae
commit e492e8bd1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ with open('../nofarm_hosts.txt', 'r') as files:
for domains in files.read().split('\n'):
if domains:
domain = domains[2:-1]
domain_list += 'google.*##div[data-hveid]:has(a[href*="{domain}"])\n'.format(
domain_list += 'google.*##div.g:has(div[data-hveid] a[href*="{domain}"])\n'.format(
domain=domain
)
domain_list_ff += 'google.*##div div div:has(a[href*="{domain}"])\n'.format(