Created
December 28, 2017 17:03
-
-
Save davlgd/40947770ffdba6da1fb2798cacab1807 to your computer and use it in GitHub Desktop.
Tracking Trackers - Etape 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.browserAction.setBadgeBackgroundColor({color:"black"}); | |
chrome.webRequest.onCompleted.addListener(function(thisRequest) | |
{ | |
if (thisRequest.initiator) | |
{ | |
var initHost = new URL(thisRequest.initiator).host; | |
var urlHost = new URL(thisRequest.url).host; | |
if (initHost != urlHost) console.log(thisRequest); | |
} | |
},{urls: ["<all_urls>"]}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment