4

I am currently taking an online course offered by my school. Every time I log in I am taking to a terms of use agreement, and must accept it every single time I log into it.

Is there any way using something like a Greasemonkey script, automatically push the accept button when this appears. Generally is there such a way to press a button when a specific page/link is navigated to?

  • It's not 100% automatic, but you could try iMacros? – barrycarter Apr 1 '13 at 4:28
  • The question doesn't show any research effort. Please checkout How to Ask. – Rubén Oct 13 '16 at 4:38
  • @Rubén Okay, the question is answered, can you please just stop. – ComputerLocus Oct 13 '16 at 13:46
  • @ComputerLocus: I was checking questions without accepted answers. By the way, thanks for coming back and accept an answer. – Rubén Oct 13 '16 at 13:56
  • @ComputerLocus: besides that you find my comments annoying, I'm sorry about that, every time that you post a comment to this question, an accepted entry is made on your activity log. That confused me, I'm sorry for that too. – Rubén Oct 13 '16 at 14:48
6

I would write a simple jquery script and add includes to jquery from the CDN.

<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.0.js" type="text/javascript"></script>
<script type="text/javascript">
 $(function(){
     setTimeout(function() {
           $("a.NAMEOFTHEBUTTON").trigger('click');
        },10);
       });
</script>
  • Okay, I will give this a try. I never have actually made a Userscript with Chrome before, but I would be able to use this piece of code in one? Correct? – ComputerLocus Oct 22 '12 at 21:02
  • 4
    One problem I realized, is that this is not checking the actual URL of the site. This means that any button with the same label as the one of the site I'm talking about, would also be autoclicked, which is not good. – ComputerLocus Oct 22 '12 at 21:42
  • 4
    you'll have to add @include http://www.example.com/* to run it on specific site, replacing example.com with your site. For Chrome extensions, it has to be the match pattern developer.chrome.com/extensions/match_patterns.html – Sathyajith Bhat Oct 23 '12 at 5:59

protected by Community Mar 23 '18 at 1:28

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.