Commit ddfd5dea authored by rob@robwu.nl's avatar rob@robwu.nl

Add anchors to individual content_scripts properties

To make it easier to refer to a specific property in the documentation.

Review URL: https://codereview.chromium.org/421443002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285546 0039d316-1c4b-4281-b951-d872f2087c98
parent ca23335e
...@@ -123,7 +123,7 @@ can have the following properties:</p> ...@@ -123,7 +123,7 @@ can have the following properties:</p>
<th>Type</th> <th>Type</th>
<th>Description</th> <th>Description</th>
</tr> </tr>
<tr> <tr id="matches">
<td><code>matches</code></td> <td><code>matches</code></td>
<td>array of strings</td> <td>array of strings</td>
<td><em>Required.</em> <td><em>Required.</em>
...@@ -133,7 +133,7 @@ can have the following properties:</p> ...@@ -133,7 +133,7 @@ can have the following properties:</p>
and <a href="#match-patterns-globs">Match patterns and globs</a> and <a href="#match-patterns-globs">Match patterns and globs</a>
for information on how to exclude URLs.</td> for information on how to exclude URLs.</td>
</tr> </tr>
<tr> <tr id="exclude_matches">
<td><code>exclude_matches</code></td> <td><code>exclude_matches</code></td>
<td>array of strings</td> <td>array of strings</td>
<td><em>Optional.</em> <td><em>Optional.</em>
...@@ -144,7 +144,7 @@ can have the following properties:</p> ...@@ -144,7 +144,7 @@ can have the following properties:</p>
and <a href="#match-patterns-globs">Match patterns and globs</a> and <a href="#match-patterns-globs">Match patterns and globs</a>
for information on how to exclude URLs.</td> for information on how to exclude URLs.</td>
</tr> </tr>
<tr> <tr id="match_about_blank">
<td><code>match_about_blank<code></td> <td><code>match_about_blank<code></td>
<td>boolean</td> <td>boolean</td>
<td><em>Optional.</em> <td><em>Optional.</em>
...@@ -158,13 +158,13 @@ can have the following properties:</p> ...@@ -158,13 +158,13 @@ can have the following properties:</p>
<br><br> <br><br>
Defaults to <code>false</code>.</td> Defaults to <code>false</code>.</td>
</tr> </tr>
<tr> <tr id="css">
<td><code>css<code></td> <td><code>css<code></td>
<td>array of strings</td> <td>array of strings</td>
<td><em>Optional.</em> <td><em>Optional.</em>
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 displayed for the page.</td> 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 displayed for the page.</td>
</tr> </tr>
<tr> <tr id="js">
<td><code>js<code></td> <td><code>js<code></td>
<td><nobr>array of strings</nobr></td> <td><nobr>array of strings</nobr></td>
<td><em>Optional.</em> <td><em>Optional.</em>
...@@ -193,7 +193,7 @@ can have the following properties:</p> ...@@ -193,7 +193,7 @@ can have the following properties:</p>
<b>Note:</b> With "document_idle", content scripts may not necessarily receive the <code>window.onload</code> event, because they may run after it has <b>Note:</b> With "document_idle", content scripts may not necessarily receive the <code>window.onload</code> event, because they may run after it has
already fired. In most cases, listening for the <code>onload</code> event is unnecessary for content scripts running at "document_idle" because they are guaranteed to run after the DOM is complete. If your script definitely needs to run after <code>window.onload</code>, you can check if <code>onload</code> has already fired by using the <code><a href="http://www.whatwg.org/specs/web-apps/current-work/#dom-document-readystate">document.readyState</a></code> property.</td> already fired. In most cases, listening for the <code>onload</code> event is unnecessary for content scripts running at "document_idle" because they are guaranteed to run after the DOM is complete. If your script definitely needs to run after <code>window.onload</code>, you can check if <code>onload</code> has already fired by using the <code><a href="http://www.whatwg.org/specs/web-apps/current-work/#dom-document-readystate">document.readyState</a></code> property.</td>
</tr> </tr>
<tr> <tr id="all_frames">
<td><code>all_frames<code></td> <td><code>all_frames<code></td>
<td>boolean</td> <td>boolean</td>
<td><em>Optional.</em> <td><em>Optional.</em>
...@@ -201,14 +201,14 @@ can have the following properties:</p> ...@@ -201,14 +201,14 @@ can have the following properties:</p>
<br><br> <br><br>
Defaults to <code>false</code>, meaning that only the top frame is matched.</td> Defaults to <code>false</code>, meaning that only the top frame is matched.</td>
</tr> </tr>
<tr> <tr id="include_globs">
<td><code>include_globs</code></td> <td><code>include_globs</code></td>
<td>array of string</td> <td>array of string</td>
<td><em>Optional.</em> <td><em>Optional.</em>
Applied after <code>matches</code> to include only those URLs that also match this glob. Intended to emulate the <a href="http://wiki.greasespot.net/Metadata_Block#.40include"><code>@include</code></a> Greasemonkey keyword. Applied after <code>matches</code> to include only those URLs that also match this glob. Intended to emulate the <a href="http://wiki.greasespot.net/Metadata_Block#.40include"><code>@include</code></a> Greasemonkey keyword.
See <a href="#match-patterns-globs">Match patterns and globs</a> below for more details.</td> See <a href="#match-patterns-globs">Match patterns and globs</a> below for more details.</td>
</tr> </tr>
<tr> <tr id="exclude_globs">
<td><code>exclude_globs</code></td> <td><code>exclude_globs</code></td>
<td>array of string</td> <td>array of string</td>
<td><em>Optional.</em> <td><em>Optional.</em>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment