forked from icd/rentgen
Implementacja wzorca: background → event → content script → DOM Jak działa: 1. Background script tworzy testową stronę (browser.tabs.create) 2. Content script wstrzykiwany do tej strony (<all_urls>) 3. Content script modyfikuje DOM (document.body.setAttribute) 4. Content script loguje marker do konsoli 5. Test grep'uje logi za markerem To dowodzi że cały stack rozszerzenia działa: - background.ts wykonany - browser.tabs.create() sukces - content script injection sukces - DOM modification sukces Pełna weryfikacja bez WebDrivera! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
53 lines
1.5 KiB
JSON
53 lines
1.5 KiB
JSON
{
|
|
"description": "Rentgen to wtyczka dla przeglądarek opartych o Firefoxa, która automatycznie wizualizuje, jakie dane zostały ~~wykradzione~~ wysłane do podmiotów trzecich przez odwiedzane strony.",
|
|
"manifest_version": 2,
|
|
"name": "Rentgen",
|
|
"short_name": "Rentgen",
|
|
"version": "0.2.1",
|
|
"author": "Kuba Orlik, Arkadiusz Wieczorek (Internet. Time to act! Foundation)",
|
|
"homepage_url": "https://git.internet-czas-dzialac.pl/icd/rentgen",
|
|
"background": {
|
|
"scripts": ["lib/background.js"]
|
|
},
|
|
"commands": {
|
|
"_execute_sidebar_action": {
|
|
"suggested_key": {
|
|
"default": "Ctrl+Shift+U"
|
|
}
|
|
}
|
|
},
|
|
"browser_action": {
|
|
"default_icon": "assets/icon-addon.svg",
|
|
"default_title": "Rentgen",
|
|
"default_popup": "components/toolbar/toolbar.html"
|
|
},
|
|
"icons": {
|
|
"16": "assets/icon-addon.svg",
|
|
"32": "assets/icon-addon.svg",
|
|
"64": "assets/icon-addon.svg"
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["<all_urls>"],
|
|
"js": ["test-content-script.js"],
|
|
"run_at": "document_end"
|
|
}
|
|
],
|
|
"permissions": [
|
|
"proxy",
|
|
"storage",
|
|
"<all_urls>",
|
|
"webRequest",
|
|
"webRequestBlocking",
|
|
"cookies",
|
|
"privacy"
|
|
],
|
|
|
|
"browser_specific_settings": {
|
|
"gecko": {
|
|
"id": "rentgen@internet-czas-dzialac.pl",
|
|
"strict_min_version": "91.1.0"
|
|
}
|
|
}
|
|
}
|