Labs/Jetpack/JEP/17: Difference between revisions

m
Update link to be the current page for match_patterns
m (Update link to be the current page for match_patterns)
Line 25: Line 25:
*'''callback''': A function that modifies the page. It takes one argument, the <code>document<code> object of the page being loaded.
*'''callback''': A function that modifies the page. It takes one argument, the <code>document<code> object of the page being loaded.
*'''options''':
*'''options''':
**'''matches''': An array of [http://dev.chromium.org/developers/design-documents/extensions/match-patterns match patterns] describing which pages the content script should run on.  If any of the match patterns matches a URL, the content script is run.
**'''matches''': An array of [http://code.google.com/chrome/extensions/match_patterns.html match patterns] describing which pages the content script should run on.  If any of the match patterns matches a URL, the content script is run.


==== Examples ====
==== Examples ====
94

edits