/requestcontrol

A Firefox extension

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

BuildStatus codecov

Request Control - Firefox extension

An extension to control HTTP requests. Provides front-end for Firefox webRequest.onBeforeRequest API for HTTP request management.

Requests can be controlled with the following rules:

  • if Filter Request Rule

    Filter requests by skipping URL inline redirection and trimming URL query parameters.

  • ir Redirect Request Rule

    Rewrite requests with support for Pattern Capturing to redirect based on the original request.

  • ib Block Request Rule

    Block requests before they are made.

  • iw Whitelist Request Rule

    Whitelist requests without taking actions of other matched rules.

Manual
FAQ
Source code
License

Support

  • Report bugs
  • Suggest new features
  • Help to translate
  • Contribute
  • Donate

Development

Clone repository and setup development environment with npm

git clone https://github.com/tumpio/requestcontrol.git
cd requestcontrol
npm install

Run in Firefox-nightly

npm start -- --firefox=nightly

Run unit tests and lint

npm test ; npm run lint

Build extension

npm run build

External Libraries

Request control uses the following external libraries,

  • lit is licensed under the MIT license.
  • tags-input and it's fork by @pirxpilot are licensed under the MIT license.
  • ionicons is licensed under the MIT license.
  • tld.js is licensed under the MIT license.

License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.