tab-reloader icon indicating copy to clipboard operation
tab-reloader copied to clipboard

Why minimum of 10 seconds

Open h0jeZvgoxFepBQ2C opened this issue 1 year ago • 6 comments

Could you please remove this constraint?

I try to monitor an api every 3 or 5 seconds, but I'm not able to, due to this constraint?

h0jeZvgoxFepBQ2C avatar Apr 20 '23 14:04 h0jeZvgoxFepBQ2C

Why are you trying to monitor an API via a browser refresh? Just do it in bash.

Circumventing is already possible, as per FAQ: Use shift-click, you can set it to even 1sec.

elandorr avatar May 23 '23 14:05 elandorr

Indeed, why 10 seconds min?

I am working with reverse proxies, frontend, backend, azure, and I would love to have this ability. Yeah I can do curls via my bash but, why can't i just open multiple tabs and have auto refresh to find this specific tab which will work when I am making changes? Why even put a limitation there?

SpyPower avatar Jun 06 '23 07:06 SpyPower

It's probably a good idea to prevent 99% of users who don't read the FAQ from producing retarded load everywhere. People don't realize the consequences of their actions and likely always use the lowest, effectively DoSing unknowingly.

I would love to have this ability.

There is no limitation. Did you not read the post directly above?

elandorr avatar Jun 06 '23 08:06 elandorr

Yeah it would be nice to have it working without pressing shift. I also guess the target group of this addon most of the time knows what they are doing.

I like to refresh my JSON api with this gem during testing (i also have another json formatter addon installed), so the json gets autoformatted pretty.

Maybe set the minimum to 1 second, DDOssing with 1 request per second is not really a DDOS imo (if its really the case, you are probably doing something wrong :D)

h0jeZvgoxFepBQ2C avatar Jun 06 '23 10:06 h0jeZvgoxFepBQ2C

DDOssing with 1 request per second is not really a DDOS imo

No idea how many people use add-ons like this, but you know how quickly things escalate if enough get used to it. Most servers are trivial to DoS. Unless you're a dev and it's your own machine, excessive refreshing is just being an asshole.

I like to refresh my JSON api with this gem during testing (i also have another json formatter addon installed), so the json gets autoformatted pretty.

Not sure why you'd want that in a browser. Give this a shot:

watch -cn10 "curl -s https://v2.jokeapi.dev/joke/Any | jq -C"

jq does pretty print and you get the full power of a real parser.

watch -cn10 "curl -s https://v2.jokeapi.dev/joke/Any | jq -C '.type,.setup,.delivery,.joke'"

Also handy:

watch -d -cn10 "curl -s https://v2.jokeapi.dev/joke/Any | jq -C '.type,.setup,.delivery,.joke'"

elandorr avatar Jun 06 '23 11:06 elandorr

thanks, but its more handy to just refresh a browser. i dont agree with your DDOS opinion, sorry. Could you add a licence to your github repo?

I will create a fork if you allow it.

h0jeZvgoxFepBQ2C avatar Jul 10 '23 16:07 h0jeZvgoxFepBQ2C