Last active
November 30, 2017 23:44
-
-
Save kentbrew/e2b94422ef5521db28e9a2bbedb404f0 to your computer and use it in GitHub Desktop.
Tracker Jacker
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
| 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"] | |
| ); |
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
| { | |
| "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 | |
| } |
Author
kentbrew
commented
Nov 30, 2017



Author
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.
Author
Now up on the Chrome Web Store, here:
https://chrome.google.com/webstore/detail/fidaihianbfhklachngadhjhlnbldhjm/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment