A powerful tool for mass blocking TikTok users with support for both Chrome extensions and Tampermonkey scripts. Features enhanced private account detection, real-time status updates, and robust error handling. Now Available on Chrome Web Store!!
- Mass Blocking: Upload text files with usernames and automatically block them all
- Private Account Support: Automatically detects and handles private TikTok accounts
- Real-time Status Updates: Live progress feedback during blocking operations
- Enhanced Error Handling: Gracefully handles deleted, banned, or inaccessible accounts
- Block List Management: Add users, download blocklists, and upload existing lists
- 3-Step Blocking Process: Reliable blocking sequence that works with TikTok's current interface
- Account Accessibility Detection: Smart detection of accessible vs. inaccessible accounts
- Multiple URL Pattern Support: Handles various TikTok URL formats
- Comprehensive Logging: Detailed console output for debugging and monitoring
- Queue Management: Robust task queue system for processing large lists
- Cross-browser Compatibility: Tampermonkey version works in Chrome, Firefox, Safari, Edge, and more
tiktok-autoblocker/
βββ chrome-extension/ # Chrome extension version
β βββ manifest.json # Extension configuration
β βββ content.js # Content script for TikTok pages
β βββ popup.html # Popup interface
β βββ popup.js # Popup logic
β βββ background.js # Background service worker
β βββ icons/ # Extension icons
β βββ INSTALL.md # Installation guide
βββ tampermonkey/ # Tampermonkey script version
β βββ script.js # Main Tampermonkey script
β βββ test-blocklist.txt # Test blocklist file
βββ README.md # This file
βββ test-blocklist.txt # Sample blocklist for testing
- Pros: Modern UI, integrated popup, persistent storage, available on Chrome Web Store
- Cons: Requires Chrome browser
- Visit TikTok AutoBlocker on Chrome Web Store
- Click "Add to Chrome"
- Confirm the installation
- The extension will appear in your browser toolbar
-
Download the extension files
- Clone or download this repository
- Navigate to the
chrome-extensionfolder
-
Create required icons
- Convert
icons/icon.svgto PNG format - Create
icon16.png(16x16),icon48.png(48x48), andicon128.png(128x128) - Place them in the
icons/folder
- Convert
-
Install in Chrome
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the
chrome-extensionfolder - The extension should now appear in your extensions list
- Open Chrome and navigate to
- Pros: Works in any browser with Tampermonkey, lightweight
- Cons: Requires Tampermonkey extension
Before you can use the TikTok AutoBlocker script, you must install Tampermonkey. Tampermonkey is a popular userscript manager that's available as a browser extension.
Installing Tampermonkey:
Chrome:
- Visit Chrome Web Store - Tampermonkey
- Click "Add to Chrome"
- Confirm the installation
Firefox:
- Visit Firefox Add-ons - Tampermonkey
- Click "Add to Firefox"
- Confirm the installation
Other Browsers:
- Search for "Tampermonkey" in your browser's extension store
- Follow the installation instructions for your specific browser
Once Tampermonkey is installed, follow these steps:
-
Open Tampermonkey Dashboard
- Click the Tampermonkey icon in your browser toolbar
- Select "Dashboard" or "Create a new script"
-
Create New Script
- Click "Create a new script" in the Tampermonkey dashboard
- This will open the script editor
-
Copy the Script
- Open the file
tampermonkey/script.jsfrom this repository - Copy the entire contents of the file
- Open the file
-
Paste and Save
- Paste the copied script into the Tampermonkey script editor
- Press
Ctrl + S(orCmd + Son Mac) to save the script - The script should now be enabled and ready to use
Your blocklist text file should contain usernames, one per line:
@kimkardashian
@diddy
@jlo
@username1
@username2- Navigate to any TikTok user's profile page
- Click the TikTok AutoBlocker extension icon in your browser toolbar
- Click "Add Current User to Block List" to add them to your blocklist
- Click the extension icon
- Click "Download Block List" to download your current blocklist as a .txt file
- Create a text file with one username per line (e.g.,
@username1,@username2) - Click the extension icon
- Click "Upload Block List (.txt)" and select your file
- The extension will automatically start blocking all users in the list
- Navigate to any TikTok user's profile page
- Look for the "TikTok AutoBlocker" card in the top-right corner of the page
- Click "Add User to Block List" to add the current user to your blocklist
- On any TikTok page, find the TikTok AutoBlocker card
- Click "Download Block List" to download your current blocklist as a .txt file
- The file will be saved to your default downloads folder
-
Create a blocklist file
-
Create a text file with one username per line
-
Example format:
@kimkardashian @diddy @jlo @username1 @username2
-
-
Upload and process
- Navigate to any TikTok page
- In the TikTok AutoBlocker card, click "Upload Block List (.txt)"
- Select your text file
- The script will automatically start blocking all users in the list
- Create a blocklist: Add usernames to a text file
- Upload the file: Use the upload feature in either version
- Monitor progress: Watch real-time status updates
- Download results: Save your blocklist for future use
Chrome Extension:
- Manifest V3: Uses the latest Chrome extension manifest version
- Content Script: Runs on TikTok pages to handle blocking operations
- Popup Interface: Modern UI for user interactions
- Background Service Worker: Handles extension lifecycle and background tasks
- Chrome Storage: Uses chrome.storage.local for data persistence
Tampermonkey Script:
- Cross-browser Compatibility: Works in Chrome, Firefox, Safari, Edge, and more
- Local Storage: Uses localStorage for data persistence
- Content Script: Runs directly on TikTok pages
- UI Integration: Integrates with TikTok's page layout
Both versions use a sophisticated 3-step blocking sequence:
- Click "More" button (
[data-e2e="user-more"]) - Click "Block" option (
div[role="button"][aria-label="Block"]) - Confirm blocking (
button[data-e2e="block-popup-block-btn"], button[class*="Button-StyledButtonBlock"])
Advanced detection for private accounts:
- DOM element indicators (
[data-e2e="private-account"]) - Text content analysis ("This account is private")
- User subtitle detection ("Private")
- Multiple fallback strategies
- Inaccessible accounts: Automatically skipped with logging
- Failed blocking: Added to blocklist as fallback
- Network issues: Retry mechanisms and graceful degradation
- Queue management: Continues processing even if some accounts fail
- @N/A username protection: Prevents infinite refresh loops when encountering invalid usernames
Both versions handle various TikTok URL formats:
/@username(with @ symbol)/username(without @ symbol)/user/username(alternative format)- Fallback for any TikTok page
Extension not loading:
- Make sure all required files are present
- Check that the
manifest.jsonfile is valid JSON - Ensure icons are in PNG format and the correct sizes
- Check Chrome's extension page for error messages
Extension not working on TikTok:
- Make sure you're on a TikTok page (tiktok.com domain)
- Check the browser console for any error messages
- Try refreshing the TikTok page
- Ensure the extension has the necessary permissions
Blocking not working:
- Ensure you're on a TikTok profile page
- Check console logs for detailed error information
- Try the debug features to analyze page structure
Script not appearing on TikTok pages:
- Check if Tampermonkey is installed and enabled
- Verify the script is enabled in Tampermonkey dashboard
- Check browser console for error messages
- Try refreshing the TikTok page
Blocking not working:
- Ensure you're on a TikTok profile page
- Check console logs for detailed error information
- Look for the red test box that appears for 5 seconds
- Verify the UI card appears in the top-right corner
Script not loading:
- Check Tampermonkey dashboard for script errors
- Verify the script is saved and enabled
- Try reinstalling the script
- Check browser console for JavaScript errors
Both versions include comprehensive debugging:
- Page structure analysis: Analyze current page elements
- Step-by-step blocking tests: Test the blocking process manually
- Debug log export: Export detailed logs to file
- Real-time status monitoring: Live progress feedback
- Clear stuck tasks: Reset the blocking queue if needed
If you're still having issues:
- Check the browser console for error messages
- Review the console logs for detailed error information
- Try the debug features to analyze page structure
- Open an issue on the GitHub repository with detailed information
- β Enhanced private account detection
- β Improved 3-step blocking sequence
- β Better error handling and accessibility checks
- β Multiple URL pattern support
- β Comprehensive logging and debugging
- β Robust queue management
- β Real-time status updates
- β @N/A username protection to prevent infinite refresh loops
- β Updated block button selectors for improved reliability
- β Private account support
- β Real-time status updates
- β Enhanced error handling
- β Modern UI design
- β Basic blocking functionality
- β File upload/download
- β Simple UI
- Local Storage: All data is stored locally in your browser
- No External Servers: Neither version sends data to any external servers
- Open Source: Full source code is available for review
- Privacy Focused: No tracking or data collection
This project is licensed under the MIT License.
This tool is intended for personal use and should be used responsibly. The creators are not responsible for any misuse or consequences arising from the use of this tool. Please respect TikTok's terms of service and use this tool ethically.
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
For support, please:
- Check the troubleshooting section above
- Review the console logs for error messages
- Open an issue on the GitHub repository with detailed information