https://github.com/phra/zero-width-fingerprint-detection-extension
A browser extension to detect when zero-width characters are used to fingerprint cut/copied/pasted text.
https://github.com/phra/zero-width-fingerprint-detection-extension
Last synced: over 1 year ago
JSON representation
A browser extension to detect when zero-width characters are used to fingerprint cut/copied/pasted text.
- Host: GitHub
- URL: https://github.com/phra/zero-width-fingerprint-detection-extension
- Owner: phra
- License: mit
- Created: 2020-06-01T16:58:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T17:03:45.000Z (about 6 years ago)
- Last Synced: 2025-02-28T06:04:30.337Z (over 1 year ago)
- Language: JavaScript
- Size: 112 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zero-Width-Fingerprint-Detection-Extension
**This add-on injects JavaScript into web pages. The `addons.mozilla.org` domain disallows this operation, so this add-on will not work properly when it's run on pages in the `addons.mozilla.org` domain.**
## What it does
This extension includes:
* a content script, "content-script.js", that is injected into all pages
The content script listens for `cut`/`copy`/`paste` events in the page it's attached to and it inspect the data to look for zero-width characters that can be used to insert hidden watermarks in the copied text.
## Note
* If the `copySelection` function was in a browser event `clipboardWrite` permissions would be required e.g.
```
"permissions": ["clipboardWrite"]
```
See [Interact with the clipboard](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Interact_with_the_clipboard).