A powerful Chrome extension that protects users from inappropriate content using advanced AI technology. Profanity Guard analyzes both text and images in real-time to detect and block inappropriate content, making the internet safer for everyone.
- Image Analysis: Uses Google's Gemini AI to detect inappropriate images
- Screenshot Analysis: Takes screenshots of pages to analyze visual content
- Smart Blocking: Automatically blocks pages with inappropriate content
- Clean Dashboard: Beautiful card-based UI showing protection statistics
- Activity Log: Tracks all blocked content and protection events
- Easy Settings: Simple toggle controls for all features
- Visual Feedback: Clear notifications when content is blocked
- Local Processing: Text analysis happens in your browser
- Secure API: Uses Google's Gemini API with your own API key
- No Data Storage: Screenshots are analyzed and immediately discarded
- Transparent: Clear logging of all protection actions
-
Clone this repository:
git clone https://github.com/yourusername/profanity-guard.git
-
Open Chrome and navigate to
chrome://extensions/ -
Enable "Developer mode" in the top right corner
-
Click "Load unpacked" and select the
profanity-guarddirectory -
The Profanity Guard icon should appear in your Chrome toolbar
-
Get a Google Cloud API key:
- Go to Google AI Studio
- Create a new project or select an existing one
- Enable the Gemini API
- Create credentials (API key)
- Copy your API key
-
Configure the extension:
- Click the Profanity Guard icon in your toolbar
- Go to the Settings tab
- Paste your API key in the "API Key" field
- Click "Save Settings"
- Enable Guard: Toggle the main protection feature
- Enable Notifications: Show alerts when content is blocked
- Enable Auto-Block: Automatically block inappropriate pages
- API Key: Your Google Cloud API key for image analysis
- Click the Profanity Guard icon to see the dashboard
- The guard is enabled by default
- Browse normally - the extension will protect you automatically
- Click the camera icon in the dashboard
- The extension will capture and analyze the current page
- Results will show in the activity log
- Content Blocked: Number of inappropriate items detected
- Scan Time: Total time spent analyzing content
- Activity Log: Detailed history of all protection events
- Background Script: Handles API communication and image analysis
- Content Script: Analyzes webpage text and captures screenshots
- Popup UI: Provides user interface and settings management
- Google Gemini API: For advanced image analysis
- Chrome Extension APIs: For browser integration
- Web APIs: For text analysis and screenshot capture
- Chrome Sync Storage: Stores settings and activity log
- No Image Storage: Screenshots are analyzed and discarded
- 24-hour Activity Retention: Automatically cleans old logs
profanity-guard/
├── manifest.json
├── background.js
├── content.js
├── popup.html
├── popup.js
├── styles.css
└── README.md
- Load the built extension in Chrome
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini AI for image analysis capabilities
- Chrome Extensions team for the platform
- All contributors and users of Profanity Guard
For support, please:
- Check the Issues page
- Create a new issue if needed
- Include detailed information about your problem
Check the Releases page for the latest updates and version history.

