Auto click on button with Tampermonkey

Asked

Viewed 438 times

1

I have a button on a site, which serves to thank, I would like to know how to make a script for Tampermonkey, and when the page is loaded, it performs this function of click on that button, based on the class thank_user.

Thank

This should only run at a certain url.

How could I do that?

1 answer

3


Test this :

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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.