Undiscord

Highly efficient message deletion script. Now with customizable delay and batch sleep settings.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Автор
Bubble Be
Щоденних встановлень
1
Всього встановлень
2
Рейтинги
0 0 0
Версія
8.4.1
Створено
30.03.2026
Оновлено
30.03.2026
Size
19,6 кБ
Ліцензія
MIT
Відноситься до

🚀 Undiscord: High-Efficiency Message Deletion Tool

Undiscord is a powerful, lightweight, and highly customizable userscript designed to help you wipe your message history on Discord. Version 8.4.1 introduces advanced frequency control and a modernized UI to ensure your cleanup is thorough, safe, and efficient.


🌟 Key Features

  • ⚡ Smart Token Extraction: Automatically fetches your Auth Token using internal Webpack module interception. No more digging through the Network tab—one click does it all.
  • 🔍 Dual-Mode Detection:
    • Server (Guild) Mode: Utilizes the Discord Search API to find and destroy your messages across entire servers or specific channels.
    • Direct Message (DM) Mode: Optimized for private conversations, using the Message History API for a deep, "zero-residue" wipe.
  • 🛡️ Advanced Rate Limit Protection:
    • Custom Delays: Set millisecond-level intervals between deletions.
    • Batch Sleep: Configure the script to "Sleep for X seconds after Y deletions" to mimic human behavior and avoid Discord's 429 (Too Many Requests) triggers.
  • 🎨 Seamless UI Integration: Injects a native-looking trash icon into the Discord toolbar. The interface is built with Discord’s "gg sans" font and design tokens for a consistent aesthetic.
  • 📊 Real-time Logging: A built-in console tracks every deletion, rate limit wait, and process milestone in real-time.

🛠️ Technical Implementation

This script is written in pure JavaScript with zero external dependencies, ensuring maximum performance and privacy.

1. Modern Token Interception

The script pushes a payload to window.webpackChunkdiscord_app to hook into Discord's internal authentication modules. This method is highly resilient against Discord's frequent code obfuscation updates.

2. Asynchronous Flow Control

The deletion engine uses an async/await loop. It monitors the HTTP response status of every API call:

  • Status 204: Success.
  • Status 429: Triggers an automatic pause based on the retry_after header provided by Discord.
  • Status 202: Triggers a wait period for the Search Index to refresh.

3. Deep Scanning Logic

  • Guilds: Maps message groups to identify "hit" messages specifically authored by you.
  • DMs: Recursively scans backwards using the before parameter to ensure even the oldest messages are reached.

🛡️ Safety & Privacy

  • Local Execution: Your Token and message data never leave your browser. All API requests are made directly to Discord's official endpoints.
  • No Data Collection: There are no analytics, tracking, or third-party pings.
  • Developer Note: This tool is intended for personal account organization. Please use reasonable delay settings (1500ms+ recommended) to comply with Discord's ToS and prevent account flagging.

📖 How to Use

  1. Install: Ensure you have a userscript manager (like Tampermonkey or Violentmonkey) installed.
  2. Open Discord: Navigate to Discord in your web browser.
  3. Launch: Click the Trash Can icon in the top-right toolbar.
  4. Authorize: Click "Fetch Token" to link your session.
  5. Target: Navigate to a channel/DM and click "Auto-fill" to grab the IDs automatically.
  6. Configure: Adjust your Delay and Batch Sleep settings if you have thousands of messages.
  7. Run: Click "Start (Search & Destroy)" and let the script work its magic.

📝 Changelog (v8.4.1)

  • UI Fix: Corrected label overlapping and spacing in the "Advanced Delays" section.
  • Engine Update: Improved Webpack chunk interception for better compatibility with 2026 Discord builds.
  • Logging: Enhanced log readability with color-coded status messages (Error/Info/Success).

💡 Support

If you find this tool helpful, please consider leaving a review on GreasyFork! For bug reports, ensure you include the log output from the script console.