Open Xcczs opened 1 year ago
on https://github.com/amitbl/blocktube/wiki/Advanced-Blocking
see viewCount
property from video object
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
}
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.