blocktube icon indicating copy to clipboard operation
blocktube copied to clipboard

[Request] Make an option to hide videos under certain views

Open Xcczs opened this issue 2 years ago • 2 comments

I don't know what's up with youtube recommending me videos with 100 views or less multiple times a day. Some days I have 5+ videos on my recommended page with under 10 views. An option to hide videos like these would be advantageous cause it literary fills my recommended page with junk, and there is no way I'm the only one.

Xcczs avatar Nov 02 '22 20:11 Xcczs

on https://github.com/amitbl/blocktube/wiki/Advanced-Blocking see viewCount property from video object

nodsaibot avatar Dec 07 '22 06:12 nodsaibot

Add this line to your Advanced Blocking to hide videos under 1000 views. You can change the number to whatever you want.

(video, objectType) => {  if (video.viewCount < 1000) {return true; } return false; }

EDIT: Keep in mind you'll have to nest the if conditions (as shown below) if you want to have multiple rules. Just pasting in the above rule as is will cause other rules to stop functioning.

(video, objectType) => {
    if (video.publishTimeText.match("years")) {
        return true; // Block videos older than 1 year
    }
    if (video.viewCount < 1000) {
        return true; // Block videos with less than 1000 views
    }
    return false; // Allow all other videos
}

ercarp avatar Apr 29 '24 07:04 ercarp