Hide any videos that are recommended more than twice. You can also hide by channel or by partial title. Works on both YouTube's desktop and mobile layouts.
< Feedback on YouTube Repeated Recommendations Hider
This userscript is intended to work only in https://m.youtube.com, which is the mobile homepage. It indeed does not work for the related videos (https://m.youtube.com/watch?v=...). I may add an option to also filter the related videos.
When directly using the scripts without any modification, it didn't run within Tampermonkey so that was why I adapted it. I also hide the repeated videos on Youtube homepage only.
That's weird, it's working fine here. I just released a new version. Make sure that you test it on https://m.youtube.com/?app=mobile . If it still doesn't work, try to close YouTube's tab and restart Firefox (force close it then open again), and try again. If this doesn't work, try to test it in another script-manager, like Violentmonkey or Greasemonkey.
I just released a new version with some new features and bug fixes. Can you update and test if it's still happening?
Why make this to work only on the mobile website? Seems rather futile.
@bloodgull Because I initially made this just for me and I just needed it to work on mobile, but then I decided to share it so other people could use it too. Any day I may release an update that makes it work on the desktop layout too.
@bloodgull The userscript now also works on the desktop layout.
@bazrael That shouldn't be happening in the mobile version, thanks for the feedback, I'll release a fix soon.
In the mean time, just remove the recommendationsContainer.style.marginLeft = "100px"
in line 172 from the code.
@bazrael An update with the fix is now available.
Running on an Android 7.1.1 phone, trying to install on the latest Firefox Nightly with Tampermonkey v4.12.6132 and modifying "@match https://m.youtube.com " to "@match https://m.youtube.com/*", the scripts got started to work owing to that I could find 2 of new options in the menu. ("Hide video...")
Nevertheless, the repeated videos still appear even if trying setting the "maxRepetitions" to 1.