Skip to content

Commit 6df29d0

Browse files
committed
feat(1.7.2): add more checks
yt: invisible characters fb: various websites and messages
1 parent f0319cb commit 6df29d0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

removebots.user.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Hide Bot Comments
33
// @namespace https://theusaf.org
4-
// @version 1.7.0
4+
// @version 1.7.2
55
// @description Removes comments made by bots on websites such as YouTube.
66
// @author theusaf
77
// @match https://www.youtube.com/**
@@ -26,7 +26,7 @@ const SITES = Object.freeze({
2626
// word + link
2727
/^(\s*@.+)?\s*(This|[Ww]ow!?)\s*https:\/\/[^\s]+/,
2828
// phrase + line + link
29-
/(Finally it's here\.?|deceives.*subscribers:\.{1,}|[\u0401\u0451\u0410-\u044f,.:]{15,}.*|EXPOSED:|IS FREAK!|IS GARBAGE!{1,}|shocking truth.*|his subscribers.*|will stop watching.*|yes\.?|THE GAME.*|After watching this video you will never love.*)(\n|\s)(\n|.)*https:\/\/[^\s]+/,
29+
/(Finally it's here\.?|deceives.*subscribers:\.{1,}|you .*will never love|[\u0401\u0451\u0410-\u044f,.:]{15,}.*|EXPOSED:|IS FREAK!|IS GARBAGE!{1,}|shocking truth.*|his subscribers.*|will stop watching.*|yes\.?|THE GAME.*|After watching this video you will never love.*)(\n|\s)(\n|.)*https:\/\/[^\s]+/,
3030
// link + random "word"
3131
/^(\s*@.+)?\s*https:\/\/[^\s]+\s*[a-z]+\s*$/,
3232
// link with a star at the end??
@@ -47,6 +47,8 @@ const SITES = Object.freeze({
4747
/[ϛƐƖΛɹԀ˥ʞſפƎƆʎʍʌʇɹɯʞɾɥƃɟǝɔɐ]/,
4848
// just a single, weird character
4949
/^.$/,
50+
// invisible characters
51+
/[\u200e]/u
5052
(text) => {
5153
const charSets = [
5254
{
@@ -75,7 +77,9 @@ const SITES = Object.freeze({
7577
FACEBOOK_EMBED: {
7678
checks: [
7779
// "Easy cash" scams
78-
/easy cash|work online/
80+
/easy cash|work online|real passive income/,
81+
// Scammy manga sites
82+
/(must check this out|read more:|300 or more chapters|\*{1,} SPOILER ALERT \*{1,}|FREE (TO|FOR) READ).*(\n\s)*(https?:\/\/[^\s]+|\n.\s])+/
7983
],
8084
options: {
8185
initialScan: () => {

0 commit comments

Comments
 (0)