Skip to content

geminiwen/X-Sanitizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X-Sanitizer Chrome Extension

A Chrome extension to help you manage and delete your posts, replies, and media from X.com (formerly Twitter) profile pages.

Features

  • 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

Installation

  1. Download or clone this repository
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable "Developer mode" in the top right
  4. Click "Load unpacked" and select the X-Sanitizer folder
  5. The extension will be installed and ready to use

Usage

  1. Navigate to your X.com profile page
  2. Click the X-Sanitizer extension icon in the Chrome toolbar
  3. Click "Activate on Current Page"
  4. A control panel will appear on the page
  5. 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

Safety Features

  • 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

Important Notes

⚠️ Warning: Deleted content cannot be recovered. Use this tool carefully.

  • 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

Technical Details

  • 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

Permissions

  • activeTab: To interact with the current X.com tab
  • storage: To save user preferences
  • https://x.com/* and https://twitter.com/*: To access X.com pages

Files Structure

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

Contributing

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.

License

MIT License - Use responsibly and only for managing your own content.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors