Skip to content

Conversation

@mindplay-dk
Copy link

update blocking rules found here:

https://www.reddit.com/r/Adblock/comments/ts7mia/youtube_shorts_custom_filter_blocks_all_shorts/

(the current ones do not block anything on the main page)

update blocking rules found here:

https://www.reddit.com/r/Adblock/comments/ts7mia/youtube_shorts_custom_filter_blocks_all_shorts/

(the current ones do not block anything on the main page)
@mindplay-dk
Copy link
Author

Hmm, this worked great for a few days, and now it doesn't. 🤨

How do you develop and test ad filter rules?

I was surprised to find there's a whole graphical UI that generates ad-filters on the mobile version of Brave only?

How putting something in dev tools, or an extension, something, anything so we can develop and test ad rules?

What do people do now? Just keep editing and reloading? That doesn't work - especially on something like YouTube where everything is different every time you reload the page... 😌

@mindplay-dk
Copy link
Author

how about adding "Copy adblock filter" here?

image

I know you have the functionality internally somewhere, because the feature is exposed in the mobile version. (again, no idea why the mobile version would have this feature before the desktop version - developers don't create these filters from their mobile phones, do they?)

@mindplay-dk
Copy link
Author

Hmm, no, this doesn't work anymore either.

The one that works for me is www.youtube.com##ytd-rich-section-renderer:has(#icon) - which seems dangerously broad, but the shorts shelf seems to be the only one that has the icon for now.

I can't find any other rule that works.

working rules to block shorts
@mindplay-dk
Copy link
Author

mindplay-dk commented Aug 15, 2025

Updated the PR with rules that seem to work now.

I don't think any rule with a[href^="/shorts/"] works anymore, they're doing their best to hide the damn shorts.

I've been rid of them now for a few days, so this seems to work.

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.

1 participant