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

Add new rule for detecting legacy HTML filtering rule syntax #238

Open
scripthunter7 opened this issue Dec 23, 2024 · 0 comments
Open

Add new rule for detecting legacy HTML filtering rule syntax #238

scripthunter7 opened this issue Dec 23, 2024 · 0 comments
Assignees
Labels

Comments

@scripthunter7
Copy link
Member

Deprecate old HTML filtering syntax, and suggest the modern approach. For example

  • tag-content should be replaced by contains:
    example.com$$script[tag-content="foo"]
    ↓↓↓ should be fixed as ↓↓↓
    example.com$$script:contains(foo)
  • wildcard should be replaced by contains, and glob pattern should be replaced by regular expression:
    example.com$$script[wildcard="*banner*text*"]
    ↓↓↓ should be fixed as ↓↓↓
    example.com$$script:contains(/banner.*text/)

Suggested rule name: no-legacy-html-filtering-syntax

#13 (comment)

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

3 participants