puppeteer-afp
Advanced tools
Comparing version 1.0.9 to 1.1.1
{ | ||
"name": "puppeteer-afp", | ||
"version": "1.0.9", | ||
"version": "1.1.1", | ||
"description": "Stop website fingerprinting techniques", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,3 +25,3 @@ # puppeteer-afp | ||
// I always use this method to get the active page, and not to have to open a new tab | ||
const initPage = (await browser.pages())[0]; | ||
const pageToProtect = (await browser.pages())[0]; | ||
// For these options, all are optional, and you dont have to use them, these are used just if you want to reuse a fingerprint | ||
@@ -72,5 +72,5 @@ const options = { | ||
}; | ||
// this function must run on the initial page, and all other tabs will be protected and using the fingerprint, do not use the initPage for anything | ||
await puppeteerAfp(initPage, options); | ||
const page = browser.newPage() | ||
// run this function on any page you want to protect, so pages loaded on this page after this is done will be protected | ||
await puppeteerAfp(pageToProtect, options); | ||
``` | ||
@@ -77,0 +77,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
28024