jg23497 / Header-Inject

Open-source Chrome extension for injecting and overriding HTTP request headers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Header Inject

Unit tests

Background

An open-source Chrome extension for injecting or overriding HTTP request headers. Simply.

After installation, access Header Inject's quick options panel by clicking the extension's icon or opening its options tab. The options view allows you to configure custom HTTP headers and to enable HTTP header injection, which is disabled by default when the extension is first installed.

Header Inject uses Chrome's synchronised storage mechanism, meaning its configuration is automatically synchronised to any Chrome browser you are logged in to.

Header Inject in action

Test

Header Inject relies on the Jasmine unit testing framework. Assuming Python 3 is installed, you can run the unit tests in your favourite browser:

python run-tests-in-browser.py

Or use the Karma test runner, assuming Node.js is installed:

cd tests
npm i
karma start

Karma is configured to produce a unit test coverage report. After a test run completes, the report will be available at tests/coverage.

Publish

On Windows:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --pack-extension=<path>\HeaderInject\src

About

Open-source Chrome extension for injecting and overriding HTTP request headers

License:MIT License


Languages

Language:JavaScript 97.6%Language:HTML 1.8%Language:Python 0.3%Language:CSS 0.3%