Skip to content

Cosmetic filters containing pseudo-elements like ::before and ::after are ignored #2448

@Blutgang

Description

@Blutgang

Describe the issue

Filters containing pseudo-elements like ::before and ::after are ignored. (Last working version - uBlock Origin 1.9.6)

One or more specific URLs where the issue occurs

  1. https://www.reddit.com/r/hockey/comments/5yp1cc/nhl_to_permanently_retire_no_66_in_honor_of_josh/
  2. https://www.reddit.com/r/The_Donald/

Steps for anyone to reproduce the issue

  1. Add custom filter: reddit.com##.arrow.down.login-required.access-required::after
  2. Visit the first URL above
  3. Hover over the downvote arrow

Expected result: "Please do not downvote based on team fandom or because you don't agree." hover should be hidden.


  1. Add custom filter: reddit.com###header-bottom-left::before:style(animation: none !important; -moz-animation: none !important; -webkit-animation: none !important; o-animation: none !important; ms-animation: none !important;)
  2. Visit the second URL above
  3. The banner/header displays an animation

Expected result: The banner animation should be disabled.

Your settings

  • Browser/version: Firefox 52.0
  • uBlock Origin version: 1.11.2
Your filter lists

Default filter lists

Your custom filters (if any)
reddit.com##.arrow.down.login-required.access-required::after
reddit.com###header-bottom-left::before:style(animation: none !important; -moz-animation: none !important; -webkit-animation: none !important; o-animation: none !important; ms-animation: none !important;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions