Efficiently hides reposts on X with optional keyword filtering
Optimized Repost Hider for X
Automatically hides reposts (“retweets”) on x.com to give you a cleaner, more focused timeline. Written for
Violentmonkey/Tampermonkey, this userscript uses a MutationObserver to efficiently detect and remove reposted content without slowing down your scroll or reprocessing the same tweet twice.
Features
Seamless hiding of reposts without manual intervention
Throttled DOM updates for low CPU/memory overhead
Tracks each tweet once to avoid redundant work
Supports single‐page app (SPA) navigation—rescan on URL changes
Optional keyword filtering: only hide reposts containing your chosen words
Built‐in debug logging for script development