Skip to content

A userscript for Greasemonkey and Tampermonkey to clean out stupid comments like "first" and "I'm early"

Notifications You must be signed in to change notification settings

TomONeill/youtube-comment-filter-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Comment Filter Script

Script that filters unwanted comments.
Enjoy.

Version 2.4

INSTALL

Screenshots


Description

This repository includes a userscript for Greasemonkey and Tampermonkey that tries to find and remove stupid comments like "first" and "I'm early".

How it works

The script does a very simple job by comparing each comment with hardcoded commonly used comments (or commonly used word combinations). It checks every now and then (configurable in the code) for new comments (which means that when you scroll down it will look for comments which weren't there before or after clicking the "Load more comments" button) and filters the annoying ones out.

Turn off certain 'rules'

You can simply turn some of the rules off if you don't like what they are doing. For example if you don't want first comments to be filtered out, simply click the script and find (somewhere above) REMOVE_FIRST. Change true to false and you are good to go :) Available rules with their default values (everything true by default):

const MIN_COMMENT_LENGTH = 5;          // Removes any comment that has less than # characters
const MIN_COMMENT_WORDS = 2;           // Removes any comment that has less than # words
const MIN_COMMENT_WORDS_FILTER = 3;    // Removes any comment that has less than # characters words in combination with any (non-aggressive) filter

const REMOVE_FIRST = true;             // Removes any comment with suspected combinations of "first"
const REMOVE_EARLY = true;             // Removes any comment with suspected combinations of "early"
const REMOVE_EARLY_AGGRESSIVE = true;  // Removes any comment with "early" without looking at MIN_COMMENT_WORDS_FILTER
const REMOVE_CRINGE_AGGRESSIVE = true; // Removes any comment with "cringe" without looking at MIN_COMMENT_WORDS_FILTER
const REMOVE_SELF_LIKES = true;        // Removes any comment which has suspicion of asking for likes
const REMOVE_SELF_PROMO = true;        // Removes any comment which has suspicion of asking for subscribers
const REMOVE_ATTENTION_SEEKERS = true; // Removes any comment which has suspicion of seeking attention/is unrelated to the video

const FLAIR_INSTEAD_OF_REMOVE = true;   // Instead of removing comments, show a "spam" flair

New: Ability to block users by their url (right click on user name and select "Copy url", paste it in this list within quotes)

const BLOCKED_USER_URLS = [
	// EXAMPLE: "https://www.youtube.com/channel/abcdefghijklmnop"
	""
];

Changelog

View changelog

Donate

If you like my work so much you feel like doing something nice for me, a complete stranger of the internet, you can.
Donate here.

About

A userscript for Greasemonkey and Tampermonkey to clean out stupid comments like "first" and "I'm early"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published