ansh / jiffyreader.com

A Browser Extension for faster reading on ANY website!
https://www.jiffyreader.com/
GNU General Public License v3.0
3.77k stars 201 forks source link

[BUG] Frequently speedtest to cost network traffic #298

Closed h3ar7dump closed 2 months ago

h3ar7dump commented 2 months ago

Describe the bug the entension will frequently accessing speed.cloudflare.com to do speed test, which cost to much network traffic.

To Reproduce just open the extension and inspect popup.

9764ddfc8928d6f5fc2b379151cf117 030a5a091d91bee347466b2d7fb41b1

Desktop (please complete the following information):

Additional context I tried to locate the source code, but didn't to find out. Only found in pnpm-lock.yml

f19474f139652a9f7bd3657c486c87f
mellowtel commented 2 months ago

Hey @h3ar7dump, it's Arslan from Mellowtel.dev!

We're building an open-source library to help extension developers monetize their free plugins thanks to bandwidth sharing. The speed test you noticed is triggered here in this function. Unfortunately there was a bug in this version and the speed test is run on every page load instead of every 8 hours and that is what is consuming network traffic. This will be fixed very soon.

Still, we understand not everyone may be able or willing to share their network bandwidth, so feel free to opt-out from the JiffyReader popup. If you opt out, the speed test won't be run anymore.

Steps to opt out

  1. Open the JiffyReader popup
  2. On the right side of "Report issues" in the green footer there is a "Mellowtel" link
  3. Clicking the link opens a small popup window
  4. There is a white button with the text "Opt out". Click on it to opt out

Thanks for understanding and let me know if you want other clarifications, Arslan

mellowtel commented 2 months ago

I opened this PR: https://github.com/ansh/jiffyreader.com/pull/299 which fixes all the issues related to high network consumption. Hopefully we'll be able to merge and deploy in prod quickly. Sorry for the issues caused

h3ar7dump commented 2 months ago

Hey @h3ar7dump, it's Arslan from Mellowtel.dev!

We're building an open-source library to help extension developers monetize their free plugins thanks to bandwidth sharing. The speed test you noticed is triggered here in this function. Unfortunately there was a bug in this version and the speed test is run on every page load instead of every 8 hours and that is what is consuming network traffic. This will be fixed very soon.

Still, we understand not everyone may be able or willing to share their network bandwidth, so feel free to opt-out from the JiffyReader popup. If you opt out, the speed test won't be run anymore.

Steps to opt out

  1. Open the JiffyReader popup
  2. On the right side of "Report issues" in the green footer there is a "Mellowtel" link
  3. Clicking the link opens a small popup window
  4. There is a white button with the text "Opt out". Click on it to opt out

Thanks for understanding and let me know if you want other clarifications, Arslan

Hey Arslan, thanks for the prompt update!

I appreciate the explanation and understand that the speed test running on every page load was due to a bug. It's great to hear that you've fixed for it. Thanks again for your transparency and quick response! h3ar7dump