Idiomark Browser Extension
Inject personality profiles directly into ChatGPT, Claude, and other AI assistants.
Overview
The Idiomark Browser Extension brings personality injection to your favorite AI chat platforms. With a single click, you can transform generic AI responses into personalized conversations that match your voice or brand.
Features
| Feature | Description |
|---|---|
| Multi-Platform Support | Works with ChatGPT (chat.openai.com, chatgpt.com), Claude (claude.ai), and Perplexity (perplexity.ai) |
| Personality Injection | Injects Idiomark profiles via system prompt and API interception |
| Profile Management | Import, store, and switch between multiple personality profiles |
| Visual Indicators | See which personality is currently active on the page |
| One-Click Activation | Simply click a profile to inject it into your conversation |
| Profile Editor UI | Create custom personalities with real-time sliders and controls |
| Emoji Picker | Choose personality avatars from 80+ emojis across 10 categories |
| Knowledge Domains | Select expertise areas from 70+ domains |
| Values Editor | Set personality values with sentiment weighting |
| Live Preview | See generated system prompts in real-time |
Installation
Chrome / Edge / Brave
- Build the extension:
cd packages/browser-extension
pnpm install
pnpm run build
- Load the extension:
- Navigate to
chrome://extensions/ - Enable Developer mode (top right toggle)
- Click Load unpacked
- Select the
packages/browser-extension/distfolder
- Navigate to
Firefox
- Build the extension (same as above)
- Load the extension:
- Navigate to
about:debugging#/runtime/this-firefox - Click Load Temporary Add-on
- Select
packages/browser-extension/dist/manifest.json
- Navigate to
Usage
Basic Usage
- Navigate to chat.openai.com or claude.ai
- Click the Idiomark extension icon in your browser toolbar
- Select a personality profile from the list
- A colored indicator appears in the top-right corner showing the active personality
- Start chatting - the AI will respond with the injected personality!
Importing Profiles
You can import any .idiomark file:
- Click the extension icon to open the popup
- Click Import .idiomark File at the bottom
- Select a
.idiomarkor.idiomark.jsonfile from your computer - The profile appears in your list and is ready to use
Sample Profiles
The extension comes with two demo personalities:
-
Sarcastic Developer
- High sarcasm (90%), low formality
- Uses programming humor and mild cynicism
- Perfect for: Tech discussions, code reviews
-
Enthusiastic Mentor
- High enthusiasm (95%), very encouraging
- Uses lots of emojis and positive reinforcement
- Perfect for: Learning, motivation, teaching
How It Works
Injection Methods
The extension uses different injection strategies depending on the platform:
ChatGPT (System Prompt Injection)
User Message → [Extension Intercepts] → Add System Message → Send to API
↓
[Idiomark Personality Context]
- The extension intercepts
fetch()calls to OpenAI's API - Injects a system message with the full personality context
- The AI responds naturally with the personality applied
Claude (Message Interception)
User Message → [Extension Modifies] → Prepend Personality → Send to API
↓
[Idiomark Context + Original Message]
- The extension modifies outgoing messages
- Prepends personality context to each message
- The AI responds with awareness of the personality
Personality Context
The injected context includes:
- Voice & Tone: Primary tone, formality, humor, sarcasm levels
- Communication Patterns: Sentence length, emoji usage, punctuation
- Domains of Expertise: What topics this personality knows well
- Core Values: What this personality cares about
- Knowledge Base: Frequent terms, topics, and specialized knowledge
Development
Project Structure
packages/browser-extension/
├── src/
│ ├── manifest.json # Extension manifest (Manifest V3)
│ ├── background.ts # Service worker (state management)
│ ├── popup.ts/html/css # Extension popup UI
│ ├── injected.ts # Page context script (fetch override)
│ ├── content-scripts/
│ │ ├── chatgpt.ts # ChatGPT-specific logic
│ │ ├── claude.ts # Claude-specific logic
│ │ └── perplexity.ts # Perplexity-specific logic
│ ├── components/
│ │ ├── TraitSlider.ts # Range slider for personality traits
│ │ ├── EmojiPicker.ts # Emoji selection component
│ │ ├── LivePreview.ts # Real-time prompt preview
│ │ ├── KnowledgeDomainEditor.ts # Expertise domain selector
│ │ ├── ValuesEditor.ts # Values with sentiment weighting
│ │ ├── ProfileEditor.ts # Main profile editor (integrates all)
│ │ └── index.ts # Component exports
│ ├── types/
│ │ └── extension.ts # TypeScript types
│ └── services/
│ ├── prompt-builder.ts # Generates personality prompts
│ └── cloud-api.ts # Idiomark.cloud API client
├── scripts/
│ └── copy-assets.js # Post-build asset copying
├── docs/
│ └── PROFILE_EDITOR.md # Component documentation
├── icons/ # Extension icons (needs to be created)
├── test/
│ └── load-components.html # Component testing page
├── vite.config.ts # Build config (Vite without CRXJS)
└── package.json
Building
# Development build (watch mode)
pnpm run dev
# Production build
pnpm run build
The build process:
- Vite bundles all TypeScript files
- Copies
src/manifest.jsontodist/ - Moves
dist/src/popup.htmltodist/popup.html - Copies CSS and other assets to correct locations
Building
# Development build (watch mode)
pnpm run dev
# Production build
pnpm run build
Testing
- Build the extension:
pnpm run build - Load it in your browser (see Installation above)
- Navigate to a supported platform (ChatGPT or Claude)
- Open browser console (F12) to see debug logs prefixed with
[Idiomark] - Try injecting different profiles and observe the responses
Troubleshooting
Extension not loading
- Ensure you ran
pnpm run buildfirst - Check the
distfolder exists and contains all files - Verify you're loading the correct folder
Injection not working
- Refresh the page after selecting a profile
- Check browser console for errors (F12)
- Verify you're on a supported domain:
chat.openai.com/chatgpt.comclaude.ai
Profile indicator not showing
- The content script may not have loaded
- Try refreshing the page
- Check that the extension has permission for the site
Personality not applying to responses
- The API may have changed (the extension works by intercepting API calls)
- Try starting a new conversation
- Check the console for
[Idiomark]logs showing successful injection
Privacy & Security
- Local-First: All profiles are stored locally in your browser's storage
- No Telemetry: The extension doesn't send data to external servers
- Permission Scope: Only requests permission for AI platform URLs
- Open Source: Code is fully auditable at github.com/idiomark/idiomarkengine
Profile Editor
The browser extension includes a full-featured Profile Editor for creating custom personalities:
Creating a Profile
- Click the extension icon
- Click the "+" button next to "Select Personality"
- The Profile Editor modal opens with a tabbed interface:
Voice Tab
- Primary Tone: Professional vs Casual slider
- Formality: How formal/polite to be (0-100%)
- Humor: How much humor to use (0-100%)
- Sarcasm: Level of sarcasm (0-100%)
- Enthusiasm: Energy level (0-100%)
- Directness: How direct vs indirect (0-100%)
Patterns Tab
- Emoji Frequency: How often to use emojis (0-100%)
- Sentence Length: Short vs long sentences (0-100%)
- Punctuation: Minimal vs expressive punctuation (0-100%)
Knowledge Tab
Select expertise domains from 70+ options across categories:
- Technology (software-dev, web-dev, devops, cybersecurity, etc.)
- Business (management, marketing, sales, finance, etc.)
- Creative (design, photography, music-production, etc.)
- And 9 more categories
Values Tab
Set personality values with sentiment weighting:
- Select values (growth, honesty, creativity, etc.)
- Choose sentiment: negative (-1), neutral (0), or positive (+1)
- Examples:
- "Honesty" (+1): Values truth and transparency
- "Privacy" (+1): Protects personal information
- "Growth" (0): Neutral stance on self-improvement
Preview Tab
- See the generated system prompt in real-time
- Switch between ChatGPT, Claude, and Perplexity formats
- Adjust sliders and see immediate updates
Roadmap
- Support for more AI platforms (Copilot, Gemini, etc.)
- Profile sharing and export to .idiomark files
- Import profiles from Idiomark.cloud
- Usage analytics dashboard
- Custom instructions per profile
- Extension icons (create src/icons/*.png)
Contributing
We welcome contributions! See:
- CONTRIBUTING.md - General contribution guidelines
- Browser Extension README - Technical details
License
MIT © 2025 Idiomark Contributors