Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var items = $('body').getElementsByClassName("yt-uix-button yt-uix-button-size-default yt-uix-button-default yt-uix-button-empty yt-uix-button-has-icon no-icon-markup pl-video-edit-remove yt-uix-tooltip");
- function deleteWL(i) {
- setInterval(function() {
- items[i].click();
- }, 500);
- }
- for (var i = 0; i < 1; ++i)
- deleteWL(i);
Comments
-
- The posted script for YouTube is no longer functional. However, I found a new one that works perfectly fine. It deletes the videos one by one automatically.
- setInterval(function() {
- document.querySelector('#contents button#button').click();
- var things = document.evaluate('//span[contains(text(),"Watch later")]',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
- for (var i = 0; i < things.snapshotLength; i++) {
- things.snapshotItem(i).click();
- }
- }, 1000);
-
- Thanks, it worked
-
- Thanks so much! Worked for me… Had to run a few times but got rid of over 500 videos in about 10 minutes.
-
- Not working with me
-
- Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to steal your identity or take control of your computer. Please type ‘allow pasting’ below and hit Enter to allow pasting.
- the above message appeared
-
- Type 'allow pasting' without any quotation mark, then hit enter. you will be able to paste anything.
Add Comment
Please, Sign In to add comment