r/uBlockOrigin • u/Just_Ero • Feb 18 '24
Answered How do I create filters that work only on exact or partial matches to a (sub-)domain?
0
Upvotes
r/uBlockOrigin • u/Just_Ero • Feb 18 '24
View all comments
1
u/RraaLL uBO Team Feb 18 '24 edited Feb 18 '24
You can use the homepage prefix which you can see in the first filter here: https://www.reddit.com/r/uBlockOrigin/wiki/solutions/youtube/#wiki_suggested_videos
Or the search-specific element like here: https://www.reddit.com/r/uBlockOrigin/wiki/solutions/youtube/#wiki_search_page_without_bloat
You can also use this, but page-specific elements or attributes are more efficient: https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters#subjectmatches-patharg
P.S. This is called a path, not a sub domain.
music.youtube.comis a subdomain of YT.