メモ

https://gist.github.com/CarlosGS/ee39161c155b07f19c1b07675e396670

@CarlosGS
CarlosGS/yotube remove live stream comment history.md
Go to: https://www.youtube.com/feed/history/live_chat_history

Make sure all are loaded by scrolling to the bottom (repeatedly press "End" key)

Open the javascript console and run:

function sleep(milliseconds) {const date = Date.now();let currentDate = null;do {currentDate = Date.now();} while (currentDate - date < milliseconds);}; var buttons = document.getElementsByTagName('button');

IMPORTANT: Now manually click on the X and remove manually one of the videos.

Then run:

for(var i = 0; i <= buttons.length; i++) {buttons[i].click(); sleep(100); document.getElementById('confirm-button').click();};

The browser may collapse a bit, but it will get the job done. Please do share your improvements!