Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default rule suggestion #145

Open
r-flash opened this issue Mar 24, 2021 · 0 comments
Open

Default rule suggestion #145

r-flash opened this issue Mar 24, 2021 · 0 comments
Labels

Comments

@r-flash
Copy link

r-flash commented Mar 24, 2021

I have noticed some links around the Internet where utm_* parameters are in the hash. As a filter for utm_* query parameters is already among the default rules, I suggest also adding something like this:

[
  {
    "uuid": "26e187d0-57c3-43f5-8744-37d7c470593f",
    "pattern": {
      "scheme": "*",
      "host": [
        "*"
      ],
      "path": [
        "*"
      ],
      "allUrls": true
    },
    "types": [
      "main_frame"
    ],
    "action": "redirect",
    "active": true,
    "title": "Remove%20utm_*%20from%20hash",
    "redirectUrl": "[hash={hash//utm_[^&]+&?/}]"
  }
]

(I would also appreciate advice if there is a more correct/optimal way to express this kind of filter :) )

@tumpio tumpio added the rules label May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants