This package has been deprecated

    Author message:

    Jetpack was replaced by WebExtensions

    requestmod

    2.0.0 • Public • Published

    requestmod

    Build Status

    Modify ongoing requests using the Firefox Add-on SDK

    Use with care, as it can slow down requests drastically, since the handler is ran sync and blocks the request from getting sent/received.

    It's generally advised to try an alternative method from MDN: Intercept Page Loads instead. This implementation covers the "HTTP Observers" part.

    Getting Started

    Please first consider using WebRequest.jsm instead of this module. I hope to eventually move this module to WebRequest.jsm too, if possible. This will also add the possibility for normal events that can't modify requests.

    To install the module, run npm install --save requestmod in your extension's root directory.

    You can then use the module inside your extension in the following manner:

    var { RequestMod } = require("requestmod");

    Documentation

    There is inline documentation in the JSDoc style, or alternatively there is a prebuilt version on https://freaktechnik.github.io/jetpack-requestmod

    Install

    npm i requestmod

    DownloadsWeekly Downloads

    0

    Version

    2.0.0

    License

    MPL-2.0

    Last publish

    Collaborators

    • freaktechnik