GithubHelp home page GithubHelp logo

tosunkaya / simplemodifyheaders Goto Github PK

View Code? Open in Web Editor NEW

This project forked from didierfred/simplemodifyheaders

0.0 1.0 0.0 1.51 MB

Extension for firefox and chrome to modify headers

JavaScript 96.61% CSS 0.31% HTML 3.08%

simplemodifyheaders's Introduction

SimpleModifyHeaders V 1.8.1

Extension for Firefox and Chrome. (The extension can be installed via this link for Firefox and via this link for Chrome)

The extension rewrites the headers based on a rules table.

The extension can be started and stopped via the button on the top right.

To save and apply the modification, you need to click on the save button.

It's possible to:

  • export the configuration into a file (json format)
  • import the configuration from a file. It supports the format of the Modifyheaders plugin. It is possible to append rules instead of replacing the configuration.

Rules table

The rules table contains lines with the following parameters:

  • action: add, modify or delete a header field or a cookie
  • header field name or cookie name
  • header field value or cookie value
  • comment: a comment
  • apply on: "request" if the modification applies to the request headers or "response" if the modification applies to the response headers
  • status: on if the modification is active, off otherwise
  • export: if set to value "To export" the rule is exported when using the export function

Url pattern

We can choose the URLs on which the modifications are applied by modifying the URL pattern :

Parameters

The parameters button permits to:

  • Activate debug mode: shows detailed log messages in the extension debugging console of the browser.
  • Show comments: show comments field on the config panel
  • Filter URL by rules: activate the possibility to filter URL for each rule in the config panel. The header field will be modified only if the URL contains the configured value.

Firefox-specific issue

According to the version of Firefox, the addition of a new header behaves differently. In the latest version, when you choose the "add" action and the header exists, it appends the value, while in the old version, it replaces it. If you want to modify an exiting header, you should use "modify" instead of "add"

Limitation

Due to limitations in the webRequest API of browsers, headers of requests, which are invoked by Javascript, could not be modified.

Extension permissions

In order to work, the following browser permissions are needed for the extension:

  • storage: needed to store the configuration and the rules
  • activeTab, tabs: needed to show the configuration screen in the browser tab.
  • webRequest, webRequestBlocking ,<all_urls>: needed to modify the headers according to the rules table.

Personal Information

The extension does not collect personal information.

License

The code is Open Source under Mozilla Public License 2.0

simplemodifyheaders's People

Contributors

didierfred avatar recolic avatar baton34 avatar gitoffthelawn avatar mre avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.