From 7d96e90b6866bf13ba1f07a180714b70929d089d Mon Sep 17 00:00:00 2001 From: Oliver Dunk Date: Tue, 31 Oct 2023 14:57:02 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Joe Medley Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com> --- api-samples/userScripts/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api-samples/userScripts/README.md b/api-samples/userScripts/README.md index b59cf3ed91..12b1458aa5 100644 --- a/api-samples/userScripts/README.md +++ b/api-samples/userScripts/README.md @@ -4,7 +4,7 @@ This sample demonstrates using the [`chrome.userScripts`](https://developer.chro ## Overview -Once this extension is installed, clicking this extension's action icon will open an options page. +Clicking this extension's action icon opens an options page. Screenshot showing the chrome.userScripts API demo running in Chrome. @@ -24,6 +24,6 @@ This sample allows you to inject the following: ## Implementation Notes -The User Scripts API requires developer mode. We check for this by attempting to access `chrome.userScripts`, which throws an error on property access if it is disabled. +The User Scripts API requires users to have developer mode enabled. We check for this by attempting to access `chrome.userScripts`, which throws an error on property access if it is disabled. When a change is made on the options page, we use the `chrome.userScripts` API to update the user script registration.