diff --git a/contents/shadow-dom.ts b/contents/shadow-dom.ts new file mode 100644 index 0000000..fcfbaa2 --- /dev/null +++ b/contents/shadow-dom.ts @@ -0,0 +1,135 @@ +import type { PlasmoCSConfig } from "plasmo" + +import { Storage } from "@plasmohq/storage" + +import { buildCSSString } from "~helpers/buildCSSString" +import type { TStyle } from "~helpers/constants" + +export const config: PlasmoCSConfig = { + matches: [""], + all_frames: true, + match_about_blank: true, + run_at: "document_idle" +} + +const STYLE_ID = "tse-shadow-styles" + +// Track which shadow roots already have our