A Chrome extension to help you manage and delete your posts, replies, and media from X.com (formerly Twitter) profile pages.
- Selective Deletion: Choose to delete posts, replies, or media content separately
- Bulk Operations: Delete all content types at once
- Safety Features:
- Confirmation dialogs for each deletion (optional)
- Only works on your own profile pages
- Clear warnings and status updates
- User-Friendly Interface: Simple popup and in-page control panel
- Download or clone this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select the X-Sanitizer folder
- The extension will be installed and ready to use
- Navigate to your X.com profile page
- Click the X-Sanitizer extension icon in the Chrome toolbar
- Click "Activate on Current Page"
- A control panel will appear on the page
- Choose what you want to delete:
- Delete Posts: Your original tweets
- Delete Replies: Your replies to other users
- Delete Media: Posts containing images, videos, or GIFs
- Delete All: All of the above content types
- Profile Verification: Only works on your own X.com profile pages
- Confirmation Option: Check "Confirm each deletion" to approve each item individually
- Rate Limiting: Built-in delays between deletions to avoid API limits
- Clear Status Updates: Real-time feedback on deletion progress
- The extension only works on X.com profile pages
- You must be logged into your X.com account
- Large deletion operations may take time due to rate limiting
- Some posts may fail to delete due to X.com's API restrictions
- Uses content scripts to interact with X.com's web interface
- Implements proper selectors for X.com's current DOM structure
- Includes rate limiting and error handling
- Clean, minimal UI that doesn't interfere with X.com's interface
activeTab: To interact with the current X.com tabstorage: To save user preferenceshttps://x.com/*andhttps://twitter.com/*: To access X.com pages
X-Sanitizer/
├── manifest.json # Extension configuration
├── content.js # Main deletion logic
├── popup.html # Extension popup interface
├── popup.js # Popup functionality
├── styles.css # In-page panel styling
├── icons/ # Extension icons (add your own)
└── README.md # This file
This is a defensive security tool designed to help users manage their own social media presence. Contributions that improve safety features, user experience, or reliability are welcome.
MIT License - Use responsibly and only for managing your own content.