Labs/Jetpack/Reboot/JEP/107: Difference between revisions

Line 117: Line 117:
#type - (<i>string</i>) The type of modifier being added. Can be 'matches', 'includes', 'styles', or 'script'. NOTE: If the only argument is an object, Page Mods assumes multiple modifiers will be passed in.
#type - (<i>string</i>) The type of modifier being added. Can be 'matches', 'includes', 'styles', or 'script'. NOTE: If the only argument is an object, Page Mods assumes multiple modifiers will be passed in.
#data -
#data -
#* matches: expects an array of URL strings
#* matches: (<i>array</i>) an array of URL domain strings
#* includes: expects an array of asset URL strings
#* includes: (<i>array</i>) an array of URL asset strings
#* styles: (<i>object</i>) expects object nodes to be keyed with CSS selectors whose values are arrays of strings for the CSS properties you would like to remove.
#* styles: (<i>object</i>) expects object nodes keyed with CSS selector strings, whose values are arrays of the CSS property strings you would like to remove.
#* script: (<i>function reference</i>) removes the script associated to the function reference
#* script: (<i>function reference</i>) removes the script associated with the function reference




1,273

edits