Item logo image for RegexChameleon

RegexChameleon

5.0(

1 rating

)
ExtensionDeveloper Tools
Item media 1 (screenshot) for RegexChameleon

Overview

Highlight regex matches on any page with vivid, multi-color highlighting.

RegexChameleon - Multi-Color Regex Highlighter Extension Overview: RegexChameleon is a powerful and intuitive Chrome extension designed for highlighting regular expression matches on any webpage with vivid, multi-color visualization. Developed to assist developers, data analysts, researchers, and anyone working with text patterns, this extension transforms the often abstract process of regex pattern matching into a clear, visual experience directly within the browser. By applying multiple regex rules simultaneously with distinct colors, users can instantly see how different patterns match against the same text, making it invaluable for debugging complex expressions, validating data formats, extracting information, or learning regex syntax. Core Functionality: The extension centers around a flexible regex highlighting system with several key capabilities: 1. Multi-Rule, Multi-Color Highlighting: Unlike basic regex testers that show only one pattern at a time, RegexChameleon allows users to define and apply multiple regex rules simultaneously, each highlighted in a distinct color from a 10-color palette. This enables direct comparison of different patterns on the same text. 2. Real-Time Application and Preview: As users type regex patterns in the extension interface, the extension provides: * Live syntax validation with immediate feedback * Real-time highlighting preview on the current webpage * Dynamic match counting for both saved rules and the pattern being typed * Visual indication of validity through color-coded syntax messages 3. Persistent Rule Management: All defined regex rules are stored locally using the Chrome storage API, allowing users to: * Save complex pattern sets for reuse across browsing sessions * Enable/disable individual rules without losing their configuration * Delete rules they no longer need * Maintain consistent color assignments for pattern recognition 4. Intuitive User Interface: The extension popup features: * A color palette preview showing the next color to be assigned * Dedicated fields for pattern input and flags (like "g", "i", "m") * Real-time syntax checking with helpful error messages * Visual indicators for match counts and rule status * One-click apply and clear functions * Link to the full web application at alahay.org for advanced features 5. Robust Text Processing Engine: The content script implements: * Tree walking to efficiently traverse text nodes in the DOM * Smart filtering to skip irrelevant elements (script, style, textarea, input fields) * Protection against infinite loops from malformed regex patterns * Proper handling of overlapping matches through sequential processing * Preservation of original text structure when clearing highlights Technical Implementation: RegexChameleon utilizes a streamlined architecture focused on performance and usability: - Manifest v3 Configuration: Defines essential permissions (activeTab, scripting, storage), browser action with popup interface, and declares no persistent content scripts (they're injected dynamically as needed) - Dynamic Script Injection: Uses chrome.scripting.executeScript to inject the content.js file only when users actively apply rules, minimizing performance impact - Content Script Logic: The content.js file implements: * A self-invoking function that creates a isolated scope to prevent conflicts * TreeWalker API for efficient text node traversal with appropriate filtering * RegExp object creation with proper flag handling (automatically adds "g" if missing) * DocumentFragment-based DOM manipulation for efficient highlighting * Exposure of applyRules and clearHighlights functions on window.__regexChameleon - Popup Interface: HTML/CSS/JavaScript-based user interface featuring: * Modern design with JetBrains Mono and DM Sans fonts for code readability * Real-time syntax validation using RegExp constructor try/catch * Debounced live preview to prevent excessive processing while typing * Color-coded feedback for valid/invalid patterns * Persistent storage integration via chrome.storage.local API * Badge updates showing total match counts on the extension icon - Storage System: Uses chrome.storage.local to persist: * Array of rule objects containing pattern, flags, enabled status, and assigned color * Automatic color assignment based on rule index in a rotating 10-color palette * Efficient retrieval and updating of rule sets User Experience: When interacting with RegexChameleon, users encounter a fluid workflow: - Initial State: Clean interface with color palette preview, empty rules list, and ready-to-use input fields - Pattern Definition: As users type in the pattern field: * Immediate syntax feedback appears below the input * The preview dot shows the color that would be assigned to a new rule * If the pattern is valid, live highlighting appears on the webpage * Match count updates in real-time showing how many instances were found - Rule Management: Users can: * Click the "+" button or press Enter to save the current pattern as a rule * See saved rules appear in the rules list with their color dots, patterns, flags, and match counts * Toggle rules on/off using the eye icon buttons * Delete rules using the trash can buttons * Observe automatic color preservation when rules are removed (remaining rules keep their assigned colors) - Application Control: Users can: * Click "Apply" to refresh all active rules on the current page * Click "Clear" to remove all highlights from the page * Rely on automatic highlighting when rules are modified (through live preview) - Navigation Features: The interface provides: * Link to the full web application for advanced features * Clear visual indication of extension state through the action bar and match count display * Responsive design that works well at the extension's standard width Privacy and Security: RegexChameleon prioritizes user privacy and data protection through several key measures: - Client-Side Only Processing: All regex matching and highlighting occurs entirely within the user's browser; no text data is transmitted to external servers - On-Demand Operation: The content script is only injected when users explicitly click "Apply" or when live preview is active, minimizing unnecessary DOM manipulation - No Data Retention: The extension does not store the actual text content of webpages or highlighting results beyond the current browser session - User-Controlled Persistence: Only the regex rule definitions (patterns, flags, enabled status) are stored locally via chrome.storage.local API - No Personal Information Collection: Focuses solely on applying user-defined patterns to visible webpage text; does not collect browsing history, personal information, or form data - Transparent Operation: Clear visual indication when highlighting is active through colored marks on the page and extension badge showing match counts - Secure Execution: Content script runs in an isolated world, preventing conflicts with website JavaScript while maintaining access to text nodes for highlighting - Minimal Permissions: Requests only essential permissions (activeTab, scripting, storage) required for core functionality - No External Calls: Does not make API requests to third-party services during operation; all processing is self-contained

Details

  • Version
    1.0.0
  • Updated
    May 6, 2026
  • Size
    12.81KiB
  • Languages
    English
  • Developer
    Website
    Email
    info@bitopsy.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

Manage extensions and learn how they're being used in your organization
The developer has disclosed that it will not collect or use your data. To learn more, see the developer’s privacy policy.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes

Support

For help with questions, suggestions, or problems, visit the developer's support site

Google apps