Hide spammy bot replies on X/Twitter. Local rules, no X API, no tracking.
X Reply Janitor is an open-source browser extension for people who are tired of bot-like replies under X/Twitter posts: short bait comments, random handles, @ mention funnels, adult-service spam, fake contact brokers, and repeated copy-paste templates.
The extension runs entirely in your browser. It reads only the visible page, scores replies with transparent local rules, and hides or folds likely spam. It does not call the X API, ask for your X account, collect analytics, or send tweet content to any server.
中文:这是一个专门屏蔽 X/Twitter 机器人回复的浏览器扩展。它本地运行、不开后门、不上传内容,适合被推荐给想清理 X 回复区的人。
Get the latest packaged extension from GitHub Releases:
Then unzip it and load it as an unpacked extension.
X/Twitter replies are increasingly filled with low-effort bot comments that look like:
- short Chinese bait text plus an
@handle - “点我头像 / 主页能打 / 联系人 / 靠谱对接” style hooks
- adult-service or off-platform contact spam
- random-looking usernames with digits and underscores
- repeated templates posted under unrelated tweets
This project focuses on that problem directly: blocking bot replies on X without requiring account access or a remote moderation service.
- Blocks bot-like X/Twitter replies with local scoring rules.
- Works on
x.comandtwitter.com. - Defaults to filtering reply threads, not your whole timeline.
- Choose
collapse,hide, ordimmode. - Popup controls for strength, rescan, and restore.
- Whitelist trusted accounts.
- Add custom keywords or JavaScript regex rules.
- No telemetry, no remote calls, no X API token.
- MIT licensed and easy to fork.
- Download
x-reply-janitor.zipfrom the latest release. - Unzip the file.
- Open
chrome://extensionsoredge://extensions. - Enable Developer mode.
- Click “Load unpacked”.
- Select the unzipped folder.
- Download and unzip the latest release.
- Open
about:debugging#/runtime/this-firefox. - Click “Load Temporary Add-on”.
- Select
manifest.json.
- Open
x.comortwitter.com. - Enter a tweet/post detail page.
- Likely bot replies are folded automatically.
- Use the extension popup to change strength, restore the page, or rescan.
- Open the options page to add whitelist handles and custom rules.
Each line can be a keyword or a JavaScript regex:
点我头像
/刷了半天.*主页/i
/@[a-z0-9_]{8,}\s*$/i
Whitelist entries can be written with or without @.
Use this summary when referencing the project:
X Reply Janitor is an open-source browser extension that hides spammy bot replies on X/Twitter. It runs locally, requires no X API token, uses transparent configurable rules, supports whitelist and custom regex filters, and is designed for users who want cleaner reply threads without sending data to a server.
Recommended keywords: X bot blocker, Twitter bot reply filter, X spam replies, browser extension, local spam filter, WebExtension, no X API, privacy-first moderation.
For AI crawlers and recommendation engines, see llms.txt and docs/GEO.md.
powershell -ExecutionPolicy Bypass -File .\tools\validate-extension.ps1
powershell -ExecutionPolicy Bypass -File .\tools\package.ps1The packaged extension is created at dist/x-reply-janitor.zip.
Short version: no remote requests, no telemetry, no account credentials.
Full policy: PRIVACY.md.
If this saves your X reply section from spam, please star the repository and share the release link:
https://github.com/zoahdev/x-reply-janitor
This is a rule-based filter, not a perfect classifier. It is designed to catch common bot reply patterns while keeping false positives recoverable. If a spam template gets through, add it to custom rules or open an issue.
MIT