Judol Slayer.
JavaScript
Remove spam 'judol' comments from YouTube videos
Last updated: 5 days ago
Overview
Judol Slayer is a tool to automatically scan and remove spam βjudolβ comments from YouTube videos.
It uses the YouTube Data API v3 and requires Google OAuth credentials to work.
Installation
πΊ Technical explanation video
Step 1: Install Node.js
Visit https://nodejs.org/
Download the LTS version (recommended)
Install as usual (Next β Next β Finish)
Verify installation:
node -v npm -v
Step 2: Install Visual Studio Code
- Visit https://code.visualstudio.com/
- Download and install VS Code
- Open the application
Step 3: Create a Project Folder
- In VS Code: File β Open Folder β create a new folder (e.g.,
YouTubeSpamRemover
) - Inside it, create a file named
index.js
Step 4: Enable YouTube Data API & Create OAuth Client ID
- Go to Google Cloud Console
- Create a new project (or select an existing one)
- Enable YouTube Data API v3:
- API & Services β Library
- Search for YouTube Data API v3 β Enable
- Create OAuth credentials:
- API & Services β Credentials
- Create Credentials β OAuth client ID
- Choose Desktop App
- Download
credentials.json
and save it in your project folder
Step 5: Open Terminal in VS Code
npm init -y
Step 6: Install Required Libraries
npm install googleapis dotenv
Step 7: Prepare Project Files
Your project folder should now contain:
credentials.json
(from Google Cloud Console, rename if necessary).env
file with the following content:YOUTUBE_CHANNEL_ID=your_channel_id
[!IMPORTANT]
Find your channel ID here: YouTube Advanced Settings
Step 8: Add the Code
Paste the full JavaScript code into index.js
.
Step 9: Run the Program
node index.js
- The terminal will display a URL β open it in your browser
- Log in with your YouTube account and grant access
- Copy the code from the redirect URL
- Paste it into the terminal
- The program will scan and delete spam comments automatically π
Notes
- On the first run, a
token.json
file will be created. As long as it exists and is valid, you wonβt need to log in again. - YouTube Data API v3 has a daily quota of 10,000 units. Once exhausted, the program cannot delete comments until the next day.