Karstodes
Karstodes
PD🧩 Plasmo Developers
Created by Karstodes on 2/16/2023 in #👾extension
Remote code execution inside a content script
Everything goes through the client script unfortunately
4 replies
PD🧩 Plasmo Developers
Created by Karstodes on 2/16/2023 in #👾extension
Remote code execution inside a content script
They do have an API, but it doesn't seem to support any sort of analytic gathering through it
4 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
(Just for testing purposes, of course)
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
might even go through the sledgehammer route and just hard code the mount point in the parcel node module so I can fiddle with it
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
but tomorrow morning I'll work in a proof of concept, at least to see how it would work if I just replace the injection point in the helper
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
That's a bit out of my league I believe
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
so it should be supported
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
Yeah, it seems like so
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
font link tags are marked as stylesheet, right?
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
it seems like stylesheet links work inside a shadow tree?
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
Or maybe not
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
You are right
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
it's not an iframe, it doesn't isolate everything
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
I don't see why you wouldn't be able to use link inside the shadowDOM
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
So that's the next best option, I believe
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
The docs on the runtime API are quite poor so I'm not sure if we can access the assets from a runtime output in a different runtime
121 replies
PD🧩 Plasmo Developers
Created by Karstodes on 12/12/2022 in #👟framework
Styling React components and ShadowDOM usage
Alright, so digging a bit more it seems like the helper code that handles the injection into the DOM is attached as part of the asset generated by the runtime, so rather than a custom runtime we need a custom CSS packager to swap the code attached to the assets for our own helper function that decides if the code is attached to the Shadow DOM or the document's head
121 replies