I need a Greasemonkey script that will autoclick a link when an assignment comes in to my account page.
- I work for a company that gives out writing assignments.
- The company gives you an account page where assignments to be done appear.
- I have Firefox autorefreshing the page.
- When an assignment appears with certain criteria, I need the script to autoclick the accept assignment link.
An example of the html format of an assignment that may appear on my account page:
<tr>
<td><a title = 'Sport Article'>SPRTA</a></td><td>1</td><td>Write</td>1/12/2009</td><td>2:30 PM</td><td>Normal</td><td><b>Now</b></td><td><a href=[login to view URL];ACCEPT</a></td><td>25 min <br />2:57:04 PM</small></td>
</tr>
That's just a rough example. What's important to note is the <td>25 min</td> cell. I need the script to only click the ACCEPT link when certain criteria appear in that cell, i.e. when certain minute lengths appear. So in other words, the script will monitor the page which I have autorefreshing every 10 seconds, when a <tr> appears that has a <td> that has, for example, "25 min" or "28 min" or "40 min" (i.e. a range from '25 min' to '200 min') in it, the script will click the ACCEPT link. If those criteria don't appear, the script won't click.
My budget is up to $40.
Thanks for your time.