OLD | NEW |
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: |
2 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
3 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
4 templating mechanism. | 4 templating mechanism. |
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
6 browser, it will be re-generated from the template, json schema and | 6 browser, it will be re-generated from the template, json schema and |
7 authored overview content. | 7 authored overview content. |
8 4) The <body>.innerHTML is also generated by an offline step so that this | 8 4) The <body>.innerHTML is also generated by an offline step so that this |
9 page may easily be indexed by search engines. | 9 page may easily be indexed by search engines. |
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 a content script's section of the manifest, | 337 a content script's section of the manifest, |
338 as well as in the <code>"exclude_matches"</code> section. | 338 as well as in the <code>"exclude_matches"</code> section. |
339 This page describes the match pattern syntax — | 339 This page describes the match pattern syntax — |
340 the rules you need to follow when you specify | 340 the rules you need to follow when you specify |
341 which URLs your content script affects. | 341 which URLs your content script affects. |
342 </p> | 342 </p> |
343 | 343 |
344 <p> | 344 <p> |
345 A match pattern is essentially a URL | 345 A match pattern is essentially a URL |
346 that begins with a permitted scheme (<code>http</code>, | 346 that begins with a permitted scheme (<code>http</code>, |
347 <code>https</code>, <code>file</code>, or <code>ftp</code>), | 347 <code>https</code>, <code>file</code>, <code>ftp</code>, or |
| 348 <code>chrome-extension</code>), |
348 and that can contain '<code>*</code>' characters. | 349 and that can contain '<code>*</code>' characters. |
349 The special pattern | 350 The special pattern |
350 <code><all_urls></code> matches any URL | 351 <code><all_urls></code> matches any URL |
351 that starts with a permitted scheme. | 352 that starts with a permitted scheme. |
352 Each match pattern has 3 parts:</p> | 353 Each match pattern has 3 parts:</p> |
353 <p></p> | 354 <p></p> |
354 | 355 |
355 <ul> | 356 <ul> |
356 <li> <em>scheme</em> — | 357 <li> <em>scheme</em> — |
357 for example, <code>http</code> or <code>file</code> | 358 for example, <code>http</code> or <code>file</code> |
(...skipping 14 matching lines...) Expand all Loading... |
372 </li> | 373 </li> |
373 <li> <em>path</em> — | 374 <li> <em>path</em> — |
374 for example, <code>/*</code>, <code>/foo* </code>, | 375 for example, <code>/*</code>, <code>/foo* </code>, |
375 or <code>/foo/bar </code> | 376 or <code>/foo/bar </code> |
376 </li> | 377 </li> |
377 </ul> | 378 </ul> |
378 | 379 |
379 <p>Here's the basic syntax:</p> | 380 <p>Here's the basic syntax:</p> |
380 | 381 |
381 <pre><em><url-pattern></em> := <em><scheme></em>://<em><host><
/em><em><path></em> | 382 <pre><em><url-pattern></em> := <em><scheme></em>://<em><host><
/em><em><path></em> |
382 <em><scheme></em> := '*' | 'http' | 'https' | 'file' | 'ftp' | 383 <em><scheme></em> := '*' | 'http' | 'https' | 'file' | 'ftp' | 'chrome-ext
ension' |
383 <em><host></em> := '*' | '*.' <em><any char except '/' and '*'></em>
+ | 384 <em><host></em> := '*' | '*.' <em><any char except '/' and '*'></em>
+ |
384 <em><path></em> := '/' <em><any chars></em> | 385 <em><path></em> := '/' <em><any chars></em> |
385 </pre> | 386 </pre> |
386 | 387 |
387 <p> | 388 <p> |
388 The meaning of '<code>*</code>' depends on whether | 389 The meaning of '<code>*</code>' depends on whether |
389 it's in the <em>scheme</em>, <em>host</em>, or <em>path</em> part. | 390 it's in the <em>scheme</em>, <em>host</em>, or <em>path</em> part. |
390 If the <em>scheme</em> is <code>*</code>, | 391 If the <em>scheme</em> is <code>*</code>, |
391 then it matches either <code>http</code> or <code>https</code>. | 392 then it matches either <code>http</code> or <code>https</code>. |
392 If the <em>host</em> is just <code>*</code>, | 393 If the <em>host</em> is just <code>*</code>, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 </td> | 508 </td> |
508 | 509 |
509 <td> | 510 <td> |
510 http://mail.google.com/foo/baz/bar<br> | 511 http://mail.google.com/foo/baz/bar<br> |
511 https://mail.google.com/foobar | 512 https://mail.google.com/foobar |
512 </td> | 513 </td> |
513 </tr> | 514 </tr> |
514 | 515 |
515 <tr> | 516 <tr> |
516 <td> | 517 <td> |
| 518 <code>chrome-extension://*/* </code> |
| 519 </td> |
| 520 |
| 521 <td> |
| 522 Matches any URL pointing to an extension (the first <code>*</code> |
| 523 represents a filter for extension IDs, the second for paths). |
| 524 </td> |
| 525 |
| 526 <td> |
| 527 chrome-extension://askla...asdf/options.html |
| 528 </td> |
| 529 </tr> |
| 530 |
| 531 <tr> |
| 532 <td> |
517 <code><all_urls></code> | 533 <code><all_urls></code> |
518 </td> | 534 </td> |
519 | 535 |
520 <td> | 536 <td> |
521 Matches any URL that uses a permitted scheme. | 537 Matches any URL that uses a permitted scheme. |
522 (See the beginning of this section for the list of permitted | 538 (See the beginning of this section for the list of permitted |
523 schemes.) | 539 schemes.) |
524 </td> | 540 </td> |
525 <td> | 541 <td> |
526 http://example.org/foo/bar.html<br> | 542 http://example.org/foo/bar.html<br> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 <td><code>http:/bar</code></td> | 576 <td><code>http:/bar</code></td> |
561 <td>Missing <em>scheme</em> separator ("/" should be "//")</td> | 577 <td>Missing <em>scheme</em> separator ("/" should be "//")</td> |
562 </tr> | 578 </tr> |
563 | 579 |
564 <tr> | 580 <tr> |
565 <td><code>foo://*</code></td> | 581 <td><code>foo://*</code></td> |
566 <td>Invalid <em>scheme</em></td> | 582 <td>Invalid <em>scheme</em></td> |
567 </tr> | 583 </tr> |
568 </tbody> | 584 </tbody> |
569 </table> | 585 </table> |
| 586 |
| 587 <p> |
| 588 Some schemes are not supported in all contexts. |
| 589 </p> |
570 </div> | 590 </div> |
571 | 591 |
572 <!-- API PAGE --> | 592 <!-- API PAGE --> |
573 <div class="apiPage" style="display: none; "> | 593 <div class="apiPage" style="display: none; "> |
574 <a name="apiReference"></a> | 594 <a name="apiReference"></a> |
575 <h2>API reference: chrome.apiname </h2> | 595 <h2>API reference: chrome.apiname </h2> |
576 | 596 |
577 <!-- PROPERTIES --> | 597 <!-- PROPERTIES --> |
578 <div class="apiGroup"> | 598 <div class="apiGroup"> |
579 <a name="properties"></a> | 599 <a name="properties"></a> |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 _uff=0; | 795 _uff=0; |
776 urchinTracker(); | 796 urchinTracker(); |
777 } | 797 } |
778 catch(e) {/* urchinTracker not available. */} | 798 catch(e) {/* urchinTracker not available. */} |
779 </script> | 799 </script> |
780 <!-- end analytics --> | 800 <!-- end analytics --> |
781 </div> | 801 </div> |
782 </div> <!-- /gc-footer --> | 802 </div> <!-- /gc-footer --> |
783 </div> <!-- /gc-container --> | 803 </div> <!-- /gc-container --> |
784 </body></html> | 804 </body></html> |
OLD | NEW |