Created
October 31, 2014 08:02
-
-
Save maxwofford/2e2f575d1bc6e996c772 to your computer and use it in GitHub Desktop.
A quick script to scrape the generated chatroom-name suggestions on appear.in
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 adjectives = []; | |
var nouns = []; | |
function refresh() { | |
document.getElementsByClassName('refresh-button')[0].click(); | |
} | |
function collectOutput() { | |
output = document.getElementById('room-namer').placeholder.split('-'); | |
adjectives.push(output[0]); | |
nouns.push(output[1]); | |
} | |
setInterval(function(){ | |
collectOutput(); | |
refresh(); | |
}, 2000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment