saving v0. will I ever need to update it?

This commit is contained in:
Nayan Sawyer
2026-03-08 13:59:29 -04:00
commit 6e4b353e41
2 changed files with 36 additions and 0 deletions

25
content.js Normal file
View File

@@ -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,
});