Skip to main content
fixed code indent
Source Link
galacticninja
  • 2.3k
  • 8
  • 33
  • 68
  1. Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history
  2. Continue scrolling to the bottom until you get to the very end of your comment history.
  3. Open the JavaScript console.
  4. Run this code snippet:
    let deleteButton = document.querySelector('button[aria-label*="Delete"');
    
    while (deleteButton !== null) {
        deleteButton.click();
        deleteButton.remove();
        deleteButton = document.querySelector('button[aria-label*="Delete"');
    }
    
  5. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.
  6. Open a new tab to the same page. Repeat the processes as needed.
let deleteButton = document.querySelector('button[aria-label*="Delete"');

while (deleteButton !== null) {
    deleteButton.click();
    deleteButton.remove();
    deleteButton = document.querySelector('button[aria-label*="Delete"');
}
  1. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.
  2. Open a new tab to the same page. Repeat the processes as needed.
  1. Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history
  2. Continue scrolling to the bottom until you get to the very end of your comment history.
  3. Open the JavaScript console.
  4. Run this code snippet:
let deleteButton = document.querySelector('button[aria-label*="Delete"');

while (deleteButton !== null) {
    deleteButton.click();
    deleteButton.remove();
    deleteButton = document.querySelector('button[aria-label*="Delete"');
}
  1. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.
  2. Open a new tab to the same page. Repeat the processes as needed.
  1. Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history
  2. Continue scrolling to the bottom until you get to the very end of your comment history.
  3. Open the JavaScript console.
  4. Run this code snippet:
    let deleteButton = document.querySelector('button[aria-label*="Delete"');
    
    while (deleteButton !== null) {
        deleteButton.click();
        deleteButton.remove();
        deleteButton = document.querySelector('button[aria-label*="Delete"');
    }
    
  5. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.
  6. Open a new tab to the same page. Repeat the processes as needed.
fixed code formatting
Source Link
galacticninja
  • 2.3k
  • 8
  • 33
  • 68
  1. Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history

  2. Continue scrolling to the bottom until you get to the very end of your comment history.

  3. Open the JavaScript console.

    Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history
  4. Run this code snippet:

    let deleteButton = document.querySelector('button[aria-label*="Delete"');

    while (deleteButton !== null) { deleteButton.click(); deleteButton.remove(); deleteButton = document.querySelector('button[aria-label*="Delete"'); }

    Continue scrolling to the bottom until you get to the very end of your comment history.
  5. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.

    Open the JavaScript console.
  6. Open a new tab to the same page. Repeat the processes as needed.

    Run this code snippet:

Looks like we found a Stack Exchange WYSIWYG bug. The above is formatted as a code snippet, inside of the numbered list, it but fails to render as such.

let deleteButton = document.querySelector('button[aria-label*="Delete"');

while (deleteButton !== null) {
    deleteButton.click();
    deleteButton.remove();
    deleteButton = document.querySelector('button[aria-label*="Delete"');
}
  1. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.
  2. Open a new tab to the same page. Repeat the processes as needed.
  1. Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history

  2. Continue scrolling to the bottom until you get to the very end of your comment history.

  3. Open the JavaScript console.

  4. Run this code snippet:

    let deleteButton = document.querySelector('button[aria-label*="Delete"');

    while (deleteButton !== null) { deleteButton.click(); deleteButton.remove(); deleteButton = document.querySelector('button[aria-label*="Delete"'); }

  5. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.

  6. Open a new tab to the same page. Repeat the processes as needed.

Looks like we found a Stack Exchange WYSIWYG bug. The above is formatted as a code snippet, inside of the numbered list, it but fails to render as such.

  1. Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history
  2. Continue scrolling to the bottom until you get to the very end of your comment history.
  3. Open the JavaScript console.
  4. Run this code snippet:
let deleteButton = document.querySelector('button[aria-label*="Delete"');

while (deleteButton !== null) {
    deleteButton.click();
    deleteButton.remove();
    deleteButton = document.querySelector('button[aria-label*="Delete"');
}
  1. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.
  2. Open a new tab to the same page. Repeat the processes as needed.
added 115 characters in body
Source Link
mcandre
  • 166
  • 8
  1. Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history

  2. Continue scrolling to the bottom until you get to the very end of your comment history.

  3. Open the JavaScript console.

  4. Run this code snippet:

    const elementslet deleteButton = document.querySelectorAllquerySelector('button[aria-label*="Delete"');

    forwhile (let element of elementsdeleteButton !== null) { elementdeleteButton.click(); deleteButton.remove(); deleteButton = document.querySelector('button[aria-label*="Delete"'); }

  5. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.

  6. Open a new tab to the same page. Repeat the processes as needed.

Looks like we found a Stack Exchange WYSIWYG bug. The above is formatted as a code snippet, inside of the numbered list, it but fails to render as such.

  1. Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history

  2. Continue scrolling to the bottom until you get to the very end of your comment history.

  3. Open the JavaScript console.

  4. Run this code snippet:

    const elements = document.querySelectorAll('button[aria-label*="Delete"');

    for (let element of elements) { element.click(); }

  5. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.

  6. Open a new tab to the same page. Repeat the processes as needed.

Looks like we found a Stack Exchange WYSIWYG bug. The above is formatted as a code snippet, inside of the numbered list, it but fails to render as such.

  1. Visit the comment list page in a desktop browser: https://www.youtube.com/feed/history/comment_history

  2. Continue scrolling to the bottom until you get to the very end of your comment history.

  3. Open the JavaScript console.

  4. Run this code snippet:

    let deleteButton = document.querySelector('button[aria-label*="Delete"');

    while (deleteButton !== null) { deleteButton.click(); deleteButton.remove(); deleteButton = document.querySelector('button[aria-label*="Delete"'); }

  5. Keep the tab open and the screen awake until the multitude of "Deleting now" toast notifications stop appearing. Recommend using a program like Caffeine / Amphetamine to keep the computer awake.

  6. Open a new tab to the same page. Repeat the processes as needed.

Looks like we found a Stack Exchange WYSIWYG bug. The above is formatted as a code snippet, inside of the numbered list, it but fails to render as such.

Source Link
mcandre
  • 166
  • 8
Loading