kwaschny / unwanted-twitch

Hide unwanted streams, games, categories and channels on: twitch.tv
https://kwaschny.net
MIT License
102 stars 13 forks source link

Tags and titles not blacklisting sidebar #114

Closed LeetHaxor closed 1 year ago

LeetHaxor commented 1 year ago

Categories and channels blacklisting works fine on sidebar channels.

Tag and title blacklisting works fine on all other pages, just not on the sidebar.

kwaschny commented 1 year ago

The sidebar doesn't show title or tags and that's why they are not filtered. The extension can only block what is visible. It does not magically resolve information about the channel from somewhere else, like the API or what has been seen in a different view.

LeetHaxor commented 1 year ago

Stream titles are shown upon hovering the sidebar, so I logically deduced it would be possible to filter. Tags not being filterable makes sense, though.

kwaschny commented 1 year ago

True, the title is shown on hover, but I have no idea where that information comes from as it is not part of the DOM element. Let me know if you (or any other reader) have a selector to actually fetch that information.

LeetHaxor commented 1 year ago

I admittedly don't have extensive knowledge about coding/HTML, but I tried to figure out how the title data is being accessed on hover.

This is what I was able to get from inspector. The highlighted line is the title, but it disappears when not hovering, so I'm not sure it's really accessible otherwise. I was able to hide the title text by hiding p.CoreText-sc-1txzju1-0.etFJDq, but this hides ALL titles, so fetching specific titles just may not be possible.

Apologies for my lack of experience. It seems as though you were right with your initial thought and it's not possible, unless there's other means which I am not well-versed enough to figure out. Thanks.