Automatic button click

85 views
Skip to first unread message

Taken - Minecraft

unread,
Jan 29, 2022, 2:02:43 PM1/29/22
to greasemonkey-users
I was trying to automate button clicks on a website  midnight 16x by Zuxt | PVPRP
so I don't have to click on the requirement and then hit download. Tho everything I tried wouldn't unlock it.

Anyone know a fix

Klaus Johannes Rusch

unread,
Feb 2, 2022, 10:52:02 AM2/2/22
to greasemonkey-users
First., you need to enable the button by performing the actions in this event handler on that page:
$(document).on('click', "#step-btn-1", function() { ... });
This enables the button and sets the href attribute (= download location).

Then, you can click the button using
document.getElementById("step-btn-2").click()

Taken - Minecraft

unread,
Feb 3, 2022, 1:56:28 PM2/3/22
to greasemonkey-users
any example I am kinda new to js
Reply all
Reply to author
Forward
0 new messages