firefox-modheader
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "firefox-modheader", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Packaged ModHeader extension for Firefox WebDriver.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ # ModHeader for Firefox Selenium (WebDriver) | ||
``` | ||
```bash | ||
npm install firefox-modheader | ||
@@ -14,3 +14,3 @@ ``` | ||
``` | ||
```javascript | ||
const { getExtension, getAddHeaderUrl } = require('firefox-modheader'); | ||
@@ -40,2 +40,10 @@ | ||
### Get extension file: | ||
Get the extension file: | ||
```javascript | ||
function getExtension() {} | ||
``` | ||
### Add request header: | ||
@@ -51,6 +59,6 @@ | ||
```javascript | ||
function getAddHeaderUrl(name, value) {} | ||
function getAddHeadersUrl({ name: value }) {} | ||
``` | ||
getAddHeaderUrl(name, value) | ||
getAddHeadersUrl({ name: value }) | ||
``` | ||
@@ -67,5 +75,5 @@ Construct the URL above using `getAddHeaderUrl('Test', '1')` or `getAddHeadersUrl({ Test: '1' })` | ||
```javascript | ||
function getClearHeadersUrl() {} | ||
``` | ||
getClearHeadersUrl() | ||
``` | ||
@@ -84,4 +92,7 @@ ### Load custom profile: | ||
Node API equivalent: | ||
```javascript | ||
function getLoadProfileUrl(exported_profile) {} | ||
``` | ||
getLoadProfileUrl(exported_profile) | ||
``` | ||
32314
93