MCPcopy Index your code
hub / github.com/victornpb/undiscord

github.com/victornpb/undiscord @v5.2.6

repository ↗ · DeepWiki ↗ · release v5.2.6 ↗ · Ask this repo → · + Follow
136 symbols 269 edges 12 files 15 documented · 11% updated 6mo agov5.2.6 · 2025-12-22★ 6,59982 open issues
README

Undiscord - Delete all messages in a Discord channel or DM

GitHub release (latest by date) GitHub Release Date GitHub License CodeFactor Snyk Vulnerabilities for GitHub Repo GitHub Stars GitHub Forks GitHub Discussions GitHub closed pull requests GitHub closed issues

⚠️ Any tool that automates actions on user accounts, including this one, could result in account termination. (see self-bots).
Use at your own risk! (discussion).

(Due to changes in chrome manifest V3, Brave browser is recommended)

  1. First you need a Browser Extension for managing UserScripts[1] (skip if you already have one): '
  2. Brave: Violentmonkey or Tampermonkey
  3. Chrome: Violentmonkey or Tampermonkey
  4. Firefox: Greasemonkey, Tampermonkey, or Violentmonkey
  5. Opera: Tampermonkey or Violentmonkey
  6. Edge: Tampermonkey
  7. Safari: ~Tampermonkey~

  8. Install Undiscord:
    or
    (NOTE: GreasyFork is recommended for now, OpenUserJS is not receiving updates)

  9. Open Discord in your browser (Not the App) and go to the channel or direct message you would like to be wiped.

  10. Click the 🗑️ button that was added in the top right corner.

  11. Click on the buttons near Author ID and Server ID and Channel ID.

  12. Click the Delete button to begin wipping!

Screenshot

I made this tool just for you ❤️ , it would be awesome if you could just click the ⭐️ Star button at the top!

A few extra generous people asked for this, so here you can buy me a coffee. Thank you! You'll be in my special list ^_^


Need help?

Check out the wiki for helpful articles, or read existing questions, or post a new one.

Have an Idea or Feature request?

Check out the Ideas section, if your idea hasn't been posted before, please post a new one.

Found a bug?

Is prefered that issues follow a certain format. If you're not familiar with bug reports, please use the discussions tab instead.

If you believe you found a bug please file an issue, but please fill the issue template.

If you are looking to contribute please read the CONTRIBUTING first.

Copy paste version

Looking for the old Copy/Paste version? here


Originally from https://gist.github.com/victornpb/135f5b346dea4decfc8f63ad7d9cc182


⛔️ DO NOT SHARE YOUR AUTH TOKEN! ⛔️

Sharing your authToken on the internet will give full access to your account! There are bots gathering credentials all over the internet. If you post your token by accident, LOGOUT from discord on that same browser you got that token imediately. Changing your password will make sure that you get logged out of every device. I advice that you turn on 2FA afterwards.

If you are unsure do not post screenshots, or logs on the internet.


Security Concerns

Using third-party scripts means you trust that the script’s developer hasn’t inserted malicious functionality into the code and has secured it against attackers trying to do the same. You should never run code you don't trust.

Please read: what I'm doing to ensure this is safe for users.


DISCLAIMER

THE SOFTWARE AND ALL INFORMATION HERE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

By using any code or information provided here you are agreeing to all parts of the above Disclaimer.

Core symbols most depended-on inside this repo

$
called by 59
deleteDiscordMessages.user.js
$
called by 59
src/undiscord-ui.js
redact
called by 11
deleteDiscordMessages.user.js
redact
called by 11
src/utils/helpers.js
createElement
called by 8
deleteDiscordMessages.user.js
createElement
called by 8
src/utils/drag.js
wait
called by 6
deleteDiscordMessages.user.js
msToHMS
called by 6
deleteDiscordMessages.user.js

Shape

Function 78
Method 46
Class 12

Languages

TypeScript100%

Modules by API surface

deleteDiscordMessages.user.js66 symbols
src/utils/drag.js18 symbols
src/undiscord-core.js15 symbols
src/utils/helpers.js8 symbols
src/undiscord-ui.js8 symbols
src/utils/log.js7 symbols
src/utils/getIds.js5 symbols
rollup.config.mjs4 symbols
src/utils/messagePicker.js3 symbols
src/utils/insertCss.js1 symbols
src/utils/createElm.js1 symbols

Dependencies from manifests, versioned

@rollup/plugin-json6.0.0 · 1×
eslint8.36.0 · 1×
husky8.0.3 · 1×
lint-staged13.2.0 · 1×
rimraf4.4.1 · 1×
rollup3.20.2 · 1×
rollup-plugin-baked-env1.0.1 · 1×
rollup-plugin-banner21.2.2 · 1×
rollup-plugin-commonjs10.1.0 · 1×
rollup-plugin-node-resolve5.2.0 · 1×
rollup-plugin-serve2.0.2 · 1×
tiny-dedent1.0.2 · 1×

For agents

$ claude mcp add undiscord \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact