Clean Up Your Twitter Feed with This Simple Script
If you've been on Twitter lately, you've probably noticed a certain AI chatbot dominating conversations. Whether it's promotional tweets, hot takes, or just general chatter about Grok, sometimes you just want to filter it out and get back to the content you actually follow. That's where this clever little tool comes in.
Enter un-grok – a straightforward browser extension that does exactly what it promises: removes tweets mentioning Grok from your Twitter feed. No complicated settings, no machine learning models, just a simple filter that gives you back control over your timeline.
What It Does
un-grok is a browser extension that runs locally in your browser and filters out tweets containing the word "Grok" (case-insensitive) from your Twitter feed. It works by scanning the tweet elements on the page and hiding those that match the filter criteria. The extension is lightweight and focuses on doing one job well.
Why It's Cool
The beauty of un-grok is in its simplicity and transparency. Unlike many browser extensions that require extensive permissions or send your data somewhere, this tool is open source and you can see exactly what it's doing. The entire logic fits in a handful of lines of JavaScript.
What makes it particularly clever is how it handles dynamic content. Twitter's feed constantly loads new tweets as you scroll, and un-grok uses a MutationObserver to watch for these changes and apply the filter to new tweets as they appear. This means it works seamlessly whether you're just opening Twitter or scrolling for hours.
The project also demonstrates a practical use case for content filtering that many developers can learn from. The pattern could easily be adapted to filter other types of content, making it a great starting point for anyone looking to build their own browser extensions.
How to Try It
Getting started with un-grok is straightforward:
Clone the repository:
git clone https://github.com/hotheadhacker/un-grok.gitLoad it as an unpacked extension in Chrome/Edge/Brave:
- Open your browser's extensions page (
chrome://extensions/for Chrome) - Enable "Developer mode"
- Click "Load unpacked"
- Select the
un-grokdirectory you just cloned
- Open your browser's extensions page (
That's it! R