silly — 12/15/2022, 5:25:57 PM

can someone make a scratch extension/userscript to autorefresh scratch comments please

oh also a wasteof one too

preferably a userscript

♥ 7 ↩ 1 💬 12 comments

comments

asfsdgdfd:

wdym by autorefresh comments?

8/11/2023, 9:48:22 PM
mybearworld:

I think it's like live comments, so if someone comments something while you are on that page you don't have to reload

8/11/2023, 10:00:37 PM
asfsdgdfd:

how would this work? with some sort of websocket, or...

8/11/2023, 10:01:00 PM
mybearworld:

Probably just periodically fetching the comments API

8/11/2023, 10:03:06 PM
grippins:

I think that should be avoided

8/11/2023, 10:09:55 PM
asfsdgdfd:

👍

8/11/2023, 10:19:01 PM
silly:

every couple of minutes it will refresh the comments

8/11/2023, 10:11:03 PM
asfsdgdfd:

but what if you leave like 10 tabs open for 6 hours lol (would it not do too many requests)

8/11/2023, 10:18:38 PM
silly:

who in their right mind

8/11/2023, 10:53:24 PM
asfsdgdfd:

i have 16 wasteof tabs across three browsers rn (i'm testing wasteof.plus)

8/11/2023, 11:04:24 PM
silly:

but does anyone else

8/12/2023, 12:30:08 AM
asfsdgdfd:

idk but in general i would avoid polling the api every few minutes. maybe only when you actually activate the tab could work, though 🤔

8/12/2023, 1:23:43 AM