Skip to main content

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​

FeatureDescription
Multi-Platform SupportWorks with ChatGPT (chat.openai.com, chatgpt.com), Claude (claude.ai), and Perplexity (perplexity.ai)
Personality InjectionInjects Idiomark profiles via system prompt and API interception
Profile ManagementImport, store, and switch between multiple personality profiles
Visual IndicatorsSee which personality is currently active on the page
One-Click ActivationSimply click a profile to inject it into your conversation
Profile Editor UICreate custom personalities with real-time sliders and controls
Emoji PickerChoose personality avatars from 80+ emojis across 10 categories
Knowledge DomainsSelect expertise areas from 70+ domains
Values EditorSet personality values with sentiment weighting
Live PreviewSee generated system prompts in real-time

Installation​

Chrome / Edge / Brave​

  1. Build the extension:
cd packages/browser-extension
pnpm install
pnpm run build
  1. Load the extension:
    • Navigate to chrome://extensions/
    • Enable Developer mode (top right toggle)
    • Click Load unpacked
    • Select the packages/browser-extension/dist folder

Firefox​

  1. Build the extension (same as above)
  2. Load the extension:
    • Navigate to about:debugging#/runtime/this-firefox
    • Click Load Temporary Add-on
    • Select packages/browser-extension/dist/manifest.json

Usage​

Basic Usage​

  1. Navigate to chat.openai.com or claude.ai
  2. Click the Idiomark extension icon in your browser toolbar
  3. Select a personality profile from the list
  4. A colored indicator appears in the top-right corner showing the active personality
  5. Start chatting - the AI will respond with the injected personality!

Importing Profiles​

You can import any .idiomark file:

  1. Click the extension icon to open the popup
  2. Click Import .idiomark File at the bottom
  3. Select a .idiomark or .idiomark.json file from your computer
  4. The profile appears in your list and is ready to use

Sample Profiles​

The extension comes with two demo personalities:

  1. Sarcastic Developer

    • High sarcasm (90%), low formality
    • Uses programming humor and mild cynicism
    • Perfect for: Tech discussions, code reviews
  2. 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]
  1. The extension intercepts fetch() calls to OpenAI's API
  2. Injects a system message with the full personality context
  3. The AI responds naturally with the personality applied

Claude (Message Interception)​

User Message → [Extension Modifies] → Prepend Personality → Send to API
↓
[Idiomark Context + Original Message]
  1. The extension modifies outgoing messages
  2. Prepends personality context to each message
  3. 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:

  1. Vite bundles all TypeScript files
  2. Copies src/manifest.json to dist/
  3. Moves dist/src/popup.html to dist/popup.html
  4. Copies CSS and other assets to correct locations

Building​

# Development build (watch mode)
pnpm run dev

# Production build
pnpm run build

Testing​

  1. Build the extension: pnpm run build
  2. Load it in your browser (see Installation above)
  3. Navigate to a supported platform (ChatGPT or Claude)
  4. Open browser console (F12) to see debug logs prefixed with [Idiomark]
  5. Try injecting different profiles and observe the responses

Troubleshooting​

Extension not loading​

  • Ensure you ran pnpm run build first
  • Check the dist folder 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.com
    • claude.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​

  1. Click the extension icon
  2. Click the "+" button next to "Select Personality"
  3. 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:

License​

MIT © 2025 Idiomark Contributors