feat: add content script that collects video ids from YouTube pages

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
IgorVolochay
2026-10-25 10:57:49 +03:00
co-authored by Claude Sonnet 5.5
parent c95da940eb
commit 15ac3ba570
2 changed files with 90 additions and 1 deletions
+14 -1
View File
@@ -7,5 +7,18 @@
"host_permissions": ["https://www.googleapis.com/youtube/v3/*"],
"background": { "service_worker": "src/background.js", "type": "module" },
"action": { "default_title": "Outlier Saver", "default_popup": "src/popup/popup.html" },
"options_ui": { "page": "src/options/options.html", "open_in_tab": true }
"options_ui": { "page": "src/options/options.html", "open_in_tab": true },
"content_scripts": [
{
"matches": ["https://www.youtube.com/*"],
"js": ["src/content.js"],
"run_at": "document_idle"
}
],
"web_accessible_resources": [
{
"resources": ["src/lib/video-id.js", "src/lib/vidiq.js"],
"matches": ["https://www.youtube.com/*"]
}
]
}