L
L
Lost815Forever2014-06-21 02:08:02
JavaScript
Lost815Forever, 2014-06-21 02:08:02

Is it possible to vote in the Steam Store using JavaScript?

Hello.
The bottom line is that there is a browser (Mozilla Firefox) with Greasemonkey installed. I'm trying to write a script with which one could "click" on the voting button, after which, in the window that opens, vote ( Steam Store )
This is what the button looks like:
b01b17a3a0ce4011b1ed5cd3f041ab1e.JPG
What happens after clicking:
7b5f7a4648af40b99dec0d62d1ed4400.JPG
You need to vote for one of 2 sets (I already voted).
I want to say right away that, unfortunately, I almost do not know JavaScript. :(
I tried to click on the button using document.getelementbyclassname, document.getelementbyid, but it didn't help. Maybe I'm specifying the class name / id of the button incorrectly.
a7ec2432b0df489eb1bbd1badbd5424e.jpg
As far as I understand, the class here is btn_summersale btn_openvotedialog (please don't throw stones if I'm wrong ).
Is it possible to somehow implement a click on these two buttons using JavaScript?
Thank you. :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2014-07-03
@Assada

If there is JQ...
$(selector1, selector2).click()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question