This Chrome extension reads YouTube comments on shorts and watch pages. It identifies and blocks spam comments based on a predefined list of keywords and an optional AI-powered analysis. Users can customize the blocked keywords and whitelist specific words.
The extension requires the following permissions:
- scripting
- tabs
- activeTab
- storage
The extension requires access to the following hosts:
- *://*.youtube.com/shorts/*
- *://*.youtube.com/watch*
The extension uses the following content scripts:
- content.js
- Download the extension files.
- Open Chrome and go to
chrome://extensions
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the directory where you downloaded the extension files.
- Navigate to a YouTube short or watch page.
- The extension automatically identifies and blocks potential spam comments based on predefined keywords and AI analysis.
- Click the extension icon to open the popup.
- In the popup, you can:
- View blocked comments.
- Remove keywords from the blocklist.
- Whitelist keywords to prevent them from being blocked.
- Manage the blocklist and whitelist.
- Toggle the AI-powered analysis.
- Choose to remove spam comments entirely or just flag them.
manifest.json
: The extension's manifest file.content.js
: The extension's content script.popup.html
: The extension's popup HTML file.popup.js
: The extension's popup JavaScript file.comments.js
: The extension's comments JavaScript file.