Discussões » Desenvolvimento

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

§
Publicado em: 28/07/2017

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.

§
Publicado em: 29/07/2017

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.

Enviar resposta

Entre para publicar uma resposta.

长期地址
遇到问题?请前往 GitHub 提 Issues。