6

I want to cache specific requests in someone's website, then I find service worker a good choice. But I can't find any approach to inject a service worker by tampermonkey. So is there any hack to do this?

bilabila
  • 973
  • 1
  • 12
  • 18

1 Answers1

0

What you can do is to overwrite windows.fetch to cache the calls. No need to use a service worker

Gabriel Furstenheim
  • 2,969
  • 30
  • 27