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);
Add Comment
Please, Sign In to add comment