filtering: add Bilibili service

This commit is contained in:
NeP 2022-07-30 12:22:24 +08:00
parent f32da12a86
commit e0f2c3d170
3 changed files with 31 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -211,6 +211,10 @@ export const SERVICES = [
id: 'amazon', id: 'amazon',
name: 'Amazon', name: 'Amazon',
}, },
{
id: 'bilibili',
name: 'Bilibili',
},
{ {
id: 'cloudflare', id: 'cloudflare',
name: 'CloudFlare', name: 'CloudFlare',

View File

@ -216,6 +216,8 @@ var serviceRulesArray = []svc{{
"||bytedance.map.fastly.net^", "||bytedance.map.fastly.net^",
"||douyin.com^", "||douyin.com^",
"||tiktokv.com^", "||tiktokv.com^",
"||toutiaovod.com^",
"||douyincdn.com^",
}, },
}, { }, {
name: "vimeo", name: "vimeo",
@ -235,16 +237,24 @@ var serviceRulesArray = []svc{{
// Block qq.com and subdomains excluding WeChat's domains. // Block qq.com and subdomains excluding WeChat's domains.
"||qq.com^$denyallow=wx.qq.com|weixin.qq.com", "||qq.com^$denyallow=wx.qq.com|weixin.qq.com",
"||qqzaixian.com^", "||qqzaixian.com^",
"||qq-video.cdn-go.cn^",
"||url.cn^",
}, },
}, { }, {
name: "wechat", name: "wechat",
rules: []string{"||wechat.com^", "||weixin.qq.com^", "||wx.qq.com^"}, rules: []string{
"||wechat.com^",
"||wx.qq.com^",
"||weixin.qq.com^",
"||weixin.qq.com.cn^",
"||weixinbridge.com^",
},
}, { }, {
name: "viber", name: "viber",
rules: []string{"||viber.com^"}, rules: []string{"||viber.com^"},
}, { }, {
name: "weibo", name: "weibo",
rules: []string{"||weibo.com^"}, rules: []string{"||weibo.com^", "||weibo.cn^"},
}, { }, {
name: "9gag", name: "9gag",
rules: []string{"||9cache.com^", "||9gag.com^"}, rules: []string{"||9cache.com^", "||9gag.com^"},
@ -284,6 +294,16 @@ var serviceRulesArray = []svc{{
"||tinder.com^", "||tinder.com^",
"||tindersparks.com^", "||tindersparks.com^",
}, },
}, {
name: "bilibili",
rules: []string{
"||bilibili.com^",
"||bilivideo.com^",
"||biligame.com^",
"||biliapi.net^",
"||dreamcast.hk^",
"||hdslb.com^",
},
}} }}
// convert array to map // convert array to map