Skip to content

yetanotherf0rked/metadata-remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metadata Remover (WIP)

A browser extension that removes metadata from images (EXIF) and PDFs before uploading files.

Disclaimer: This is a work in progress, mostly done using AI as I'm not a javascript developer, it may contain security issues. Use at your own risk.

Test it on exif.tools

Features

  • Strip EXIF: Remove EXIF from JPEG/PNG images.
  • PDF Metadata Removal: Uses pdf-lib to clear PDF info (title, author, etc.).
  • Creates a [filename]-cleaned.[extension] and uploads it.

Known issues

  • Not all sites rely on <input type="file"> tags.
  • Allows to upload other file extensions.
  • Extension is too heavy (not sure why yet: nearly 60MB)

Installation

  1. Install Dependencies

    npm install
  2. Build the Extension

     npx webpack

    This generates the bundled JavaScript files in the dist/ folder.

  3. Load Unpacked

    Chrome, Edge, Opera

    1. Navigate to chrome://extensions (or edge://extensions, opera://extensions).
    2. Enable Developer Mode.
    3. Click Load Unpacked, select the folder containing manifest.json.

    Firefox

    1. Go to about:debugging#/runtime/this-firefox.
    2. Click Load Temporary Add-on.
    3. Select manifest.json.

    Safari

    1. Use Safari Web Extension Converter with Xcode.
    2. Enable and run the resulting extension in Safari.

Usage

  1. Navigate to a page with an .
  2. A “broom” icon or 🧹 button appears next to the file upload.
  3. Click the broom to pick a file (image/PDF).
  4. The extension strips EXIF (for images) or PDF metadata.

You can test the resulting file at services like exif.tools to confirm the removal of metadata.

Warnings & Limitations

Work in Progress: May contain bugs or security flaws.
Limited to JPEG/PNG Images and PDFs: Other file types should not be supported.
PDF: Only standard metadata fields are removed. Some embedded metadata might persist.

About

Browser extension that removes metadata from PDFs and Images before upload.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors