Override prefers-color-scheme
via CDP
let Main = await import('./entrypoints/main/main.js')
await Main.MainImpl.sendOverProtocol("Emulation.setEmulatedMedia", { features: [{ name: "prefers-color-scheme", value: "dark" }] })
- https://chromedevtools.github.io/devtools-protocol/
- https://chromedevtools.github.io/devtools-protocol/tot/Emulation/#method-setEmulatedMedia
- can make one from extension? https://developer.chrome.com/docs/extensions/reference/debugger/