Skip to content

Instantly share code, notes, and snippets.

@dbrownidau
Created August 5, 2022 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbrownidau/1d24fd345deb2ebf4f46c9bc8d48b045 to your computer and use it in GitHub Desktop.
Save dbrownidau/1d24fd345deb2ebf4f46c9bc8d48b045 to your computer and use it in GitHub Desktop.
Catalog everyone who liked a tweet
var set = new Set();
x = setInterval(function(){
var allSpans = document.getElementsByTagName('span');
var reg = /@/
for(let item of allSpans ){
if(reg.exec(item.textContent)){
set.add(item.textContent)
}
}
console.log(set)
}, 200)
// Scroll through the likes
clearInterval(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment