Last active
June 27, 2020 12:40
-
-
Save Asbra/aae9862f35dcf657727c11b777d218e8 to your computer and use it in GitHub Desktop.
YouTube Remove/Hide Watched videos from Subscriptions page (Bookmarklet)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////////////////////////////// | |
// Scripts to hide already watched videos from YouTube subscriptions feed | |
// Removes videos counted as "Watched" | |
document.querySelectorAll('.yt-lockup-thumbnail.watched').forEach((e)=>{e.parentNode.parentNode.parentNode.remove()}); | |
document.querySelectorAll('ytd-thumbnail-overlay-resume-playback-renderer').forEach((e)=>{e.parentNode.parentNode.parentNode.parentNode.parentNode.remove()}); | |
// Removes videos which you've started watching (but not completed) | |
document.querySelectorAll('.yt-lockup-thumbnail.contains-percent-duration-watched').forEach((e)=>{e.parentNode.parentNode.parentNode.remove()}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment