A lightweight Chrome extension that automatically removes specific CSS classes (test-item-child and blur) from div elements on user-specified websites.
- π― Targeted Removal: Removes only
test-item-childandblurclasses from<div>elements - π Real-time Monitoring: Uses MutationObserver to handle dynamically added content
- βοΈ Domain Management: Simple interface to add/remove allowed domains
- π Performance Optimized: Debounced operations and efficient DOM queries
- π Secure: Manifest V3 compliant with minimal permissions
- πΎ Persistent Settings: Domain preferences saved to Chrome storage
- Download/Clone this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable Developer Mode (toggle in top-right corner)
- Click "Load unpacked" and select the extension folder
- Pin the extension to your toolbar for easy access
- Click the extension icon in your toolbar
- Click "Open Settings" or right-click the icon and select "Options"
- Enter domains in the text area (one per line):
example.com subdomain.example.org another-site.net - Click "Save Settings"
- Visit any website you want to enable the extension on
- Click the extension icon
- Click "Add Domain to Enable" to quickly add the current site
- The extension icon shows the current status
- Green status = Extension is active on current site
- Red status = Extension is not active on current site
css-class-remover/
βββ manifest.json # Extension configuration
βββ content.js # Main functionality script
βββ options.html # Settings page
βββ options.js # Settings page logic
βββ popup.html # Extension popup
βββ popup.js # Popup functionality
βββ README.md # Documentation
- Manifest V3: Uses the latest Chrome extension standard
- Minimal Permissions: Only requests
storageandactiveTab - Debounced MutationObserver: Efficient real-time DOM monitoring
- Domain Validation: Ensures proper domain format
- CSP Compliant: No inline scripts or unsafe practices
- Chrome 100+: Full support
- Edge 100+: Full support (Chromium-based)
- Other Chromium browsers: Should work with manifest V3 support
To modify or extend the extension:
- Edit the source files as needed
- Reload the extension in
chrome://extensions/ - Test on target websites
To remove additional CSS classes, modify the TARGET_CLASSES array in content.js:
const TARGET_CLASSES = ['test-item-child', 'blur', 'your-new-class'];Extension not working?
- Check if the current domain is in your allowed domains list
- Reload the page after adding a new domain
- Check the browser console for any error messages
Performance issues?
- The extension uses debounced operations to minimize performance impact
- Consider reducing the number of monitored domains if issues persist
- No data is sent to external servers
- All settings are stored locally in Chrome storage
- No access to sensitive page content beyond removing specified classes
- Minimal permission requirements
This extension is provided as-is for educational and practical use. Feel free to modify and distribute according to your needs.