A browser extension that automatically sanitizes Personally Identifiable Information (PII) and sensitive data from your prompts before sending them to Large Language Models (LLMs) like ChatGPT, Claude, and Gemini.
Download here:
Maskeraid protects your privacy by automatically applying custom sanitization rules to mask or replace sensitive information in your prompts. This includes:
- Email addresses - Replace with masked versions
- Phone numbers - Mask digits while preserving format
- Credit card numbers - Replace with safe placeholders
- SSN/Social Security Numbers - Mask sensitive digits
- Custom patterns - Create your own regex or string replacement rules
- Real-time preview - See what will be sent before submitting
The extension works seamlessly on:
- ChatGPT (chat.openai.com, chatgpt.com)
- Claude (claude.ai)
- Gemini (gemini.google.com)
- Huggingface Chat (huggingface.co/chat)
Upcoming support for more LLM platforms!
- Perplexity AI (perplexity.ai)
- Microsoft Copilot (copilot.microsoft.com)
- T3 Chat (t3.chat)
- Z AI Chat (chat.z.ai)
and more...
Contributions are welcome! Please feel free to raise issues or contribute to the project.
- Clone this repository
- Build the extension:
npm run build - Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (top right)
- Click "Load unpacked" and select the
distfolder
Click the extension icon to open the popup:
-
Rules Tab: Create, edit, and manage sanitization rules
- Click "Add Rule" to create a new rule
- Define pattern (regex or plain text)
- Set replacement text
- Enable/disable rules as needed
-
Settings Tab: Configure extension behavior
- Enable/disable auto-sanitization
- Toggle overlay visibility
- Select which sites to enable
- Choose theme (light/dark/system)
When you visit ChatGPT, Claude, or Gemini:
- Type your prompt in the text area
- The extension automatically detects and sanitizes sensitive data
- A preview overlay shows what will be sent (if enabled)
- Submit your prompt with confidence
- React 19 - Modern UI framework
- TypeScript - Type-safe development
- Vite - Fast build tool and dev server
- Tailwind CSS v4 - Utility-first styling
- Radix UI - Accessible component primitives
- Chrome Extension APIs - Manifest V3
- Shadow DOM - Style isolation for content scripts
@radix-ui/*- Accessible UI componentsclass-variance-authority- Component variantsclsx&tailwind-merge- Class name utilitiesdiff- Text diffing for previewlucide-react- Icon library
- Node.js 18+ and npm
- Chrome browser
# Install dependencies
npm install
# Start development server with HMR
npm run dev
# Build for production (chromium browser)
npm run build
# Build for production (firefox browser)
npm run build:firefox
# Type check
npx tsc --noEmit
# Lint code
npm run lint
# Preview production build
npm run preview- Make changes to source files in
src/ - Build the extension:
npm run build - Reload the extension in
chrome://extensions/ - Test on supported LLM sites
src/
├── background/ # Service worker for cross-context communication
├── content/ # Content scripts injected into LLM sites
│ └── sites/ # Site-specific handlers (ChatGPT, Claude, Gemini)
├── popup/ # React popup UI components
├── components/ui/ # Reusable UI components (shadcn/ui pattern)
├── shared/ # Shared utilities, types, storage, sanitizer
└── lib/ # Utility functions
The dist/ folder contains:
manifest.json- Extension manifestbackground.js- Service workercontent.js- Content script bundleindex.html& assets - Popup UIicons/- Extension icons
- ✅ Custom Rules - Create regex or plain text replacement rules
- ✅ Real-time Preview - See sanitized text before sending
- ✅ Multi-site Support - Works on ChatGPT, Claude, and Gemini
- ✅ Smart Overlay - Optional preview overlay with diff highlighting
- ✅ Rule Management - Enable/disable, edit, delete rules
- ✅ Dark Mode - System-aware theme support
- ✅ Persistent Storage - Rules and settings saved locally
- ✅ Type-safe - Full TypeScript support
- Name suggestion: The creative name "Maskeraid" was suggested by @datarat23
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Ayush Walekar - GitHub
- Email - walekarayush@gmail.com
- Website - ayushwalekar.com




