Greasy Fork镜像 is available in English.

議論 » 開発

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

§
投稿日: 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.

§
投稿日: 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.

返信を投稿

返信を投稿するにはログインしてください

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