Work / Project note
Development

XBuddy - Chrome Extension

A Chrome extension for X that glows keywords, hides what you do not want, filters by follower and engagement counts, and drafts replies with a model on your own machine.

  • #chrome-extension
  • #local-ai
  • #keyword-filter
  • #privacy-first
  • #tool

Project details

X is a feed I want to use on purpose. Most days it is a firehose, and the posts I came for are somewhere in it.

XBuddy is a Chrome extension that gives the feed rules, with keywords you care about glowing in a color you pick, keywords you never want to see hiding the post, and feed rules that hide or highlight posts by the author’s follower count or by the comments, likes and reposts on the post.

Then there are the replies. Open a reply, pick a tone, and a model on your own machine writes a draft into the composer. You edit it before you post.

What it does

Keyword glow takes positive keywords and a color. Matching posts stand out as you scroll, and posts already on the page update too.

Negative keywords hide matching posts completely. Negative filtering starts on, and an empty list hides nothing. The toggle turns the whole list off.

Feed rules work on counts: followers, following, comments, likes and reposts. Each rule is fewer than, more than, or between two numbers, and it either hides or highlights. You can keep up to 20. A hide rule wins over a highlight rule.

And a master toggle pauses everything without losing your settings. Each list has search, five-item pages and a Clear All button. Select a word or hashtag on X, right-click, and it adds to either list, which is the part I use most when I am watching a topic for a while.

Feed Rules in the XBuddy popup

Magic Reply has six tones: Generic, Agree, Connect, Disagree, Funny and Informative. Each tone has its own prompt you can edit. A reply length slider keeps drafts short, lets them run longer, or hands the length to the model.

The XBuddy popup with positive and negative keyword lists

Local, not a service

Point Magic Reply at any OpenAI-compatible server on localhost or 127.0.0.1. llama.cpp, LM Studio and Ollama all work. Choose the model, temperature, max tokens and timeout in Settings.

The reply tone and length settings

There are no accounts and no tracking. Keywords and posts go to the model on your machine. If your server needs an API key, it stays in Chrome’s local storage.

Where it is now

XBuddy is under active development. It is not on the Chrome Web Store yet, so you load it unpacked from the repository.

It works, and it is rough in places. But X changes its site a lot, so a selector breaks now and then and I fix it.

Install

You need Chrome 111 or newer and a local OpenAI-compatible server.

  1. Clone the repository.
  2. Open chrome://extensions and turn on Developer mode.
  3. Click Load unpacked and pick the folder you cloned.
  4. Open https://x.com.

Settings points Magic Reply at http://localhost:8080 by default. Change the URL, port and model there if your server uses something else.

I built it to help me grow on itch and keep my feed aimed at what I want to see. I will use it actively when I switch gears to marketing. Right now I am working on getting a solid foundation set back up after years away.

I wrote about the switch from SkyBuddy in A Few Repos at a Time. The old extension is on its project page, kept as the archive.

Get XBuddy on GitHub →