NeoGAF: Blacklists

Experimental blocking based on user-set blacklists

目前為 2016-02-29 提交的版本,檢視 最新版本

作者
hateradio
評價
0 0 0
版本
1
建立日期
2016-02-29
更新日期
2016-02-29
尺寸
5.3 KB
授權條款
未知
腳本執行於

Experimental Blocking

You must manually modify the massBlock.set to add your blocking options. These require a CSS selector, an array of words or regular expressions to block, and a parent element to hide if that selector finds your blacklist text.

For example, to block posts from some users:

posts: { // block posts from these users
    selector: '.postbit-details-username a',
    parent: 'div.postbit',
    blacklist: ['user1', 'user2', 'etc-users'],
    type: 'Exact'
}

The type attribute defines whether the blocking has to match the blacklisted words exactly. There are three blocking methods: Exact, Simple, Complex.

Exact matches the selector's content with the blacklisted word. If the two are exactly the same, then it gets blocked. Complex uses regular expressions, while Simple tests that the blacklisted words are inside the selector's text. Simple is a lenient version of Exact: "something" will matching the phrase "there is something here."

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址