Skip to content
This repository

A Addon/Jetpack SDK package which allows one to use user scripts within addons.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 docs
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

User Scripts Jetpack Package

About

This package contains modules which allow one to easily package user scripts within their addon using the Add-on SDK. The package can also be used to convert a user script into a add-on.

The module of particualy importance is the userscript module, which directly allows a consumer to 'create'/initialize/load user scripts.

Dependencies

  • vold-utils
  • addon-kit (shipped with Add-on SDK)
  • api-utils (shipped with Add-on SDK)

Example

var self = require("self");
var {UserScript} = require("userscript");
exports.main = function() {
  UserScript(self.data.url("test.user.js"));
};
Something went wrong with that request. Please try again.