code-charity / youtube

[top~1 open YouTube & Video web-extension] Enrich your experience & choice! 🧰180+ options & clever features📌set+forget📌Longest-standing(been tough). Please join🧩us👨‍👩‍👧‍👧 ..⋮ {playback|content discovery|player|extra buttons|distractions|related videos|shorts|ads|quality|codec|full tab|full screen}
http://improvedtube.com
Other
3.41k stars 512 forks source link

Add an option to filter videos with less than 1000 views #1833

Open yeolsongarak opened 10 months ago

yeolsongarak commented 10 months ago

I noticed Revanced just added this option, I didn't think it was needed at first, but I often get those random recommendations from random channels. I wouldn't mind them much but I think I'm wasting a lot of time reading the title of some video I have zero interest of it. Not sure if this is complicated to implement, because most of the videos from my subscription tab have less than 1000 views.

Thanks a lot for all the awesome features of ImprovedYoutube!

ImprovedTube commented 10 months ago

hi! @yeolsongarak
how is it called in re-vanced? At best you can paste the link to the feature's code.

wanna exclude <1000 or exclude the rest? == so your subscriptions are rather popular? or your subscriptions are rather personal / specific and you only want videos below 1000 in https://www.youtube.com/feed/subscriptions specifically?

check: https://github.com/code-charity/youtube/issues/1451

yeolsongarak commented 10 months ago

Thank you for your answer. I couldn't find the specific code, but it's mentioned in the changelog of inotia's repository here: https://github.com/inotia00/revanced-patches/releases/tag/v2.196.1

It's the 10th line, "Hide videos with low views".

wanna exclude <1000 or exclude the rest? The purpose of this would be to filter out recommended videos with less than 1000 views in the main Youtube home page, but only those recommended by Youtube's algorithm. I personally like what I get recommended, except those low views videos.

(Btw I'm not sure if 1000 would be the best threshold for everyone, it just sounded logical to me after seeing the number of views of the videos I'm seeing)

ImprovedTube commented 7 months ago

hi @yeolsongarak i see! the recommendations must be more experimental then, due to lack of data for these new/unpopular videos

ImprovedTube commented 7 months ago

I couldn't find the specific code

surprisingly enough it only exists in one file here: https://github.com/search?q=LowViewsFilter&type=code (also called revanced_hide_video_with_low_view in the gui). Hi @inotia00! #1881

ImprovedTube commented 7 months ago

To work in English, it would need to be:

www.youtube.com##ytd-browse[page-subtype="home"] span.ytd-video-meta-block:has-text(/\d+\sviews/):upward(ytd-rich-item-
renderer)

Because our user base is international, I don't want to distribute rules that assume that the display language is English, and that's why I highly discourage matching on display strings.

@xvello

limitation of this project ... dedicated extension

Yes, we might come across another reason to check youtube's language sooner or later (localized set of regex), but rather much later if ever. It's efficient also to be able to apply regex in a CSS selector. (Several great features i delayed implementing because our code doesn't do that yet)

ImprovedTube commented 7 months ago

burden of pushing

BTW guys,

@inotia00 #1881

The typical GitHub issues takes several years to be solved if ever.
So we need ways to work together on them (#1881), rank/prioritize them & pay/bounty - or skip them (and later some might solve themselves (AI) or changes in global usage & complications) (that's why our feature request template asks to estimate/predict usage amounts) "why do you care?" @yeolsongarak @TryFIXed @Nomes77 @JohnyP36