fix: disabled-state UI, settings shallow-merge, and popup save reliability

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 15:05:48 -04:00
parent 46d008d339
commit 8be62e1fec
4 changed files with 12 additions and 5 deletions

View File

@@ -5,6 +5,7 @@
const settings = await window.RedditTweaks.loadSettings();
if (!settings.enabled) return;
document.documentElement.classList.add("rt-enabled");
window.RedditTweaks.badgeTweak.apply(settings);
browser.storage.onChanged.addListener(function (changes) {

View File

@@ -1,6 +1,6 @@
/* --- FOUC prevention: hide original elements immediately --- */
.thing.link .tagline .subreddit,
.thing.link .flat-list .comments {
html.rt-enabled .thing.link .tagline .subreddit,
html.rt-enabled .thing.link .flat-list .comments {
display: none !important;
}