X Bookmarks Remover - Tampermonkey Script
A Tampermonkey userscript that automatically removes bookmarks from X.com (Twitter).
Features
- Manual Control Button: Easy-to-use floating control button for start/stop
- Automatic Navigation: Takes you directly to
https://x.com/i/bookmarks page when started
- Smart Removal: Finds and clicks bookmark removal buttons automatically
- Progress Scroll: Scrolls down to load more content when no bookmarks are found
- Visual Status: Button changes color and text to show current status
- Console Logging: Provides detailed console logs to track progress
- Smart Reconnection: Control button persists across page navigation
Installation
Option 1: Install via Greasefork (Recommended)
Install Tampermonkey Extension
Install Script from Greasefork
- Visit the script on Greasefork
- Click "Install this script"
- Confirm installation in the popup
- The script will be automatically updated when new versions are released
Option 2: Manual Installation
Install Tampermonkey Extension
Install the Script Manually
- Copy the contents of
bookmark-remover.user.js
- Open Tampermonkey Dashboard
- Click "Create a new script"
- Replace the default content with the script
- Save the script (Ctrl+S)
Usage
Control Button
- Navigate to any page on X.com or Twitter.com
- A blue "Start Removing Bookmarks" button will appear in the top-right corner
- Click the button to start the bookmark removal process
Starting Removal
- Click the blue "Start Removing Bookmarks" button
- The script will navigate to
https://x.com/i/bookmarks if not already there
- The button will turn red and change to "Stop Removing"
Monitoring Progress
- Open Browser Developer Console (F12 → Console tab)
- Watch the logs for removal progress:
- "Found bookmark to remove, clicking..." - Bookmark being removed
- "No bookmark found, scrolling down..." - Loading more content
- "Not on bookmarks page, navigating..." - Redirecting to bookmarks
Stopping Removal
- Click the red "Stop Removing" button at any time
- The button will turn blue and change back to "Start Removing Bookmarks"
- Or refresh the page to completely stop the script
How It Works
The script operates with a 1-second interval:
- Check for Remove Button: Looks for
button[data-testid="removeBookmark"]
- Remove if Found: Clicks the button to remove the bookmark
- Scroll if Not Found: Scrolls to bottom to load more bookmarks
- Repeat: Continues until stopped by user
Safety Features
- Manual Control: Always in control with visible start/stop button
- Visual Feedback: Button changes color and text to show current status
- Console Visibility: All actions logged to console for transparency
- No Data Collection: Script doesn't collect or transmit any data
- Local Only: All processing happens locally in your browser
- Persistent Control: Button stays visible across page navigation
Troubleshooting
Control button not visible?
- Ensure Tampermonkey is enabled
- Check if you're on x.com or twitter.com
- Refresh the page after installing
- Look for the button in the top-right corner of the page
No bookmarks being removed?
- Click the "Start Removing Bookmarks" button first
- Check console for error messages
- Ensure you're logged into X.com
- Verify the bookmarks page loaded completely
Button not responding?
- Try refreshing the page
- Check if the script is enabled in Tampermonkey dashboard
- Ensure you're on x.com or twitter.com domain
Want to stop the script?
- Click the red "Stop Removing" button
- Or refresh the page
- Or disable the script in Tampermonkey dashboard
Limitations
- Only works on x.com and twitter.com domains
- Requires active browser tab (script pauses when tab is inactive)
- X.com may rate-limit or show captchas if used excessively
- Script stops when no more bookmarks are found
License
This script is provided as-is for educational and personal use. Use responsibly and in accordance with X.com's Terms of Service.