Jump to content
UBot Underground

Reddit Upvote Using Javascript?


Recommended Posts

So I am trying to click the upvote element from a reddit post: https://www.reddit.com/r/nfl/comments/3ssu1v/the_2015_cardinals_are_on_their_way_to_becoming/cx02unv

 

And I cannot get it to click the upvote icon even with offset set to 1.

 

Someone helped me in another thread by writing Js to click the element.

 

So I am trying to do that but having trouble.

 

I've combined these sources, but don't know how to piece them together to click the upvote icon for the first comment here: https://www.reddit.com/r/nfl/comments/3ssu1v/the_2015_cardinals_are_on_their_way_to_becoming/cx02unv

 

http://www.w3schools.com/jsref/prop_nodelist_length.asp

http://www.w3schools.com/jsref/met_document_getelementsbyclassname.asp

http://www.w3schools.com/jquery/css_offset.asp

Link to post
Share on other sites

set(#prompt,$prompt("paste CSS path"),"Global")
run javascript("document.querySelectorAll(\"{#prompt}\")[0].click()")

 

make sure to Run Ubot with Chrome 39 in settings(Ubot 5.9+),doesnt work with 21

 

Click view in Ubot,and open web inpector,click the magnify glass,on the top left hand side,then click the arrow you want to upvote

 

go back to web inspector,the area will be highlighted in blue

right click the area in blue,and select "copy CSS path"

 

example CSS path for the upvote of the main post 

#thing_t3_3ssu1v > div.midcol.unvoted > div.arrow.login-required.access-required.up

  • Like 1
Link to post
Share on other sites

set(#prompt,$prompt("paste CSS path"),"Global")

run javascript("document.querySelectorAll(\"{#prompt}\")[0].click()")

 

make sure to Run Ubot with Chrome 39 in settings(Ubot 5.9+),doesnt work with 21

 

Click view in Ubot,and open web inpector,click the magnify glass,on the top left hand side,then click the arrow you want to upvote

 

go back to web inspector,the area will be highlighted in blue

right click the area in blue,and select "copy CSS path"

 

example CSS path for the upvote of the main post 

#thing_t3_3ssu1v > div.midcol.unvoted > div.arrow.login-required.access-required.up

 

Doesn't seem to do anything for me. Could you upload the script you used to do it? Possibly I am missing something following your directions.

Link to post
Share on other sites

Doesn't seem to do anything for me. Could you upload the script you used to do it? Possibly I am missing something following your directions.

 

You need to be on Ubot Studio 5.9+ to select Chrome 39 as your browser in the options menu. This script does not work on the version of UBot Studio that you're using.

Link to post
Share on other sites

You need to be on Ubot Studio 5.9+ to select Chrome 39 as your browser in the options menu. This script does not work on the version of UBot Studio that you're using.

Dang... That's really unfortunate. Upgrading isn't the problem. The newer features could really help, but I don't have the funds to do so.

 

Has it been tested in the major UA's or is that individual UA the only working one? 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...