Skip to content

the4rchangel/aidetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 AI Text Detector Browser Extension

License Platform Version

A sophisticated browser extension that automatically detects and highlights AI-generated text on web pages using advanced heuristic analysis.

InstallationFeaturesDetection RulesCustomizationKnown IssuesContributingPrivacy


✨ Features

  • 🎯 Real-time analysis of web content
  • 🎨 Two-tier highlighting system:
    • 🟡 Yellow: Moderate AI likelihood (30-50%)
    • 🔴 Red: High AI likelihood (>50%)
  • 🔄 Dynamic content analysis for social media
  • 📊 Detailed scoring breakdown on hover
  • 🚀 Platform-specific optimizations
  • 🔒 100% private, runs entirely in your browser

🎯 Detection Rules

Text Analysis Criteria

1. Phrase Detection

  • Common AI Phrases (Score Impact: +0.08 per match, max 0.3)
    • First-person patterns: "I understand", "I believe", "I think"
    • Transition phrases: "let's dive in", "it's worth noting"
    • Technical terms: "enables", "facilitates", "leverages"

2. Technical & Academic Patterns

  • Technical Structure (Score Impact: +0.35 max)
    • Method descriptions
    • Theoretical frameworks
    • Research implications
    • Bullet point structures

3. Writing Style Analysis

  • Sentence Structure (Score Impact: +0.2)
    • Uniform sentence lengths
    • Consistent paragraph structure
    • Formal language patterns

4. Content Structure

  • Paragraph Analysis (Score Impact: +0.15)
    • Uniform paragraph lengths
    • Structured lists
    • Systematic formatting

Scoring Thresholds

General Websites

  • 🟡 Moderate: ≥ 0.3 (30%)
  • 🔴 High: ≥ 0.5 (50%)

Social Media (LinkedIn, Twitter/X)

  • 🟡 Moderate: ≥ 0.25 (25%)
  • 🔴 High: ≥ 0.4 (40%)

🚀 Installation

  1. Download or clone this repository
  2. Open Brave browser and navigate to brave://extensions/
  3. Enable "Developer mode" in the top right
  4. Click "Load unpacked" and select the extension directory

⚙️ Customization

Adjustable Parameters in content.js:

const AI_DETECTION_CRITERIA = {
    repetitionThreshold: 0.25,      // Word repetition sensitivity
    sentenceLengthVariation: 0.15,  // Sentence structure uniformity
    minTextLength: 40,              // Minimum characters to analyze
    // ... other customizable parameters
};

Key Adjustable Features:

  • Detection thresholds
  • Phrase matching patterns
  • Technical term recognition
  • Platform-specific settings

🔒 Privacy & Security

This extension:

  • ✅ Runs entirely in your browser
  • ✅ No external API calls
  • ✅ No data collection or storage
  • ✅ No tracking or analytics
  • ✅ Open source and auditable

🤝 Contributing

Contributions are welcome! Here's how you can help:

  • 🐛 Report bugs
  • 💡 Suggest features
  • 🔍 Add detection patterns
  • 📝 Improve documentation
  • 🎨 Enhance UI/UX

📄 License

MIT License - feel free to use, modify, and distribute!

⚠️ Known Issues

Performance Impact

The extension performs real-time analysis of text content, which may impact performance on certain pages:

  • Complex Web Applications: Pages with extensive dynamic content (like social media feeds) may experience slower loading times
  • Text-Heavy Pages: Documents or articles with large amounts of text might take longer to process
  • Frequently Updating Content: Pages that constantly refresh or update content may experience performance degradation

Mitigation Steps

If you experience issues on a particular website:

  1. Temporary Disable:

    • Click the extension icon in your browser toolbar
    • Select "Pause on this site" or toggle the extension off temporarily
  2. Permanent Disable for Specific Sites:

    • Click the extension icon
    • Select "Manage Extensions"
    • Under "Site access", add the problematic site to the blocked list
  3. Report Issues:

    • If you consistently experience problems on specific sites, please report an issue
    • Include the website URL and a description of the behavior

Current Limitations

  • May not detect AI text in embedded iframes
  • Some dynamic content loading methods might be missed
  • Performance impact varies based on page complexity and content length

Made with ❤️ for the AI-aware web community

About

Brave/Chrome Browser extension for highlighting potential AI written text on screen as you're browsing. Work in Progress.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors