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-child
andblur
classes 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
storage
andactiveTab
- 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.