Add comment & live-chat scam/spam filtering — v1.9.0 (F2) #23
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/23/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds comment & live-chat scam/spam filtering (roadmap F2), bumping the extension to v1.9.0.
A new Comment & chat filtering section (Settings → Focus & Limits) hides comments whose text or author matches a filter. Under the master Filter scam & spam comments toggle:
free crypto,Elon Musk giveaway), fake investment "advisors" (investment advisor,made me rich), and off-platform contact lures (text me on Telegram,t.me/,whatsapp me)./regex/) you already manage in the Dashboard. No second list to maintain.How
defaults.js(FY_MATCHES_COMMENT_FILTERS,FY_COMMENT_SCAM_PRESET) so identical logic runs in both frames.applyCommentFilters()incontent.jsiteratesytd-comment-thread-renderer, reads the top comment's#content-text+#author-text, and hides the whole thread via the existing managed-hide mechanism.livechat.jsis registered for*://www.youtube.com/live_chat*withall_frames: true; it reads the same settings fromchrome.storage.localand filtersyt-live-chat-text-message-rendererrows.livechat.js.Testing
/regex/, broken-regex safety, preset hits, no over-match on normal text).hideLiveChatdefaults totrue, so chat filtering only applies for users who re-enable chat.🤖 Generated with Claude Code