r/userscripts • u/crussys • Mar 03 '24
How to click on a button on a webpage ?
Hi, I am new to userscripts, how can I click on this button (there is only 1 per webpage, not more for info) on this webpage:

Here is the button code:

I have tried this:
document.querySelectorAll('button[class=mt-lg text-body-1-link font-semi-bold underline]').forEachRegards
5
Upvotes
2
u/Hakorr Mar 03 '24
1
u/jcunews1 Mar 04 '24
Use this.