1,273
edits
Dandonkulous (talk | contribs) |
Dandonkulous (talk | contribs) |
||
Line 97: | Line 97: | ||
<b>Arguments:</b> | <b>Arguments:</b> | ||
#<b>type</b> - (<i>string</i>) The type of modifier being added. Can be ' | #<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> - | ||
#* | #* includes: (<i>array</i>) an array of URL strings (removal reloads modded docs) | ||
#* | #* excludes: (<i>array</i>) an array of URL strings (removal applies mods to docs if any are open) | ||
#* | #* 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 | ||
#* | #* scripts: (<i>function</i>) removes the script associated with a function reference | ||
<b>Returns:</b> | <b>Returns:</b> |
edits