guest271314
unread,Mar 7, 2021, 1:38:17 PM3/7/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, wOxxOm, guest271314, PhistucK, Chromium Extensions, giorgi...@gmail.com
> The principle is patching the code of the service worker and forcing it to reregister, but it's the implementation part that is the problem, for which I see only one solution while staying entirely within the extensions API: chrome.debugger.
Have you tested the Local Overrides approach in, or for an extension?
That is, navigate to Twitter, follow instructions at the linked article, modify the ServiceWorker script.
> As for WebTransport I don't see how it can be used to register the modified code of the service worker because service workers must belong to the site's origin so the URL can't point to another site like localhost
Native File System API and WebTransport were mentioned here and used to modify the local files programmatically.
> because service workers must belong to the site's origin so the URL can't point to another site like localhost
Local Overrides maps the local directory to the site being loaded. That is how I am able to run AudioWorklet on GitHub, where the CSP explicitly forbids loading blob: and data: protocols.
> and this approach seems to require users to install a companion utility which is not something many users would be comfortable with.
It is not necesary to install a quic-transport server. That is what I was using at the time to stream arbitrary data to arbitrary origins.
> seems to require users to install a companion utility which is not something many users would be comfortable with.
Well, if users are installing extensions from Chrome Web Store they are already doing that.
File System Access API is shipped by default now with Chrome and Chromium, whih provides a means to write and read files, specifically to insert content in exact positions in an existing local file, or delete or overwrite the file.
I suggest testing the approach before condemning based on a user being uncomfortable. The approach is not ideal. However, I can confirm that is one way I am able to run AudioWorklet on a site where I use my own files on a site where loading external files from other origins is by design not permitted.