Greasy Fork

RW hunter

support RW

< 脚本RW hunter的反馈

提问/评论

§
发表于:2018-01-27
编辑于:2018-01-27

Script doesn't support a RW on a rare occasion when server is not in sync

Script that refreshes main page until there is a RW to support. When that happens script tries to click button once and then refreshes stop.

The problem is that sometimes something happens, my theory is that Ajax is not quite in sync by a fraction of a second (maybe micro seconds) with server and then message appears that RW can be supported again in 0:00:00 because 24 hours has not passed yet. As a result of that RW is not supported by the script since the script does not try to support the RW again.

I guess the more robust way of checking it would be to see if supporter made it in the list of supporters or if button to support a RW is greyed out or maybe just keep pressing the button.

Example element when support is successful:

https://imgur.com/UXnM15T

<a id="fundRW_btn" href="javascript:;" class="std_global_btn smallSize redColor disabled" original-title="You supported this resistance movement."> <span> <b>Support</b> </span> </a>

发表回复

登录以发表回复。