# victornpb/undiscord

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/victornpb-undiscord).**

6,383 stars · 761 forks · JavaScript · other

## Links

- GitHub: https://github.com/victornpb/undiscord
- Homepage: https://victornpb.github.io/undiscord
- awesome-repositories: https://awesome-repositories.com/repository/victornpb-undiscord.md

## Topics

`browser-extension` `bulk-operation` `delete-multiple` `discord` `discord-channel` `discordapp` `greasemonkey` `greasymonkey-userscript` `tampermonkey` `userscript`

## Description

Undiscord is a browser-based tool that deletes all messages from a Discord channel or direct message conversation by running a self-contained JavaScript snippet in the developer console. The script leverages the user's existing browser session, including cookies and authentication tokens, to impersonate the user and execute Discord API calls without re-authentication.

The tool deletes messages one by one via Discord's REST API endpoints, processing each response before sending the next request, and implements custom delay logic between API calls to avoid Discord's rate-limiting thresholds. It also adds a clickable button to the Discord web interface by manipulating the Document Object Model to initiate the deletion process.

The entire deletion logic is delivered as a single-page script that runs entirely in the client's browser environment, requiring no external dependencies or server-side components. The tool is distributed as a self-contained JavaScript snippet that users copy and paste into their browser's developer console.

## Tags

### Business & Productivity Software

- [Message Deletion Scripts](https://awesome-repositories.com/f/business-productivity-software/messaging-channel-administration/message-deletion-scripts.md) — Removes every message from a Discord channel or direct message by running a script in the browser console. ([source](https://github.com/victornpb/undiscord/wiki/Copy-paste-method))

### Data & Databases

- [Sequential API Deletions](https://awesome-repositories.com/f/data-databases/key-value-stores/key-deletion/range-deletions/bulk-request-deletions/sequential-api-deletions.md) — Deletes messages one by one via Discord's REST API endpoints, processing each response before sending the next request.

### Development Tools & Productivity

- [Authenticated API Console Injections](https://awesome-repositories.com/f/development-tools-productivity/command-line-interfaces/runtime-state-consoles/interactive-console-injection/authenticated-api-console-injections.md) — Injects JavaScript into the browser console to execute Discord API calls using the user's authenticated session.
- [DOM-Initiated Deletion Triggers](https://awesome-repositories.com/f/development-tools-productivity/cron-scheduling/cron-trigger-deletions/dom-initiated-deletion-triggers.md) — Adds a clickable button to the Discord web interface by manipulating the DOM to initiate message deletion.
- [Self-Contained Browser Snippets](https://awesome-repositories.com/f/development-tools-productivity/in-page-script-execution/self-contained-browser-snippets.md) — Delivers the entire deletion logic as a self-contained JavaScript snippet that runs entirely in the client's browser environment.

### DevOps & Infrastructure

- [Client-Side Rate Limit Throttling](https://awesome-repositories.com/f/devops-infrastructure/api-service-management/api-management/rate-limit-bypassing/client-side-rate-limit-throttling.md) — Implements custom delay logic between API calls to avoid Discord's rate-limiting thresholds during bulk message deletion.
- [Client-Side Rate Limit Throttling Scripts](https://awesome-repositories.com/f/devops-infrastructure/api-service-management/api-management/rate-limit-bypassing/client-side-rate-limit-throttling-scripts.md) — Avoids Discord's rate-limiting thresholds during bulk message deletion by implementing custom delay logic between API calls.

### Networking & Communication

- [Message Cleanup Scripts](https://awesome-repositories.com/f/networking-communication/discord-integrations/message-cleanup-scripts.md) — Removes all messages from a Discord channel or direct message conversation using a browser-based script.
- [Message Deletion Scripts](https://awesome-repositories.com/f/networking-communication/discord-integrations/message-deletion-scripts.md) — A browser-based JavaScript tool that deletes all messages from a Discord channel or DM by injecting code into the developer console.
- [Message Deletion Tools](https://awesome-repositories.com/f/networking-communication/discord-integrations/message-deletion-tools.md) — Deletes all messages from a Discord channel or DM by running a script in the browser console.

### Security & Cryptography

- [Browser Session Token Reuse](https://awesome-repositories.com/f/security-cryptography/vulnerability-assessment-testing/security-testing-auditing/security-testing/authentication-bypass-techniques/session-hijacking/browser-session-token-reuse.md) — Leverages existing browser cookies and authentication tokens to impersonate the user for Discord API requests without re-authentication.

### Web Development

- [Authenticated API Console Scripts](https://awesome-repositories.com/f/web-development/browser-scripting-tools/authenticated-api-console-scripts.md) — A self-contained script that runs in the browser's developer console to execute Discord API calls using the user's authenticated session.
- [Deletion UI Triggers](https://awesome-repositories.com/f/web-development/dom-manipulation/deletion-ui-triggers.md) — Adds a clickable button to the Discord web interface by manipulating the DOM to initiate a deletion process.

### Artificial Intelligence & ML

- [Self-Contained Browser Snippets](https://awesome-repositories.com/f/artificial-intelligence-ml/code-snippets/editor-snippets/snippet-loaders/self-contained-browser-snippets.md) — Delivers the entire deletion logic as a self-contained JavaScript snippet that runs entirely in the client's browser environment.

### User Interface & Experience

- [Deletion UI Enhancers](https://awesome-repositories.com/f/user-interface-experience/dom-manipulation-tools/deletion-ui-enhancers.md) — Adds a clickable button to the Discord web interface by manipulating the DOM to initiate the deletion process.
