Last active
December 5, 2019 18:34
-
-
Save insanj/b9ed06346bec8bb69073d8273cc1cd99 to your computer and use it in GitHub Desktop.
Hide seen YouTube videos that are currently visible on screen (pretty printed to help browser debuggers)
This file contains 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
for (const videoThumbnailThing of document.querySelectorAll("ytd-grid-video-renderer")) { | |
const videoThumbnailPlayback = videoThumbnailThing.querySelector("ytd-thumbnail-overlay-resume-playback-renderer"); | |
if (videoThumbnailPlayback != null) { | |
videoThumbnailThing.style.display = "none"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment