Hacker News new | ask | show | jobs
by yomismoaqui 520 days ago
I made was tired of reading political crap from some accounts I follow and created a Chrome extension to filter them out.

Just define topics you don't want to read about and the AI filter will hide them from your feed.

Technically is just passing the text to Gemini Flash 1.5 with a simple prompt to detect if the tweet is from a forbidden topic.

You can try it here: https://twitter.cercaapp.com

2 comments

You saved me from having to make this. Thank you!

Is the source available? Can this be ported to FireFox?

No source available but the JS code for the extension should be readable on your extensions dir. I'm using MutationObserver to check for tweets appearing and then extract their texts and send them to the server.

Server side code is just some Go to handle calls to Gemini Flash, auth, tracking quota usage...

To be honest even the prompt used is quite simple, the fun part has been optimizing it using promptfoo for running the evals.

There's a surprising number of extensions like this (see https://github.com/thomasj02/AiFilter, https://unbaited.danielpetho.com/) although it seems most are Chrome-exclusive
Oh cool - its like anti-virus for your brain. AI firewall! haha