Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

YouTube Comment Cleaner

Hides the stupid comments on YouTube according to some basic rules.

This script is similar to the "YouTube comment snob" plugin ( https://addons.mozilla.org/en-US/firefox/addon/... ) but implemented as a greasemonkey script.

Currently it looks for:

  • omg, lol[z], rotfl, lmfao, hahaha (or variations thereof)
  • All capital letters
  • All lowercase letters
  • One word replies
  • i or u instead of I or you
  • Repeated characters e.g. !!!!!!
  • A few naughty words (just because they're good for filtering rather than me finding them offensive).
  • Smilies

If it finds any of these, then the comment is hidden, although you can show the comment again if you want. These simple rules work very well in cleaning up the comments.

At the top of the script is a list of regular expressions and reasons you can add to or edit. Please post any useful additions here...




May 13, 2008
Andrew Nelis Script's author

I've noticed a bug in this - as soon as you start paging the comments using the "Pages: 1,2,3 ... Next" links, then the newly loaded comments don't get cleaned.

I'm working on a work-around for this.

 
May 11, 2008
Andrew Nelis Script's author

There's no messaging system on this site. If you want to contact me, you can email me (andrew.nelis@gmail.com).

 
May 11, 2008
Joe Simmons Scriptwright

Yeah that's a good idea because even though someone may not [lets say] capitalize their i's or the first letter of their sentence, they might have something useful to say. So, sounds good, I'd like to try it out when you get it finished. Is there a messaging system on this site besides comments?

 
May 11, 2008
Andrew Nelis Script's author

Thanks for the feedback Joe.

Yes, I was wondering whether it was too liberal in removing comments.

Correcting them, rather than hiding them away is a good idea, I may have a try and see how that works. Have also thought about scoring each of the items and using a threshold instead of just hiding something for having a single thing wrong with it.

 
May 11, 2008
Joe Simmons Scriptwright

This clears most of all comments on a video, mainly because more than half of most comments are all lowercase or don't start with a capital.
I like the script, but I just don't like how it functions.
Rather, I think you should make a script that actually replaces the naughty words, capitalization problems, all lowercase letters, and all capital letters with the appropriate thing.

-All capital/lowercase letters: suggestion: Force them lowercase then force the first character to be capitalized. Making it realize and capitalize first letters after periods would be great too.

i or u: suggestion: Just replace them with capitals.

Repetitive characters: suggestion: Remove excess characters.

And just replace naughty words and possibly just delete smilies, or give an option to have them omitted on a page.

You could comment on this script if you were logged in.