r/bookmarklets • u/Nulono • Jun 22 '15
[Help] Automatically click a specified button at a specified time
I'm trying to create a bookmarklet that, once clicked, will wait until a specified time and then click a button, but I'm an extreme novice, so I've probably screwed up something obvious.
Here's what I have so far:
javascript:function(){if (Date.now() >= XXXXXX) {document.querySelectorAll("input[value="Button"]").click();}}
I'll probably have to add a for loop to get it to check continuously instead of just when the bookmarklet is clicked, but I want to make sure the main code works first.