Auto click button with Tampermonkey

1

I have a button on a website, which is to thank, I would like to know how to make a script for Tampermonkey, and that when the page loads, it runs this click on this button, based on class thank_user .

Thank you

This should only be executed in a certain url.

How could I do this?

    
asked by anonymous 02.06.2017 / 07:05

1 answer

3

Try this:

$('.thank_user').click();

The url can be configured directly on the tampermonkey in the @Match line.

    
02.06.2017 / 13:43