Skip to content

Filter using procedural cosmetic filtering not working in Brave #45734

Description

@jlivak

Description

The following filter doesn't seem to match anything when added to Brave, however works correctly if added to uBlock Origin installed in Brave.

! YT Home - Hide Videos Below 1K Views (backup version - less efficient)
www.youtube.com##ytd-browse[page-subtype="home"] ytd-rich-item-renderer:not(:has(#video-title[aria-label~="views"], .yt-lockup-view-model-wiz--collection-stack-2)) :is(#metadata-line>span:first-of-type, .yt-content-metadata-view-model-wiz__metadata-row):not(:has-text(/[KMB]\b/)):upward(ytd-rich-item-renderer)

Steps to reproduce

  1. Add the above filter to your custom filters list.
  2. Open the YouTube home page, preferably logged into an account, so recommended videos are populated.

Actual result

No elements on the page are matched or blocked.

Expected result

Any videos with under 1000 views are blocked.

Reproduces how often

Easily reproduced

Brave version (brave://version info)

Brave | 1.77.101 Chromium: 135.0.7049.115 (Official Build) (64-bit)
Revision | 26bbcaf2303c02c94bd16823418eb1e83a00b86b
OS | Windows 11 Version 21H2 (Build 22000.527)

Channel information

  • release (stable)
  • beta
  • nightly

Reproducibility

  • with Brave Shields disabled
  • with Brave Rewards disabled
  • in the latest version of Chrome

Miscellaneous information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions