OLD | NEW |
---|---|
1 <h1>Content Scripts</h1> | 1 <h1>Content Scripts</h1> |
2 | 2 |
3 | 3 |
4 <p> | 4 <p> |
5 Content scripts are JavaScript files that run in the context of web pages. | 5 Content scripts are JavaScript files that run in the context of web pages. |
6 By using the standard | 6 By using the standard |
7 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/">Document | 7 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/">Document |
8 Object Model</a> (DOM), | 8 Object Model</a> (DOM), |
9 they can read details of the web pages the browser visits, | 9 they can read details of the web pages the browser visits, |
10 or make changes to them. | 10 or make changes to them. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 <td>array of strings</td> | 127 <td>array of strings</td> |
128 <td><em>Optional.</em> | 128 <td><em>Optional.</em> |
129 Excludes pages that this content script would otherwise be | 129 Excludes pages that this content script would otherwise be |
130 injected into. | 130 injected into. |
131 See <a href="match_patterns.html">Match Patterns</a> | 131 See <a href="match_patterns.html">Match Patterns</a> |
132 for more details on the syntax of these strings | 132 for more details on the syntax of these strings |
133 and <a href="#match-patterns-globs">Match patterns and globs</a> | 133 and <a href="#match-patterns-globs">Match patterns and globs</a> |
134 for information on how to exclude URLs.</td> | 134 for information on how to exclude URLs.</td> |
135 </tr> | 135 </tr> |
136 <tr> | 136 <tr> |
137 <td><code>matches_about_blank<code></td> | |
not at google - send to devlin
2014/04/21 19:56:22
same here, "match_about_blank".
robwu
2014/04/21 22:15:41
Done.
| |
138 <td>boolean</td> | |
139 <td><em>Optional.</em> | |
140 Whether to insert the content script on <code>about:blank</code> and | |
141 <code>about:srcdoc</code>. Content scripts will only be injected on pages if | |
142 your extension has access to the page's parent document. Scripts are only | |
143 inserted in a top-level <code>about:blank</code> frame when its opener is | |
144 accessible by the extension. | |
145 <br><br> | |
146 Defaults to <code>false</code>.</td> | |
147 </tr> | |
148 <tr> | |
137 <td><code>css<code></td> | 149 <td><code>css<code></td> |
138 <td>array of strings</td> | 150 <td>array of strings</td> |
139 <td><em>Optional.</em> | 151 <td><em>Optional.</em> |
140 The list of CSS files to be injected into matching pages. These are injected in the order they appear in this array, before any DOM is constructed or displa yed for the page.</td> | 152 The list of CSS files to be injected into matching pages. These are injected in the order they appear in this array, before any DOM is constructed or displa yed for the page.</td> |
141 </tr> | 153 </tr> |
142 <tr> | 154 <tr> |
143 <td><code>js<code></td> | 155 <td><code>js<code></td> |
144 <td><nobr>array of strings</nobr></td> | 156 <td><nobr>array of strings</nobr></td> |
145 <td><em>Optional.</em> | 157 <td><em>Optional.</em> |
146 The list of JavaScript files to be injected into matching pages. These are i njected in the order they appear in this array.</td> | 158 The list of JavaScript files to be injected into matching pages. These are i njected in the order they appear in this array.</td> |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
452 | 464 |
453 <p> | 465 <p> |
454 The next video describes message passing, | 466 The next video describes message passing, |
455 featuring an example of a content script | 467 featuring an example of a content script |
456 sending a request to its parent extension. | 468 sending a request to its parent extension. |
457 </p> | 469 </p> |
458 | 470 |
459 <p> | 471 <p> |
460 <iframe title="YouTube video player" width="640" height="390" src="//www.youtube .com/embed/B4M_a7xejYI?rel=0" frameborder="0" allowfullscreen></iframe> | 472 <iframe title="YouTube video player" width="640" height="390" src="//www.youtube .com/embed/B4M_a7xejYI?rel=0" frameborder="0" allowfullscreen></iframe> |
461 </p> | 473 </p> |
OLD | NEW |