aboutsummaryrefslogtreecommitdiff
path: root/src/utils/quickCss.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-08-29 18:11:44 +0200
committerVendicated <vendicated@riseup.net>2022-08-29 18:11:44 +0200
commit876e622f4f61a4aa229ad69782d374335c3d8d6b (patch)
tree9119371f584f59b4512553d6548bd11fc84b7dcf /src/utils/quickCss.ts
parentaf498e78291b67377aaf876c84143cdfe7c8b308 (diff)
downloadVencord-876e622f4f61a4aa229ad69782d374335c3d8d6b.tar.gz
Vencord-876e622f4f61a4aa229ad69782d374335c3d8d6b.tar.bz2
Vencord-876e622f4f61a4aa229ad69782d374335c3d8d6b.zip
Progress
Diffstat (limited to 'src/utils/quickCss.ts')
-rw-r--r--src/utils/quickCss.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/quickCss.ts b/src/utils/quickCss.ts
new file mode 100644
index 0000000..573eccc
--- /dev/null
+++ b/src/utils/quickCss.ts
@@ -0,0 +1,6 @@
+document.addEventListener("DOMContentLoaded", async () => {
+ const style = document.createElement("style");
+ document.head.appendChild(style);
+ VencordNative.handleQuickCssUpdate((css: string) => style.innerText = css);
+ style.innerText = await VencordNative.getQuickCss();
+}); \ No newline at end of file