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

Jump to navigation Jump to search
Line 97: Line 97:
<b>Arguments:</b>
<b>Arguments:</b>


#<b>type</b> - (<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.
#<b>type</b> - (<i>string</i>) The type of modifier being added. Can be 'includes', 'excludes', 'files', 'styles', or 'script'. NOTE: If the only argument is an object, Page Mods assumes multiple modifiers will be passed in.
#<b>data</b> -
#<b>data</b> -
#* matches: (<i>array</i>) an array of URL strings (removal reloads modded docs)
#* includes: (<i>array</i>) an array of URL strings (removal reloads modded docs)
#* ignores: (<i>array</i>) an array of URL strings (removal applies mods to docs if any are open)
#* excludes: (<i>array</i>) an array of URL strings (removal applies mods to docs if any are open)
#* includes: (<i>object</i>) 'script' or 'style' keyed nodes whose values are arrays of asset resource strings. Passing string of 'all' for the value of either 'include' key of 'styles' or 'script' will remove all includes of that type.
#* files: (<i>object</i>) 'javascript' or 'stylesheet' keyed nodes whose values are arrays of asset resource strings. Passing string of 'all' for the value of either 'include' key of 'styles' or 'script' will remove all includes of that type.
#* 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
#* 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</i>) removes the script associated with a function reference
#* scripts: (<i>function</i>) removes the script associated with a function reference


<b>Returns:</b>
<b>Returns:</b>
1,273

edits

Navigation menu