Skip to content

Instantly share code, notes, and snippets.

@kentbrew
Last active Nov 30, 2017
Embed
What would you like to do?
Tracker Jacker
const BLOCK_ME = "://www.facebook.com/tr/";
chrome.webRequest.onBeforeRequest.addListener(
function(r) {
return {
cancel: r.url.indexOf(BLOCK_ME) != -1
};
},
{urls: ["<all_urls>"]},
["blocking"]
);
{
"version": "1.0.1",
"name": "Tracker Jacker",
"description": "Quit sending data back to Facebook every time you touch a page with their third-party JavaScript onboard.",
"permissions": [
"webRequest",
"webRequestBlocking",
"*://*/*"
],
"background": {
"scripts": ["background.js" ]
},
"icons": {
"16": "icon_16.png",
"48": "icon_48.png",
"128": "icon_128.png"
},
"content_security_policy": "script-src 'self'; object-src 'self'",
"manifest_version": 2
}
@kentbrew

This comment has been minimized.

Copy link
Owner Author

@kentbrew kentbrew commented Nov 30, 2017

icon_16
icon_48
icon_128

@kentbrew

This comment has been minimized.

Copy link
Owner Author

@kentbrew kentbrew commented Nov 30, 2017

Icons are in the previous comment; stolen from The Noun Project, here:

https://thenounproject.com/term/wasp/902714/

Why the heck GitHub lets you drag an image into a comment but not the gist itself is beyond me.

@kentbrew

This comment has been minimized.

Copy link
Owner Author

@kentbrew kentbrew commented Nov 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment