你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/558700-x-bookmarks-remover,源站連結 點此以跳轉

X Bookmarks Remover

Manually control bookmark removal from X.com with floating control button


點此查看下載連結位址https://update.greasyfork.org.cn/scripts/558700/X%20Bookmarks%20Remover.user.js

安装此脚本?
作者
Karthikeyan N
日安装量
0
总安装量
3
评分
1 0 0
版本
2.0
创建于
2025-12-12
更新于
2025-12-12
大小
5.5 KB
许可证
MIT
适用于

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)

  1. Install Tampermonkey Extension

  2. 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

  1. Install Tampermonkey Extension

  2. 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

  1. 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
  2. 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"
  3. 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
  4. 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:

  1. Check for Remove Button: Looks for button[data-testid="removeBookmark"]
  2. Remove if Found: Clicks the button to remove the bookmark
  3. Scroll if Not Found: Scrolls to bottom to load more bookmarks
  4. 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.