Last active
September 15, 2022 18:57
-
-
Save fastfingertips/cc5bd686b1d7ff01e07ae1735d5bd761 to your computer and use it in GitHub Desktop.
Is the youtube video being watched available on any of your lists?
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
var l = document.getElementsByClassName('style-scope ytd-playlist-add-to-option-renderer').length | |
for (let i = 0; i < l; i++) { | |
var liste = document.getElementsByClassName('style-scope ytd-playlist-add-to-option-renderer')[i].getAttribute("aria-checked"); | |
if(liste == 'true'){alert("This video is in your playlist.");} | |
} | |
/* | |
var checkbox = document.querySelector("#checkbox") | |
var listName = document.querySelector("#checkboxLabel") | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment