Structural cleanup based on thermo-nuclear code quality review: - Extract shared color-picker.css and color-popover.css from badges.css (611→85 lines) - Extract shared lib/presets.js for preset CRUD used by popup and popover - Unify dark mode to single applyDarkModeClass on <html>, removing 4 scattered functions - Fix stale closure in startPostObserver, data-driven reload key check - Remove dead exports, getHelpers wrapper, duplicated colorToHex - Replace DOM expando properties with state array in popup.js Net: -318 lines of duplication, no file over 401 lines. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
1.0 KiB
JSON
33 lines
1.0 KiB
JSON
{
|
|
"manifest_version": 2,
|
|
"name": "Reddit Tweaks",
|
|
"version": "0.1.0",
|
|
"description": "Reskins old Reddit post listings with badge-style subreddit and comment indicators.",
|
|
"permissions": ["storage", "activeTab"],
|
|
"icons": {
|
|
"48": "icons/icon-48.png",
|
|
"96": "icons/icon-96.png"
|
|
},
|
|
"browser_action": {
|
|
"default_icon": "icons/icon-48.png",
|
|
"default_popup": "popup/popup.html",
|
|
"default_title": "Reddit Tweaks Settings"
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["*://old.reddit.com/*", "*://www.reddit.com/*"],
|
|
"css": ["content/styles/badges.css", "content/styles/color-popover.css", "content/styles/color-picker.css", "content/styles/cards.css", "content/styles/fonts.css"],
|
|
"js": [
|
|
"lib/settings.js",
|
|
"lib/presets.js",
|
|
"content/tweaks/badges.js",
|
|
"content/tweaks/color-picker.js",
|
|
"content/tweaks/color-popover.js",
|
|
"content/tweaks/cards.js",
|
|
"content/main.js"
|
|
],
|
|
"run_at": "document_idle"
|
|
}
|
|
]
|
|
}
|