-
I am making a user script that is supposed to alter a website by overriding some variables and functions. It works on desktop, but does not seem to work on Cromite. I have inspected the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I would also be interested if other aspects are also sandboxed like this. For example, is it possible to define service workers? |
Beta Was this translation helpful? Give feedback.
-
in cromite the choice was to separate the injected script from the website environment, technically the script runs in what is called an isolated world, different from the main world of the page.
not unless the sw script is static and embedded in a blob. |
Beta Was this translation helpful? Give feedback.
in cromite the choice was to separate the injected script from the website environment, technically the script runs in what is called an isolated world, different from the main world of the page.
this is because it allows a different csp to be defined, which for userscripts is
script-src 'self'; object-src 'self';
the effect is therefore that no changes can be made outside userscript world.
not unless the sw script is static and embedded in a blob.