adamlui / chatgpt-auto-refresh

↻ Keeps ChatGPT sessions fresh to avoid network errors + Cloudflare checks
https://chatgptautorefresh.com
Other
178 stars 12 forks source link

作者你好, 定时是否能设置范围区间? #10

Closed zhihaoHappyeveryday closed 1 year ago

zhihaoHappyeveryday commented 1 year ago

作者你好, 定时是否能设置范围区间? 这样可能大大减少被风控的可能!

adamlui commented 1 year ago

@chenzhihao1040728129 嘿,你的意思是随机从 20-40 秒开始?

zhihaoHappyeveryday commented 1 year ago

@chenzhihao1040728129 嘿,你的意思是随机从 20-40 秒开始?

是的, 随机30-50范围下, 比较像人为的行为, 固定频率太像机器了!

adamlui commented 1 year ago

@chenzhihao1040728129 好的,我会为你解决这个问题

zhihaoHappyeveryday commented 1 year ago

@chenzhihao1040728129 好的,我会为你解决这个问题

thanks

adamlui commented 1 year ago

@chenzhihao1040728129 it is done, you can update @ https://greasyfork.org/en/scripts/462422-chatgpt-auto-refresh then press Ctrl+Shift+I > Console to observe the new random intervals via timestamps

zhihaoHappyeveryday commented 1 year ago

@chenzhihao1040728129 it is done, you can update @ https://greasyfork.org/en/scripts/462422-chatgpt-auto-refresh then press Ctrl+Shift+I > Console to observe the new random intervals via timestamps

OK, thank,
It would be nice if the time range interval could be set in the menu, now it needs to be set from the script, anyway thanks author var refreshInterval = 30 // secs between refreshes interval += Math.floor(Math.random() * 21) - 10;

adamlui commented 1 year ago

@chenzhihao1040728129 I think it's safer if user has no control over range (or else they may go crazy and test 10 second)

..but it should be safe already since it only deals with Cloudflare not OpenAI (except when it is the background tab, it sends beacons but are 400's so should not matter to OpenAI, its only purpose is to keep Chrome tab from sleeping)

Also can you give a positive rating on Greasy Fork if this helped you?

zhihaoHappyeveryday commented 1 year ago

@chenzhihao1040728129 I think it's safer if user has no control over range (or else they may go crazy and test 10 second)

..but it should be safe already since it only deals with Cloudflare not OpenAI (except when it is the background tab, it sends beacons but are 400's so should not matter to OpenAI, its only purpose is to keep Chrome tab from sleeping)

Also can you give a positive rating on Greasy Fork if this helped you?

Of course, I will give positive feedback