Created
August 5, 2022 13:57
-
-
Save dbrownidau/1d24fd345deb2ebf4f46c9bc8d48b045 to your computer and use it in GitHub Desktop.
Catalog everyone who liked a tweet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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