mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
* Add API sample for User Scripts API * Apply suggestions from code review Co-authored-by: Joe Medley <jmedley@google.com> Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com> * Use chrome.userScripts.update method * Filter getScripts call * Add minimum_chrome_version * Apply suggestions from code review Co-authored-by: Joe Medley <jmedley@google.com> --------- Co-authored-by: Joe Medley <jmedley@google.com> Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
18 lines
446 B
JSON
18 lines
446 B
JSON
{
|
|
"name": "User Scripts API Demo",
|
|
"version": "1.0",
|
|
"manifest_version": 3,
|
|
"minimum_chrome_version": "120",
|
|
"description": "Uses the chrome.userScripts API to inject JavaScript into web pages.",
|
|
"background": {
|
|
"service_worker": "sw.js"
|
|
},
|
|
"permissions": ["storage", "userScripts"],
|
|
"host_permissions": ["https://example.com/*"],
|
|
"action": {},
|
|
"options_ui": {
|
|
"page": "options.html",
|
|
"open_in_tab": false
|
|
}
|
|
}
|