Skip to content

Instantly share code, notes, and snippets.

@Korko
Last active August 29, 2015 14:18
Show Gist options
  • Save Korko/d7ee975d3e15a718721a to your computer and use it in GitHub Desktop.
Save Korko/d7ee975d3e15a718721a to your computer and use it in GitHub Desktop.
/r/thebutton script to automatically click at a specific time
#paste this line in the console of the devtools (F12) and replace 10000 by your limit in milliseconds (10000ms = 10s)
setInterval(function(){if(r.thebutton._msLeft<=10000){var n = {seconds: r.thebutton._msgSecondsLeft,prev_seconds: r.thebutton._msgSecondsLeft,tick_time: r.thebutton._tickTime,tick_mac: r.thebutton._tickMac};$.request("press_button",n);}},0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment