puppeteer-afp
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "puppeteer-afp", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Stop website fingerprinting techniques", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -71,2 +71,3 @@ # puppeteer-afp | ||
}, | ||
webRTCProtect: true //this option is used to disable or enable WebRTC disabling by destroying get user media | ||
}; | ||
@@ -73,0 +74,0 @@ // run this function on any page you want to protect, so pages loaded on |
@@ -298,3 +298,3 @@ 'use strict'; | ||
// Web RTC | ||
navigator.mediaDevices.getUserMedia = navigator.webkitGetUserMedia = navigator.mozGetUserMedia = navigator.getUserMedia = webkitRTCPeerConnection = RTCPeerConnection = MediaStreamTrack = undefined; | ||
if (window.afpOptions.options.webRTCProtect) navigator.mediaDevices.getUserMedia = navigator.webkitGetUserMedia = navigator.mozGetUserMedia = navigator.getUserMedia = webkitRTCPeerConnection = RTCPeerConnection = MediaStreamTrack = undefined; | ||
@@ -301,0 +301,0 @@ Object.defineProperty(navigator, 'deviceMemory', { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28901
95