Skip to content

Javascript - Remove all YouTube Watch Later Videos

Source: How to Bulk Delete All Youtube’s Watch Later Videos in February 2022 | TL Dev Tech

Contents

Javascript

  • From your desktop browser, navigate to https://www.youtube.com/playlist?list=WL (i.e. your Watch Later page).
  • Open the browser’s developer tools console by pressing Ctrl + Shift + I or F12
  • Paste one of the scripts below into the console and hit Enter to run it:
setInterval(function () {
  document.querySelector('#contents button[aria-label="Action menu"]').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);

If that doesn’t work then try:

setInterval(function () {
  document.querySelector('#primary button[aria-label="Action menu"]').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);

See it in Action

Notice how the browser starts to automatically remove each video one-by-one after running one of the scripts from above in the Browser’s JavaScript Console.



Backlinks:

list from [[Javascript - Remove all YouTube Watch Later Videos]] AND -"Changelog"