Skip to content

update html filtering rules section with the contains pseudo class#884

Merged
SeverAnna merged 4 commits into
masterfrom
AGM-2069-update-html-filtering-rules-section-with-the-contains-pseudo-class
Jun 22, 2026
Merged

update html filtering rules section with the contains pseudo class#884
SeverAnna merged 4 commits into
masterfrom
AGM-2069-update-html-filtering-rules-section-with-the-contains-pseudo-class

Conversation

@SeverAnna

Copy link
Copy Markdown
Contributor

No description provided.

Introduce the recommended :contains() pseudo-class with examples

Consolidate the deprecation notice for legacy special attributes into a single paragraph and remove the repeated caution blocks
@SeverAnna SeverAnna changed the title Agm 2069 update html filtering rules section with the contains pseudo class update html filtering rules section with the contains pseudo class Jun 11, 2026
@SeverAnna SeverAnna requested a review from Alex-302 June 11, 2026 06:43
@github-actions

Copy link
Copy Markdown

Preview was deployed to: https://pull-request-884.kb-adg.pages.dev/

@github-actions

Copy link
Copy Markdown

Preview was deployed to: https://pull-request-884.kb-adg.pages.dev/

example.com$$script:contains(/ad_system_\d+/)
```

The first rule removes any `<script>` tag containing the word Adverts. The second targets any `<div>` containing the phrase Sponsored by. The third rule utilizes a regular expression to match dynamic script patterns.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to put Adverts and Sponsored by in quotation marks?
"Adverts" and "Sponsored by"

or use code tag

`Adverts` and `Sponsored by`

@github-actions

Copy link
Copy Markdown

Preview was deployed to: https://pull-request-884.kb-adg.pages.dev/

@SeverAnna SeverAnna merged commit 2d2275f into master Jun 22, 2026
4 checks passed
@SeverAnna SeverAnna deleted the AGM-2069-update-html-filtering-rules-section-with-the-contains-pseudo-class branch June 22, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants