summaryrefslogtreecommitdiff
path: root/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/userstyles.md
blob: 7debf9805153a09c1239c6b15bffd2f8974efea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!-- contributed by Erik Vold [erikvvold@gmail.com]  -->

The `userstyles` module allows one to load css/userstyles for content or chrome
pages.

## Example ##

    // loads a user stylesheet
    require("userstyles").load(require("self").data.url("style.css"));

<api name="load">
@function
  Loads css (aka userstyles) to the browser which will be automatically removed
  when the add-on unloads.

@param url {string}
  The url of a css file.

@param options {object}
  Some options for the stylesheet.

@prop type {String}
  The type for the stylesheet, there are two types 'agent' and 'user'.
  The default should be used when possible, which is 'user'.

</api>