alanek2009
alanek2009
PD🧩 Plasmo Developers
Created by alanek2009 on 11/22/2023 in #👾extension
Injecting CSUI dynamically
Currently trying to use chrome.scripting.executeScript() from my background service worker, but not sure on how would a JSX even get injected? I'm thinking this only works with plain .ts/.js.
import codeUrl from "url:~/src/testts"; // nope... the file name is is testts.ts
chrome.scripting.executeScript(
{
target: {
tabId,
},
world: "MAIN", // MAIN to access the window object
// files: ["./splash-overlay.tsx"]
files: [codeUrl],
},
() => {
console.log("Background script got callback after injection");
},
);
import codeUrl from "url:~/src/testts"; // nope... the file name is is testts.ts
chrome.scripting.executeScript(
{
target: {
tabId,
},
world: "MAIN", // MAIN to access the window object
// files: ["./splash-overlay.tsx"]
files: [codeUrl],
},
() => {
console.log("Background script got callback after injection");
},
);
2 replies
PD🧩 Plasmo Developers
Created by alanek2009 on 9/6/2023 in #👾extension
How should I access the <html> tag of a popup page?
Maybe i'm misunderstanding my problem 🙂 I'm just not sure why elements before <Theme> are not getting attributes, but radix docs are acting as if that should work(theme after body, not before https://www.radix-ui.com/themes/docs/overview/getting-started)
3 replies
PD🧩 Plasmo Developers
Created by Andy on 4/9/2023 in #🔰newbie
Having to add import react from "react" for each file
what's the react version in your package.json?
2 replies