roedesh / copyguard

A simple browser extension that warns you when your copy action was hijacked.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo

Copy Guard

A simple browser extension that warns you when your copy action was hijacked.

Chrome Web Store Mozilla Add-on Edge Add-on

Copy Guard demo

About

Read the blog post for more in-depth info

This extension warns you whenever your copy action was hijacked. When you select text and copy it, this extension will check if your clipboard data was altered by Javascript, or if your text selection contains hidden elements. If either one is the case, a native notification will be triggered.

Available for the following browsers:

Chrome Web Store Mozilla Add-on Edge Add-on

Features

  • Warns you when JavaScript alters your clipboard data after copying
  • Warns you when the selection you copied contains hidden elements
  • Whitelist websites
  • Export list of website that altered your clipboard

Building

  1. Clone repo
  2. bun install
  3. bun run dev to run the dev task in watch mode
  4. bun run build to build a production (minified) version

Testing in Chrome

  1. Complete the steps to build the project above
  2. Go to chrome://extensions in Google Chrome or brave://extensions in Brave.
  3. With the developer mode checkbox ticked, click Load unpacked extension... and select the dist folder from this repo

Testing in Firefox

  1. Complete the steps to build the project above
  2. Run bun run start:firefox and a Firefox window will open with the extension installed.

About

A simple browser extension that warns you when your copy action was hijacked.

License:MIT License


Languages

Language:TypeScript 58.6%Language:Svelte 37.1%Language:HTML 1.8%Language:SCSS 1.4%Language:JavaScript 1.1%