Skip to content

tumpio/requestcontrol

Repository files navigation

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 following rules:

  • Filter Rule

    Skip URL redirection and remove URL query parameters.

  • Redirect Rule

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

  • Secure Rule

    Upgrade non-secure (HTTP) requests to secure (HTTPS).

  • Block Rule

    Block requests before they are made.

  • Whitelist Rule

    Whitelist requests from other rules.

Support

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

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 its fork by @pirxpilot are licensed under the MIT license.
  • ionicons is licensed under the MIT license.
  • tldts 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/.