mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-09-24 21:00:23 +01:00
Fix https://github.com/DandelionSprout/adfilt/issues/1089 and improve date format
The rule removed appears to me to be way to broad, both in it's converted and original form (`"(?:%3F)?[a-z]?mc",`), so I have excluded it completely.
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. This ONLY includes the URL parameter removal functionality from ClearURLs, and not the other functions.
|
||||
! Last updated: {date}
|
||||
! Script last updated: 25/6/2024
|
||||
! Script last updated: 2025-2-11
|
||||
! Expires: 1 day
|
||||
! Licence: https://github.com/DandelionSprout/adfilt/blob/master/LICENSE.md
|
||||
! Warning: This list may break websites, and contains many problematic rules. Worse, it may even prevent other filterlists from working. There is not much the Adfilt maintainers can do, as this list is just the ClearURLs rules converted into a uBo/AdGuard filterlist. Use with caution.
|
||||
@@ -96,6 +96,8 @@ KNOWN_BAD_FILTERS = [
|
||||
"||bing.*^$removeparam=cvid",
|
||||
# https://github.com/DandelionSprout/adfilt/discussions/163#discussioncomment-9855948
|
||||
"||reddit.com^$removeparam=rdt",
|
||||
# https://github.com/DandelionSprout/adfilt/issues/1089
|
||||
"$removeparam=/^[a-z]?mc=/",
|
||||
]
|
||||
|
||||
ALLOWLIST = """
|
||||
@@ -244,7 +246,7 @@ def main() -> int:
|
||||
print("No change in rules. Exiting...")
|
||||
sys.exit()
|
||||
filterlist = open("clear_urls_uboified.txt", "w")
|
||||
filterlist.write(HEAD.format(date=date.today().strftime("%d/%m/%Y")))
|
||||
filterlist.write(HEAD.format(date=date.today().strftime("%Y-%m-%d")))
|
||||
|
||||
# TODO: referralMarketing
|
||||
providers = {
|
||||
|
||||
Reference in New Issue
Block a user