The X Content Filter is a browser extension that analyzes and filters content on X.com based on configured topics. It uses the Groq API to perform the analysis.
- Clone the repository or download the source code.
- Open your browser's extension management page (e.g.,
chrome://extensions/
for Chrome). - Enable "Developer mode".
- Click "Load unpacked" and select the source code directory.
- The extension automatically analyzes and hides posts on X.com that exceed the configured thresholds using the Groq API.
- To reset the cache, run
resetCache()
in the browser console.
Topics and thresholds can be modified in content.js
.
const topicsConfig = [
{"topic": "politics", "description": "posts about political subjects", "threshold": 0.8},
{"topic": "negativity", "description": "posts with overly negative sentiment", "threshold": 0.9}
];
manifest.json
: Extension manifest file.content.js
: Main script for analyzing and filtering posts.