summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/static/content_scripts.html
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs/static/content_scripts.html')
-rw-r--r--chrome/common/extensions/docs/static/content_scripts.html21
1 files changed, 12 insertions, 9 deletions
diff --git a/chrome/common/extensions/docs/static/content_scripts.html b/chrome/common/extensions/docs/static/content_scripts.html
index 96ae9a4c..ffd3c89 100644
--- a/chrome/common/extensions/docs/static/content_scripts.html
+++ b/chrome/common/extensions/docs/static/content_scripts.html
@@ -61,15 +61,18 @@ learn about the
<p>Content scripts are registered in an extension's <a href="manifest.html">manifest.json</a> file, like so:
-<pre>
-"content_scripts": [
- {
- "matches": ["http://www.google.com/*"],
- "css": ["mystyles.css"],
- "js": ["jquery.js", "myscript.js"]
- }
-]
-</pre>
+<pre>{
+ "name": "My extension",
+ ...
+ <b>"content_scripts": [
+ {
+ "matches": ["http://www.google.com/*"],
+ "css": ["mystyles.css"],
+ "js": ["jquery.js", "myscript.js"]
+ }
+ ]</b>,
+ ...
+}</pre>
<p>An extension can contain any number of content scripts, and a content script can consist of any number of JavaScript or CSS files. The value of the <code>matches</code> property controls when the content script will run.