privacybadger
privacybadger copied to clipboard
Use `Navigator.prototype` for DNT & GPC signal injectors
This fixes #2788. This is currently untested until I try out your build process.
Sorry I haven't had the time to update this PR until now. @ghostwords mind giving it another review?
@ghostwords I updated this PR to address your feedback. Note my response regarding the usage of Navigator
instead of navigator
.
I'm not exactly sure how disconnect.me tries to inject this property.
It should be an easy fix for the DuckDuckGo extension, so I'll also submit a corresponding PR for them. It looks like it's as simple as doing the same change I did here and in OptMeOwt: https://github.com/duckduckgo/duckduckgo-privacy-extension/blob/develop/shared/js/content-scope/gpc-protection.js
I'd say merge it 👍
You could open an issue with Disconnect (perhaps on https://github.com/disconnectme/disconnect) asking them where the latest code lives.
hey @ghostwords can we merge this pr?
Disconnect's implementation still has a number of issues:
- Does not set on
Navigator.prototype
- Defaults to
false
- Overwrites other extensions'
navigator
signal