Extracting generated CSS via code #11397
Replies: 1 comment
-
So after a lot of testing and debugging, I discovered that this behavior is due to a race condition. Calling *via a sleep-ish function: |
Beta Was this translation helpful? Give feedback.
-
Hi there, hoping I could get a pointer here. When I extract the CSS from a site using the version 5 preview, the stylesheet I get works great. However, when I try to extract the CSS using
DarkReader.exportGeneratedCSS()
, the output is very minimal. Like, only two classes are below the/* Modified CSS */
line in the output. Conversely, the output when exporting from the plugin is thousands of lines on my site.I would really love to make this work, so my question is this: Is there some sort of "v5 preview" I need to toggle on in the "code on your website" version to get the complete output correctly? I get no errors when I do it, but the output just is not at all what I would expect. Any help is greatly appreciated.
Code I'm using:
Beta Was this translation helpful? Give feedback.
All reactions