From 6e4b353e41825f5e7a4abb6dabeec68cbb12323b Mon Sep 17 00:00:00 2001 From: Nayan Sawyer <33187059+opus-tango@users.noreply.github.com> Date: Sun, 8 Mar 2026 13:59:29 -0400 Subject: [PATCH] saving v0. will I ever need to update it? --- content.js | 25 +++++++++++++++++++++++++ manifest.json | 11 +++++++++++ 2 files changed, 36 insertions(+) create mode 100644 content.js create mode 100644 manifest.json diff --git a/content.js b/content.js new file mode 100644 index 0000000..6920656 --- /dev/null +++ b/content.js @@ -0,0 +1,25 @@ +function applyStyles() { + const elementsToCutHeight = document.querySelectorAll( + "div.text-gray-500 > a, div.text-gray-500 > button", + ); + const elementsToCutMargin = document.querySelectorAll( + "div.grid > div, div.grid > form", + ); + + elementsToCutMargin.forEach((el) => { + el.classList.remove("mb-4"); + el.classList.add("mb-1"); + }); + elementsToCutHeight.forEach((el) => { + el.classList.remove("h-10"); + el.classList.add("h-6"); + }); +} + +applyStyles(); + +const observer = new MutationObserver(applyStyles); +observer.observe(document.body, { + childList: true, + subtree: true, +}); diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..4928cb1 --- /dev/null +++ b/manifest.json @@ -0,0 +1,11 @@ +{ + "manifest_version": 3, + "name": "Minimal Injector", + "version": "1.0", + "content_scripts": [ + { + "matches": ["https://karakeep.docker.localhost/dashboard/bookmarks"], + "js": ["content.js"] + } + ] +}