Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

firefox-modheader

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firefox-modheader

Packaged ModHeader extension for Firefox WebDriver.

  • 1.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30K
increased by0.43%
Maintainers
2
Weekly downloads
 
Created
Source

ModHeader for Firefox Selenium (WebDriver)

This is the simplified, packaged extension for using ModHeader in Selenium WebDriver. For the Chrome version, look for chrome-modheader instead.

Installation:

npm install firefox-modheader

Usage

const { getExtension, getAddHeaderUrl } = require('firefox-modheader');

const options = new firefox.Options();
options.addExtensions(getExtension());
const driver = await new Builder()
  .forBrowser('firefox')
  .setFirefoxOptions(options)
  .build();
await driver.get(getAddHeaderUrl('HeaderName', 'HeaderValue'));

API:

All APIs are URL-based. Please make sure to URL encode your name and value properly.

You can use the getAddHeaderUrl() and getClearHeadersUrl() functions to craft these URLs. Be sure to do driver.get(), and be mindful that these will change the URL of the WebDriver.

Add request header:

https://webdriver.bewisse.com/add?{name1}={value1}&{name2}={value2}&...

e.g., https://webdriver.bewisse.com/add?Test=1

Clear all modified request headers:

https://webdriver.bewisse.com/clear

Load custom profile:

https://webdriver.bewisse.com/load?profile={exported_profile_in_json}

exported_profile_in_json can be obtained from the regular ModHeader extension using ... -> Export Profile.

Keywords

FAQs

Package last updated on 18 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc