Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
23edf84
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 8, 2019
dd1060f
Update README.md
MoutatsuLai Oct 8, 2019
706e704
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 8, 2019
e12e8ca
Update README.md
MoutatsuLai Oct 8, 2019
b281a39
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 8, 2019
df4dea4
Update README.md
MoutatsuLai Oct 8, 2019
eff2920
Update README.md
MoutatsuLai Oct 8, 2019
b4b9525
Update README.md
MoutatsuLai Oct 8, 2019
2137321
Update README.md
MoutatsuLai Oct 8, 2019
55b9fa7
Update README.md
MoutatsuLai Oct 8, 2019
5de7174
Youtube五毛留言過濾器
MoutatsuLai Oct 8, 2019
da09003
五毛過濾器截圖
MoutatsuLai Oct 8, 2019
5478bda
Update README.md
MoutatsuLai Oct 8, 2019
43117fd
Add files via upload
MoutatsuLai Oct 8, 2019
cab69f1
Delete 截圖2019-10-08_001.jpg
MoutatsuLai Oct 8, 2019
c77f174
Add files via upload
MoutatsuLai Oct 8, 2019
3f9ba4e
Delete 截圖2019-10-08_001.jpg
MoutatsuLai Oct 8, 2019
dadc23f
Add files via upload
MoutatsuLai Oct 8, 2019
e16a097
Update README.md
MoutatsuLai Oct 8, 2019
74ac0a1
更新五毛清單
MoutatsuLai Oct 8, 2019
b25c4e0
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 11, 2019
ddc0f3b
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 11, 2019
3c2339a
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 11, 2019
b2aed74
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 11, 2019
465cd12
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 11, 2019
e336e4e
Update README.md
MoutatsuLai Oct 11, 2019
9621dab
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 11, 2019
3358b99
Add files via upload
MoutatsuLai Oct 12, 2019
9ffaa1a
Update README.md
MoutatsuLai Oct 12, 2019
963414d
Update README.md
MoutatsuLai Oct 12, 2019
75faa03
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 12, 2019
5b5c9af
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 12, 2019
be769dd
Update yt-comment-filter-latest.user.js
MoutatsuLai Oct 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 47 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,61 @@
# YouTube Comment Filter Script
Script that filters unwanted comments.
# YouTube Comment Filter Script 2.4-分叉成五毛評論過濾器
原作者是TomONeill開發的留言過濾器,本人只是改寫針對五毛特化而已
<BR/>
Enjoy.
簡言之,還我清淨的Youtube。
<BR/><BR/>
Version <strong>2.4</strong>
# 功能描述
針對Youyube上惱人的五毛與屁孩訊息做過濾,可實現過濾字詞、屏蔽帳號等功能,可自行讀說明進行添加與設定規則。
五毛名單來自黄智贤的夜问、CCTV等五毛熱門影片的幾千則留言名單。

# 截圖
<IMG SRC="https://github.com/MoutatsuLai/youtube-comment-filter-script/blob/master/screenshots/2019-10-08_001.jpg?raw=true" width="500" height="700" />
<BR />
<IMG SRC="https://github.com/MoutatsuLai/youtube-comment-filter-script/blob/master/screenshots/1.gif" width="442" height="473" />

<A HREF="https://github.com/TomONeill/youtube-comment-filter-script/raw/master/yt-comment-filter-latest.user.js">INSTALL</A>
# 安裝步驟1
Chrome請安裝附加元件<A HREF="https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=zh-TW&utm_source=chrome-ntp-launcher">Tampermonkey</A><BR/>
Firefox請安裝<A HREF="https://addons.mozilla.org/zh-TW/firefox/addon/greasemonkey/">Greasemonkey</A>
# 安裝步驟2 YouTube Comment Filter Script-五毛評論過濾器
<A HREF="https://github.com/MoutatsuLai/youtube-comment-filter-script/raw/master/yt-comment-filter-latest.user.js">點我安裝</A>

# Screenshots
<IMG SRC="https://raw.githubusercontent.com/TomONeill/youtube-comment-filter-script/master/screenshots/preview.png" width="600" height="100" />
<BR />
<IMG SRC="https://raw.githubusercontent.com/TomONeill/youtube-comment-filter-script/master/screenshots/preview_2.png" width="450" height="200" />

# 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 <i>first</i> comments to be filtered out, simply click the script and find (somewhere above) <i>REMOVE_FIRST</i>. 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; // true會淡化處理五毛留言,false會直接過濾處理五毛留言,強烈建議在確認效果後使用false

const FLAIR_INSTEAD_OF_REMOVE = true; // Instead of removing comments, show a "spam" flair
const MIN_COMMENT_LENGTH = 0;// 刪除少於#個字符的任何回應
const MIN_COMMENT_WORDS = 0; //刪除少於#個單詞的任何回應
const MIN_COMMENT_WORDS_FILTER = 100; //刪除任何少於#個字符的回應,並與任何(非攻擊性)過濾器結合使用

const REMOVE_FIRST = true; //刪除帶有“ first”組合的任何註釋
const REMOVE_EARLY = true; //刪除所有帶有“early”組合的評論
const REMOVE_EARLY_AGGRESSIVE = false; //刪除所有帶有“early”的評論,而無需查看MIN_COMMENT_WORDS_FILTER
const REMOVE_CRINGE_AGGRESSIVE = false; //刪除所有帶有“CRINGE”的評論,而無需查看MIN_COMMENT_WORDS_FILTER
const REMOVE_SELF_LIKES = false; //刪除任何懷疑喜歡的評論
const REMOVE_SELF_PROMO = false; //刪除任何懷疑要求訂閱者的評論
const REMOVE_ATTENTION_SEEKERS = false; //刪除所有可能引起關注或與視頻無關的評論

*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"
""
// 可以自行添加網址,右鍵E可以複製連結,如下這些是五毛個人頁面。
"https://www.youtube.com/channel/UC_9MEREuQIYD50JYM1ODkyQ",
"https://www.youtube.com/channel/UCoxz3ojUv_LtKg9szPcOWbA",
"https://www.youtube.com/channel/UChtHOF58i5mAuiQbYK9t8Bw",
"https://www.youtube.com/channel/UCfdX80qUCSS0vmVA8-Yiv7g",
"https://www.youtube.com/channel/UCH4tTq1pvv8uBzeml4krf3A",
"https://www.youtube.com/channel/UCOzgx6RTUq4WUCj6VTK1jyg"
];

# Changelog
<A HREF="https://raw.githubusercontent.com/TomONeill/youtube-comment-filter-script/master/changelog.txt">View changelog</A>

# Donate

# 更新記錄
<A HREF="https://raw.githubusercontent.com/MoutatsuLai/youtube-comment-filter-script/master/changelog.txt">View changelog</A>
# 我不是原作者,喜歡本應用,麻煩協助提供我五毛帳號
[我是五毛帳號收集區](https://github.com/TomONeill/youtube-comment-filter-script/pull/2)
<BR/>
<IMG SRC="https://github.com/MoutatsuLai/youtube-comment-filter-script/blob/master/screenshots/5m.gif?raw=true" width="565" height="368" />
<BR/>
# 贊助原作者TomONeill
If you like my work so much you feel like doing something nice for me, a complete stranger of the internet, you can.<BR />
<A HREF="https://www.paypal.me/TomONeill">Donate here</A>.
Binary file added screenshots/1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2019-10-08_001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/5m.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading