1,273
edits
Dandonkulous (talk | contribs) |
Dandonkulous (talk | contribs) |
||
Line 32: | Line 32: | ||
* Functional context for the function passed to the background page can be passed as an option | * Functional context for the function passed to the background page can be passed as an option | ||
==== Page | ==== Background Page Global: <i>$dom</i> ==== | ||
==== Background Page Method: <i>run</i> ==== | |||
==== Page | |||
<b>Arguments:</b> | <b>Arguments:</b> | ||
#<b> | #<b>options</b> - (<i>object</i>) | ||
#* matches: (<i>array</i>) an array of web site resource strings | #* matches: (<i>array</i>) an array of web site resource strings | ||
#* includes: (<i>object</i>) 'script' or 'style' keyed nodes whose values are arrays of asset resource strings | #* includes: (<i>object</i>) 'script' or 'style' keyed nodes whose values are arrays of asset resource strings | ||
#* styles: (<i>object</i>) an object whose keys are CSS selectors and whose values are objects composed of CSS property keys and values | #* styles: (<i>object</i>) an object whose keys are CSS selectors and whose values are objects composed of CSS property keys and values | ||
#* script: (<i>function</i>) a function that will be injected into the page and called. By default, the function is bound with the target document's window object | #* script: (<i>function</i>) a function that will be injected into the page and called. By default, the function is bound with the target document's window object | ||
#<b>executable</b> - (<i>array</i>) an array of web site resource strings | |||
<b>Returns:</b> | <b>Returns:</b> |
edits