Thursday, March 12, 2009

Colbert Bump Bot

I ended up building an Applescript which will vote for Colbert once every two seconds. Behold, the Colbert Bump Bot:

repeat
tell application "Safari"
activate
do JavaScript "window.location = 'http://comments-submit.nasa.gov/commenting1/Comment.do?location=http://polls.nasa.gov/voteform.html&siteID=245486071&username=guest&email=guest@dummy.com&comment=Colbert'" in document 1
delay 1
activate
do JavaScript "document.frmcomments.submit();" in document 1
delay 1
end tell
end repeat


Note that it will bring Safari into window focus every second, so don't plan on working while this is running.

[Disclaimer: THIS INFORMATION IS FOR EDUCATIONAL PURPOSES ONLY. Please don't actively try to ruin or tamper with the poll.]

No comments: