A simple Chrome extension that allows you to select elements on any webpage and either remove their text content or hide them completely.
- Element Selection: Click to select elements on any webpage with visual highlighting
- Text Removal: Remove all text content from selected elements while preserving HTML structure
- Element Hiding: Completely hide selected elements from the page
- Visual Feedback: Bright green highlighting shows selected elements
- Toggle Selection: Easy enable/disable selection mode
- Clone or download this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right)
- Click "Load unpacked" and select the extension folder
- The extension will appear in your Chrome toolbar
text-remover-extension/
├── manifest.json # Extension configuration
├── popup.html # Extension popup interface
├── popup.js # Popup functionality
├── content.js # Page interaction script
├── content.css # Visual styling for selected elements
├── README.md # This file
└── .gitignore # Git ignore rules
- Start Selection: Click the extension icon and press "Enable Selection"
- Select Elements: Click on any elements on the webpage you want to modify
- Selected elements will be highlighted with a bright green border
- A "WILL DELETE TEXT" indicator appears in the top-right corner
- Choose Action:
- Remove Selected Text: Removes all text content while keeping HTML structure
- Hide Selected Elements: Completely hides the selected elements
- Stop Selection: Click "Disable Selection" when finished
- Content Cleanup: Remove unwanted text from articles or documents
- Ad Blocking: Hide annoying advertisements or promotional content
- Privacy: Remove sensitive information before taking screenshots
- Focus Reading: Hide distracting elements to focus on main content
- Web Development: Test layouts without certain elements
activeTab: Required to interact with the current webpagescripting: Required to inject content scripts for element selection
The extension uses:
- Manifest V3 for modern Chrome extension standards
- Content Scripts for webpage interaction
- Message Passing for communication between popup and content script
- CSS Injection for visual highlighting of selected elements
- Chrome (Manifest V3)
- Other Chromium-based browsers (Edge, Brave, etc.)
- Fork the repository
- Create a feature branch
- Make your changes
- Test the extension thoroughly
- Submit a pull request
- Some websites with strict Content Security Policy (CSP) may interfere with the extension
- Elements with
!importantCSS rules may not hide completely - Very complex nested elements may require multiple selections