summaryrefslogtreecommitdiff
path: root/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/userstyles.md
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@gnu.org>2015-11-28 15:24:36 -0600
committerRuben Rodriguez <ruben@gnu.org>2015-11-28 16:27:06 -0600
commite4a3586a14996bbece3b26c9e3b7704ea6af8615 (patch)
tree499bdd16b3a90c30b01e4b47a5882d13b4800f50 /data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/userstyles.md
parent4dbc2fae927bb02ef243c87938e638af9afee8fa (diff)
LibreJS upgraded to 6.0.10
Diffstat (limited to 'data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/userstyles.md')
-rw-r--r--data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/userstyles.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/userstyles.md b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/userstyles.md
new file mode 100644
index 0000000..7debf98
--- /dev/null
+++ b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/docs/userstyles.md
@@ -0,0 +1,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>