I found it here in the comments section:
https://www.alphr.com/delete-all-twitter-likes/
Code: Select all
setInterval(function(){
var divs = document.getElementsByTagName("div")
var arr = Array.prototype.slice.call( divs)
var hearts = arr.filter(x => x.getAttribute("data-testid") == "unlike")
hearts.forEach(h => h.click())
window.scrollTo(0, document.body.scrollHeight ||document.documentElement.scrollHeight);
},1000);
Worked for in Vivaldi. Just open your likes page on Twitter and paste the code in developer tools console. It worked super quick, just a minute to remove tens of thousands! I temporarily disabled loading images in site settings so it would be faster.