EtherDream / jsproxy

An online proxy based on ServiceWorker
MIT License
9.32k stars 3.61k forks source link

[Feature Request] serviceworker auto loading in proxy page #325

Open diyism opened 2 years ago

diyism commented 2 years ago

@EtherDream ,

For example, if I want share a youtube video: https://[my cloudflare domain]/jsproxy/-----https://www.youtube.com/watch?v=LSdWJujPa8s to one of my friends, for the first time, when he open the url it will show 404, unless he open the front page https://[my cloudflare domain]/jsproxy/ in advance. But I don't want to tell my friend to do the 2 steps to watch a youtube video, it's troublesome for him.

How to add some code into https://github.com/EtherDream/jsproxy/blob/gh-pages/assets/bundle.c33e24c5.js to enable the proxy page to auto check and load the serviceworker without visiting the https://[my cloudflare domain]/jsproxy/ first?

Malcolm