diff options
Diffstat (limited to 'inject-css.js')
-rw-r--r-- | inject-css.js | 8 |
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."); + } +}); |