mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-16 08:06:24 +03:00
The service worker's webNavigation.onCompleted handler only cleared csInjected when DevTools was open. The popup-only flow never registered the tab in devtoolsTabs, so a page reload left a stale csInjected: true even though the content script had been destroyed. The next popup scan saw the stale flag, skipped re-injection, and silently sent its scan request to a tab with no listener — popup UI got stuck on "Scanning..." indefinitely. Reset is now unconditional (page reload always destroys the content script regardless of which UI is open). Auto-rescan stays gated to DevTools, since the popup is strictly user-driven. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
33 lines
830 B
JSON
33 lines
830 B
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "Impeccable",
|
|
"description": "Detect common UI anti-patterns in any web page",
|
|
"version": "1.0.2",
|
|
"permissions": ["activeTab", "scripting", "storage", "webNavigation"],
|
|
"host_permissions": ["<all_urls>"],
|
|
"background": {
|
|
"service_worker": "background/service-worker.js"
|
|
},
|
|
"devtools_page": "devtools/devtools.html",
|
|
"action": {
|
|
"default_popup": "popup/popup.html",
|
|
"default_icon": {
|
|
"16": "icons/icon-16.png",
|
|
"32": "icons/icon-32.png",
|
|
"48": "icons/icon-48.png",
|
|
"128": "icons/icon-128.png"
|
|
}
|
|
},
|
|
"icons": {
|
|
"16": "icons/icon-16.png",
|
|
"48": "icons/icon-48.png",
|
|
"128": "icons/icon-128.png"
|
|
},
|
|
"web_accessible_resources": [
|
|
{
|
|
"resources": ["detector/detect.js"],
|
|
"matches": ["<all_urls>"]
|
|
}
|
|
]
|
|
}
|