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.git -
Load 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! Refresh Twitter and watch Grok-related tweets disappear.
Since it's a local extension, you won't find it in any extension store, but this also means no review processes or delays when you want to modify the code for your own needs.
Final Thoughts
As someone who values a clean information stream, I appreciate tools that help curate content without requiring me to leave a platform entirely. un-grok is one of those simple utilities that solves a specific, timely problem with minimal overhead.
For developers, it's also a great example of how a focused tool can be built quickly to address a real-world annoyance. The code is clean enough that you could fork it and adapt it to filter other keywords or even build more sophisticated filtering logic. Sometimes the most useful tools are the ones that do one thing exceptionally well.
Give it a try if Grok chatter has been crowding your feed, or use it as inspiration for your own browser extension project.
Follow us for more interesting projects: @githubprojects
Repository: https://github.com/hotheadhacker/un-grok