diff --git a/.gitignore b/.gitignore index b50ae36..2c1625e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.crx *.pem *.zip +dist/ .idea/ .vscode/ *.swp diff --git a/manifest.firefox.json b/manifest.firefox.json index 5d90bc0..8fdfb2b 100644 --- a/manifest.firefox.json +++ b/manifest.firefox.json @@ -1,7 +1,7 @@ { "name": "KeyFinder", - "description": "Passively discovers API keys, tokens, and secrets leaked in page scripts, DOM, network responses, and browser storage.", - "version": "2.0.0", + "description": "Passively discovers API keys, tokens, and secrets leaked in page scripts, DOM, network responses, and browser storage. Available for Chrome and Firefox.", + "version": "2.1.0", "manifest_version": 3, "browser_specific_settings": { "gecko": { @@ -34,14 +34,22 @@ }, { "matches": [""], - "js": ["js/interceptor.js"], + "js": ["js/interceptor-loader.js"], "run_at": "document_start", - "world": "MAIN", "all_frames": true } ], + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'" + }, "background": { "scripts": ["js/background.js"] }, + "web_accessible_resources": [ + { + "resources": ["js/interceptor.js"], + "matches": [""] + } + ], "permissions": ["activeTab", "storage"] } diff --git a/scripts/build.sh b/scripts/build.sh index 04e0b21..ca999fa 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -12,6 +12,7 @@ SHARED_FILES=( js/background.js js/content.js js/interceptor.js + js/interceptor-loader.js js/patterns.js js/popup.js js/results.js