Discussions » Development

Edit a userscript so that I don't have to click the button anymore/automatically clicks the button?

§
Posted: 2017-07-28

Edit a userscript so that I don't have to click the button anymore/automatically clicks the button?

This is the script I'm using:

https://ghostbin.com/paste/x94zt

This is what it does: http://imgoat.com/uploads/369853df76/33822.png

Basically what I want to do is make it so that I don't have to click the "show updowns" button, or make it so it clicks that button automatically.

Could anyone tell if this can be done, and how to do it? I'm still learning as I go.

§
Posted: 2017-07-29

When you click the link, the script retrieves the comments page (XMLHttpRequest), pulls out the upvote % and uses that to estimate those two numbers. It would be a lot of background retrievals to pull all of those pages automatically (typically 25 per page?), but I think it could be done.

Post reply

Sign in to post a reply.