Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SysAdminDoc/Discrub

Repository files navigation

Discrub v2.12.0

Version License Platform

A clean, feature-rich Discord data manipulation and export tool. Chrome/Firefox extension for editing, deleting, sorting, filtering, and exporting Discord messages.

Forked from prathercc/discrub-ext with all ads, donation prompts, and promotional content removed. Rebuilt with Catppuccin Mocha theme and 26 new features across three tiers.

Features

Message Management

  • Edit/Delete your Discord messages in bulk
  • Purge channels or DMs with configurable options
  • Dry run preview - see exactly what will be affected before purging
  • Pinned message protection - skip pinned messages during purge
  • Crash-safe resume - interrupted operations save progress and can be resumed
  • Batch find & replace - regex find/replace across messages with preview diff

Export

  • 6 export formats - HTML, JSON, CSV, Markdown, Media-only, URL List
  • HTML export themes - dark, light, and Discord classic with portable CSS variables
  • Encrypted exports - AES-256-GCM password encryption via Web Crypto API
  • Audio transcription sidecars - optional local whisper.cpp WASM transcripts for downloaded audio
  • Incremental export - only export messages since your last export
  • Filename anonymizer - replace original filenames with hashes for privacy
  • Server structure export - server-info.json with metadata, channels, roles
  • Media download support (images, videos, audio) with artist mode
  • Thread/forum post separation into subfolders

Search & Filter

  • Regex filtering - toggle regex mode for content and attachment searches
  • Advanced predicates - filter by has:attachment, has:link, has:embed, is:edited
  • Time range presets - quick 24h/48h/7d/30d/90d/1y buttons on date pickers
  • Sort & filter by user, date range, content, message type

Analytics & Data

  • Analytics dashboard - per-user stats, hourly/daily activity heatmap, top words, top emoji
  • Calendar heatmap - 365-day GitHub-style contribution graph of message activity
  • Duplicate detection - flag repeated messages from the same user
  • Attachment gallery - grid view with type filter, lightbox preview
  • GDPR data package import - browse messages from all channels including servers you've left
  • Bookmarks - save messages locally, persistent across sessions
  • View raw JSON - copy any message's raw Discord API data

Performance & UX

  • Adaptive rate limiting - auto-tunes delay (0.5s to 30s) based on 429 responses
  • ETR + telemetry - progress bar, estimated time remaining, messages/sec rate, throttle counter
  • Catppuccin Mocha dark theme throughout
  • Draggable panel - reposition the dialog by grabbing the menu bar
  • Streamer mode - blur sensitive content for safe screen sharing (hover to reveal)
  • Tags for organizing and quick-filtering

Build

npm install
npm run build

Load the dist/ folder as an unpacked extension in Chrome (chrome://extensions > Developer mode > Load unpacked).

To produce distributable artifacts:

py -3 build-crx.py

The script writes Discrub-vX.Y.Z.zip for Load unpacked installs and Discrub-vX.Y.Z.crx for CRX-compatible deployment flows.

Audio transcription is opt-in. When enabled, Discrub downloads the configured ggml Whisper model URL and caches it in the browser for local WASM transcription.

Development

npm run dev

Vite provides HMR for the extension popup.

Tech Stack

  • React 18 + TypeScript + Vite
  • MUI Material v5 (Catppuccin Mocha)
  • Redux Toolkit
  • Chrome Extension Manifest V3
  • Web Crypto API (AES-256-GCM + PBKDF2)
  • Native DecompressionStream for GDPR ZIP parsing

What Was Removed

  • Ko-Fi donation sidebar and all donation code
  • Announcement/news popup system
  • Promotional buttons (GitHub star, Chrome Web Store, Ko-Fi, Reddit)
  • Embedded GitHub PAT token
  • All upstream screenshots and documentation

Project Planning

Planning files such as ROADMAP.md, COMPLETED.md, and research notes are local-only in this checkout. The in-app change log is maintained in src/changelog.json.

License

Same as upstream.

About

Clean, bloat-free Discord message editor, deleter, and exporter. Chrome/Firefox extension. Catppuccin Mocha theme.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors