summaryrefslogtreecommitdiff
path: root/inject-css.js
diff options
context:
space:
mode:
authorsameerasw <[email protected]>2025-02-25 13:58:42 +0530
committersameerasw <[email protected]>2025-02-25 13:58:42 +0530
commite36e4ce96399db97f80c8833fa6ef2982a249e51 (patch)
treeaad6d10a8adb6a06b8ef6766735942e8c1a15d6c /inject-css.js
parent82f7640e9908c0503a879244d2c178b0dd2e6b62 (diff)
initial zeninternet commit - remote css loading from repository - for github.com only
Diffstat (limited to 'inject-css.js')
-rw-r--r--inject-css.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/inject-css.js b/inject-css.js
new file mode 100644
index 0000000..c54c80e
--- /dev/null
+++ b/inject-css.js
@@ -0,0 +1,8 @@
+browser.storage.sync.get("githubCSS").then((data) => {
+ if (data.githubCSS) {
+ let style = document.createElement("style");
+ style.textContent = data.githubCSS;
+ document.head.appendChild(style);
+ console.log("Injected custom GitHub CSS.");
+ }
+});