amitbl / blocktube

YouTubeâ„¢ content blocker
GNU General Public License v3.0
855 stars 57 forks source link

Small(?) suggestion?: Don't suggest videos that have been viewed less than e.g. 1000 times #401

Open schittli opened 2 months ago

schittli commented 2 months ago

Hello

I appreciate your great work!, if helps a lot to keep productive and focused 😄

I'm not sure, but this suggestion could be simple and very useful: Among the videos suggested by YouTube, those that have been watched remarkably rarely are usually not worth looking at.

Would it be possible to define a filter that only suggests videos that have been viewed at least 1000 times, for example?

Thanks a lot, kind regards, Thomas

xavieraiden commented 2 months ago

You can do this with advanced blocking, Here's what I've done:


(video, objectType) => {

// Block videos with less than 5k views
}
if (video.viewCount < 5000) {
    return true; 
}
  // Custom conditions did not match, do not block
  return false;
}