th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
8.56k stars 490 forks source link

[Feature Request] Hide/Disable videos on search results. #982

Open TheSoulWizard opened 1 year ago

TheSoulWizard commented 1 year ago

Add an optional feature to remove video results taken from youtube and show only music results or remember that I've clicked the "Songs" tab so videos wont appear on my next search and app restart. (Kinda bugs me that this isn't an option on the official app...) videos

Zo-Bro-23 commented 1 year ago

@Araxeus possible or too difficult? Maybe the videos have different DOM IDs or Classes. Or maybe we should hide the entire video DIV (but what about Top Result then). We'll have to experiment and see. Automatically enabling the Songs filter might also work (that might be easier).

Also, @TheSoulWizard, what app did you use to annotate the screenshot? The fluorescent markings look phenomenal 😅

TheSoulWizard commented 1 year ago

Also, @TheSoulWizard, what app did you use to annotate the screenshot? The fluorescent markings look phenomenal 😅

It's a free online tool called Pixlr, kinda wonky sometimes but it's pretty decent for being a free photo editor. Couldn't think of any other way to mark a screenshot since im using a debloated version of windows 11 and didn't had it's "photo" app installed. The neon effect was something i discovered by accident.

Zo-Bro-23 commented 1 year ago

Also, @TheSoulWizard, what app did you use to annotate the screenshot? The fluorescent markings look phenomenal sweat_smile

It's a free online tool called Pixlr, kinda wonky sometimes but it's pretty decent for being a free photo editor. Couldn't think of any other way to mark a screenshot since im using a debloated version of windows 11 and didn't had it's "photo" app installed. The neon effect was something i discovered by accident.

Oh, nice.

Araxeus commented 1 year ago
$$('ytmusic-shelf-renderer').forEach(e => {
    if (e.querySelector('.header .title yt-formatted-string').textContent !== 'Songs') e.style.display = 'none';
})

kinda works, but actually not because its minimized and it fucks up the search ui if expanded the right approach would be to figure out how to access the song page like youtube does