amahteru/x-comment-blocker
About
A browser extension for blocking specific comments and usernames on X.
Productivity & AutomationMeasured star growth
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_en.md
OriginalX(Twitter) Comment Blocker
简体中文 | English
A browser extension for automatically blocking spam and traffic-driving bots in X (Twitter) comment sections, supporting Chrome, Edge, and Firefox.
Features
- Cloud Wordlist: Automatically synchronizes and periodically updates the public spam blocking wordlist.
- Custom Wordlist: Supports manually adding and editing blocked keywords, as well as importing and exporting local files.
- Advanced Filtering:
- Filter by username containing blocked keywords.
- Option to apply filtering exclusively to tweet comment sections.
- Filter comments by special characters or emojis.
- Support blocking comments containing Grok share cards.
- Whitelist Mechanism: Supports adding specific users to a whitelist; comments from whitelisted users will never be blocked.
- Full Data Backup: One-click backup or restoration of all extension data, including settings toggles, custom wordlists, auto-block terms, whitelists, and block history.
- Quick Action: Select text on a web page and right-click to quickly add it to your custom blocklist.
- Block Feature:
- Manual Block: Block accounts with one click directly from the interception history.
- Batch Block: Add all historical users in the interception log to the block queue with one click.
- Auto Block: Enable auto-block for specific keywords (custom or cloud); authors of comments matching these terms will be blocked automatically.
- Stats & History: Records the count of blocked comments and allows viewing the last 5,000 intercepted comments.
Installation
1. Install from Chrome Web Store (For Chrome, Edge, and other Chromium-based browsers)
You can get the latest version from the Chrome Web Store: X(Twitter) Comment Blocker - Chrome Web Store
2. Install from Firefox Add-ons (For Firefox Desktop and Android)
You can get the latest version from Firefox Add-ons: X(Twitter) Comment Blocker - Firefox Add-ons
3. Manual Installation in Chromium Browsers
For Chromium-based browsers (such as Chrome, Edge):
- Download or clone this repository code.
- Open the extension management page:
chrome://extensions/oredge://extensions/. - Enable Developer mode in the top-right corner.
- Click Load unpacked and select the downloaded
x-comment-blockerfolder.
4. Userscript Version (Tampermonkey / Greasemonkey)
A lightweight userscript version suitable for mobile browsers (such as Safari, Via) or extension-free environments: X(Twitter) Comment Blocker Lite - GitHub
Usage
- Global Control: Click the extension icon and use the toggle switch in the top-right corner to enable or disable the extension.
- Full Data Backup: Click the corresponding icon at the bottom of the panel to export or import a JSON backup file containing all configuration and history data.
- Wordlist Management: Manage custom wordlists in the popup interface, where you can add, delete, import, or export.
- Cloud Sync: Check "Cloud Wordlist" to enable auto-updates, or click the "Sync" button to immediately fetch the latest list.
- Whitelist Management: Click the whitelist icon in the upper-right corner of the "Block History" interface to add or remove whitelisted users.
- Auto-Block Configuration: Click the "Edit Auto-Block Words" icon in the custom or cloud wordlist area to specify which keywords immediately trigger account blocking.
- Quick Add: When encountering a word you want to block while browsing, select it and right-click to add it.
- Interception Log & Manual Block: Click "View" in the statistics area to browse recent block records. You can also manually block accounts with one click in the records.
Privacy
All filtering rules and data are processed locally in the browser. No account information, browsing history, or custom wordlist contents are collected. Network requests are only used to fetch the public cloud wordlist and to call official X APIs when you actively use the "Block" feature.
License
This project is open-sourced under the MIT License.
Explore related projects
Loading…