From e36e4ce96399db97f80c8833fa6ef2982a249e51 Mon Sep 17 00:00:00 2001 From: sameerasw Date: Tue, 25 Feb 2025 13:58:42 +0530 Subject: initial zeninternet commit - remote css loading from repository - for github.com only --- inject-css.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 inject-css.js (limited to 'inject-css.js') 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."); + } +}); -- cgit v1.2.3