Skip to content

Commit

Permalink
Drop prefix filter and words filter
Browse files Browse the repository at this point in the history
There is a high possibility that it will make YouTube work very slowly.
  • Loading branch information
akku1139 authored Dec 27, 2024
1 parent 565b865 commit 8755fab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def make(filename, comment, func):

make("channels.txt", "Spammer channels", lambda line: ("a[href=\"/" + encodeURI(line) + "\"]:upward(6)"))

make("channels-prefix.txt", "spammer channels (with prefix)", lambda line: ("a[href^=\"/@" + encodeURI(line) + "\"]:upward(6)"))
#make("channels-prefix.txt", "spammer channels (with prefix)", lambda line: ("a[href^=\"/@" + encodeURI(line) + "\"]:upward(6)"))

def make_reply_filter(line):
if line not in channel_id:
Expand Down Expand Up @@ -94,7 +94,7 @@ def make_id_filter(line):
logger = logging.getLogger("id")
make("channels-id.txt", "Spammer channels (2)", make_id_filter)

make("words.txt", "Spam words", lambda line: ("#content-text>span:has-text(/" + line + "/):upward(5)"))
#make("words.txt", "Spam words", lambda line: ("#content-text>span:has-text(/" + line + "/):upward(5)"))

make("templates.txt", "Template comments", lambda line: ("#content-text>span:has-text(\"" + line + "\"):upward(5)"))

Expand Down

0 comments on commit 8755fab

Please sign in to comment.