A comprehensive Chrome extension designed to assist content moderators in their daily tasks by providing AI-powered content analysis, workflow automation, and well-being features.
- Gemini AI Integration: Advanced content analysis using Google's Gemini API
- URL Context Analysis: Comprehensive page analysis with context awareness
- Custom Policy Engine: Create and manage custom moderation policies
- Confidence Scoring: AI-generated confidence scores for violation detection
- Detailed Explanations: AI provides explanations for why content violates policies
- Content Identification: Automatically analyze on-page content to identify potential policy violations
- Content Highlighting: Highlight keywords, phrases, and visual elements matching configurable rule sets
- One-Click Actions: Quick actions for flagging, escalating, or blocking content/users
- User Information Overlay: Hover over usernames to see moderation history
- Reporting & Metrics: Track actions taken, violation types, and time spent on moderation
- Break Reminders: Configurable timer for work intervals and break reminders
- Toxicity Scoring: Algorithm-based scoring of content toxicity levels
- Mindful Moments: Calming suggestions and activities during breaks
- Metrics Dashboard: Visual tracking of daily moderation activities
- Custom Rule Sets: Create and manage your own moderation rules
- Custom AI Policies: Define specific policies for AI analysis
- Analysis Modes: Choose between AI-only, rules-only, or hybrid analysis
- Keyboard Shortcuts: Configurable shortcuts for quick actions
- Settings Management: Comprehensive options for personalization
- Data Export/Import: Backup and restore your settings and rules
- Clone or download this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select the extension directory
- The extension will appear in your browser toolbar
- Download the extension from the Chrome Web Store (when available)
- Click "Add to Chrome" to install
- Follow the setup wizard to configure your preferences
- Right-click on any webpage to access moderation tools
- Select text and use the context menu for quick actions
- Click the extension icon to open the main dashboard
- Use keyboard shortcuts for faster workflow:
Ctrl+Shift+F: Flag contentCtrl+Shift+E: Escalate contentCtrl+Shift+B: Block user
- Click the extension icon and select "Settings"
- Configure your custom rules and preferences
- Set up break reminders and well-being features
- Configure AI analysis (requires Gemini API key)
- Import/export your settings for backup
- Get a Gemini API key from Google AI Studio
- Go to Settings → "Configure AI Policies"
- Enter your API key and test the connection
- Create custom policies or use the default Trust & Safety policies
- Choose your analysis mode (AI-only, rules-only, or hybrid)
- Go to Settings > Custom Rules
- Click "Add New Rule"
- Define keywords, severity level, and highlight color
- Save and the rules will be applied immediately
Content-Moderation-Assistant/
├── manifest.json # Extension manifest
├── popup.html # Main popup interface
├── popup.css # Popup styles
├── popup.js # Popup functionality
├── content.js # Content script for page analysis
├── content.css # Content script styles
├── background.js # Background service worker
├── options.html # Settings page
├── options.css # Settings page styles
├── options.js # Settings functionality
├── gemini-analyzer.js # AI content analysis engine
├── policy-manager.html # AI policy configuration
├── policy-manager.css # Policy manager styles
├── policy-manager.js # Policy management functionality
├── moderation-dashboard.html # Moderation actions dashboard
├── moderation-dashboard.css # Dashboard styles
├── moderation-dashboard.js # Dashboard functionality
├── escalation-handler.js # Enhanced escalation system
├── escalation-config.md # Escalation configuration guide
├── icons/ # Extension icons
│ ├── icon16.png
│ ├── icon32.png
│ ├── icon48.png
│ └── icon128.png
├── Agent.md # Project plan and roadmap
└── README.md # This file
- Chrome browser (latest version)
- Basic knowledge of HTML, CSS, and JavaScript
- Chrome extension development experience (helpful but not required)
- Gemini API key for AI features (optional but recommended)
- Clone the repository
- Ensure all files are in the correct directory structure
- Load the extension in Chrome as described in the Installation section
- Make changes to the source files
- Reload the extension in
chrome://extensions/to see changes
- Test on various websites to ensure compatibility
- Verify all features work as expected
- Check performance impact on target websites
- Test with different content types and languages
chrome.tabs: For tab management and content injectionchrome.storage: For settings and data persistencechrome.contextMenus: For right-click context menuschrome.notifications: For break reminders and alertschrome.scripting: For content script injectionchrome.commands: For keyboard shortcutschrome.alarms: For break reminder scheduling
- Google Gemini API: For AI-powered content analysis
- Fetch API: For HTTP requests to external services
The extension uses Chrome's message passing API for communication between components:
- Popup ↔ Content Script
- Background Script ↔ Content Script
- Options Page ↔ Background Script
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- All data is stored locally in your browser
- No personal information is sent to external servers
- Content analysis happens entirely in your browser
- You have full control over your data and settings
- Extension not working: Ensure it's enabled in
chrome://extensions/ - Highlights not showing: Check if highlighting is enabled in settings
- Context menu missing: Right-click on page content, not empty areas
- Settings not saving: Check browser permissions and storage
- Check the Issues page for known problems
- Create a new issue for bugs or feature requests
- Include browser version and extension version in bug reports
This project is licensed under the MIT License - see the LICENSE file for details.
- Built for content moderators and trust & safety professionals
- Inspired by the need for better moderation tools and well-being support
- Thanks to the Chrome extension development community
- AI-Powered Analysis: Gemini API integration for advanced content analysis
- Custom Policy Engine: Create and manage custom AI policies
- URL Context Analysis: Comprehensive page analysis with context awareness
- Enhanced Dashboard: Complete moderation actions dashboard
- Multiple Escalation Destinations: Local, API, Slack, email, and more
- Analysis Modes: AI-only, rules-only, or hybrid analysis
- Confidence Scoring: AI-generated confidence scores for violations
- Detailed Explanations: AI explanations for policy violations
- Initial release
- Core moderation features
- Well-being and break reminders
- Custom rule management
- Comprehensive settings and options
Note: This extension is designed to assist human moderators, not replace them. Always use your judgment when making moderation decisions.