mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-04 18:07:08 +01:00
Fix domain exception filters for $removeparam
This commit is contained in:
@@ -34,7 +34,7 @@ HEAD = """\
|
||||
! Homepage: https://github.com/DandelionSprout/adfilt/discussions/163
|
||||
! Description: Want to use ClearURLs' tracking protection without installing another extension? This list is a (unofficial) version of the ClearURLs rules, designed for use in uBlock Origin and AdGuard
|
||||
! Last updated: {date}
|
||||
! Script last updated: 26/3/2022
|
||||
! Script last updated: 12/8/2022
|
||||
! Expires: 1 day
|
||||
! Licence: https://github.com/DandelionSprout/adfilt/blob/master/LICENSE.md
|
||||
! Note: This was based off of https://gist.github.com/rusty-snake/5cd83a87d680ecbd03e79a1a06758207, which is based off of https://github.com/ClearURLs/Rules. The maintainers of Adfilt (DandelionSprout and iam-py-test, and contributors) have made some modifications as to keep it up-to-date with the source and to fix issues
|
||||
@@ -265,7 +265,7 @@ def main() -> int:
|
||||
elif kind == "path":
|
||||
filterlist.write("@@{0}$removeparam".format(exception) + "\n")
|
||||
elif kind == "domain":
|
||||
filterlist.write("@@$removeparam,domain={0}".format(exception) + "\n")
|
||||
filterlist.write("@@||{0}^$removeparam".format(exception) + "\n")
|
||||
else:
|
||||
raise ValueError
|
||||
filterlist.write(ALLOWLIST)
|
||||
|
||||
Reference in New Issue
Block a user