Skip to content

Commit

Permalink
blocklist: update Line related schemes and trules
Browse files Browse the repository at this point in the history
  • Loading branch information
danny0838 committed Mar 26, 2024
1 parent 70ce8d4 commit da1265b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
6 changes: 3 additions & 3 deletions docs/files/blocklist-ubo/sns-content-farms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
! This may not work well for all cases as many things cannot be fully determined by URL.
! This list is mostly regex-based and may have a negative effect on performance.
! Expires: 3 days
! Last modified: 2024-03-24T19:53:36+00:00
! Last modified: 2024-03-26T12:44:18+00:00
! Homepage: https://danny0838.github.io/content-farm-terminator/
! Licence: MIT License
! Source: https://danny0838.github.io/content-farm-terminator/files/blocklist-ubo/sns-content-farms.txt
Expand Down Expand Up @@ -1071,8 +1071,8 @@
/^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)(?:lifenews)(?=[/?#]|$)/$doc
/^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)(?:opz7509n)(?=[/?#]|$)/$doc
/^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)(?:teepr)(?=[/?#]|$)/$doc
/^https?://timeline\.line\.me/(?:\w+?)/(?:_dQ068h3QIXedbEgzPF\-ereDRVCa6eJwrqVvQ5n4)(?=[/?#]|$)/$doc
/^https?://timeline\.line\.me/(?:\w+?)/(?:_dWGN46duZKytqGp2wMVWg65NvnfviJ7s14PDjMM)(?=[/?#]|$)/$doc
/^https?://(?:linevoom|timeline)\.line\.me/user/(?:_dQ068h3QIXedbEgzPF\-ereDRVCa6eJwrqVvQ5n4)(?=[/?#]|$)/$doc
/^https?://(?:linevoom|timeline)\.line\.me/user/(?:_dWGN46duZKytqGp2wMVWg65NvnfviJ7s14PDjMM)(?=[/?#]|$)/$doc
/^https?://(?:www\.)?pinterest(?:\.[a-z]+)+/(?:ViralaneNews)(?=[/?#]|$)/$doc
/^https?://(?:www\.)?plurk\.com/(?:m/p/)?(?:viralane)(?=[/?#]|$)/$doc
/^https?://(?:\w+\.)?twitter\.com/(?:viralanenews)(?=[/?#]|$)/$doc
Expand Down
6 changes: 3 additions & 3 deletions docs/files/blocklist/sns-content-farms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Description: Filter for content-farm-like or related social network service (SNS) URLs, mostly in Chinese.
# This may not work well for all cases as many things cannot be fully determined by URL.
# This list is mostly regex-based and may have a negative effect on performance.
# Last modified: 2024-03-24T19:53:36+00:00
# Last modified: 2024-03-26T12:44:18+00:00
# Homepage: https://danny0838.github.io/content-farm-terminator/
# Licence: MIT License
# Source: https://danny0838.github.io/content-farm-terminator/files/blocklist/sns-content-farms.txt
Expand Down Expand Up @@ -1070,8 +1070,8 @@
/^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)(?:lifenews)(?=[/?#]|$)/
/^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)(?:opz7509n)(?=[/?#]|$)/
/^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)(?:teepr)(?=[/?#]|$)/
/^https?://timeline\.line\.me/(?:\w+?)/(?:_dQ068h3QIXedbEgzPF\-ereDRVCa6eJwrqVvQ5n4)(?=[/?#]|$)/
/^https?://timeline\.line\.me/(?:\w+?)/(?:_dWGN46duZKytqGp2wMVWg65NvnfviJ7s14PDjMM)(?=[/?#]|$)/
/^https?://(?:linevoom|timeline)\.line\.me/user/(?:_dQ068h3QIXedbEgzPF\-ereDRVCa6eJwrqVvQ5n4)(?=[/?#]|$)/
/^https?://(?:linevoom|timeline)\.line\.me/user/(?:_dWGN46duZKytqGp2wMVWg65NvnfviJ7s14PDjMM)(?=[/?#]|$)/
/^https?://(?:www\.)?pinterest(?:\.[a-z]+)+/(?:ViralaneNews)(?=[/?#]|$)/
/^https?://(?:www\.)?plurk\.com/(?:m/p/)?(?:viralane)(?=[/?#]|$)/
/^https?://(?:\w+\.)?twitter\.com/(?:viralanenews)(?=[/?#]|$)/
Expand Down
10 changes: 6 additions & 4 deletions docs/files/url-transform-rules/sns-content-farms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
/^https?://(?:(?:[\w-]+\.)?facebook\.com|fb\.(?:com|me))/(?!\w+\.php\?)([\w.]+)(?=[/?#]|$)/ /^https?://(?:(?:[\w-]+\.)?facebook\.com|fb\.(?:com|me))/(?!\w+\.php\?)(?:pg/)?$1(?=[/?#]|$)/ #facebook

-- LINE
/^https?://line\.me/(?:R/)?ti/p/@(\w+)(?=[/?#]|$)/ /^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)$1(?=[/?#]|$)/ #line-page
/^https?://line\.me/(?:R/)?ti/p/(\w+)(?=[/?#]|$)/ /^https?://line\.me/(?:R/)?ti/p/$1(?=[/?#]|$)/ #line-user
/^https?://page\.line\.me/([\w-]+)(?=[/?#]|$)/ /^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)$1(?=[/?#]|$)/ #line-page
/^https?://timeline\.line\.me/(?:\w+?)/_([\w-]+)(?=[/?#]|$)/ /^https?://timeline\.line\.me/(?:\w+?)/_$1(?=[/?#]|$)/ #line-timeline
/^https?://line\.me/(?:R/)?ti/p/@([\w.-]+)(?=[/?#]|$)/ /^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)$1(?=[/?#]|$)/ #line-page
/^https?://line\.me/(?:R/)?ti/p/([\w.-]+)(?=[/?#]|$)/ /^https?://line\.me/(?:R/)?ti/p/$1(?=[/?#]|$)/ #line-user
/^https?://page\.line\.me/([\w.-]+)(?=[/?#]|$)/ /^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)$1(?=[/?#]|$)/ #line-page
/^https?://(?:linevoom|timeline)\.line\.me/user/([\w-]+)(?=[/?#]|$)/ /^https?://(?:linevoom|timeline)\.line\.me/user/$1(?=[/?#]|$)/ #linevoom-user
/^https?://(?:linevoom|timeline)\.line\.me/post/(\d+)(?=[/?#]|$)/ /^https?://(?:linevoom|timeline)\.line\.me/post/$1(?=[/?#]|$)/ #linevoom-post
/^https?://(?:linevoom|timeline)\.line\.me/hashtag/([^/?#]+)(?=[/?#]|$)/ /^https?://(?:linevoom|timeline)\.line\.me/hashtag/$1(?=[/?#]|$)/ #linevoom-hashtag

-- Twitter
/^https?://(?:\w+\.)?twitter\.com/([\w-]+)(?=[/?#]|$)/ /^https?://(?:\w+\.)?twitter\.com/$1(?=[/?#]|$)/
Expand Down
4 changes: 2 additions & 2 deletions src/blocklist/sns-content-farms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1061,8 +1061,8 @@ line-page:how01
line-page:lifenews
line-page:opz7509n
line-page:teepr
line-timeline:_dQ068h3QIXedbEgzPF-ereDRVCa6eJwrqVvQ5n4
line-timeline:_dWGN46duZKytqGp2wMVWg65NvnfviJ7s14PDjMM
linevoom-user:_dQ068h3QIXedbEgzPF-ereDRVCa6eJwrqVvQ5n4
linevoom-user:_dWGN46duZKytqGp2wMVWg65NvnfviJ7s14PDjMM
pinterest:ViralaneNews
plurk:viralane
twitter:viralanenews
Expand Down
10 changes: 8 additions & 2 deletions src/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,14 @@ build:
line-page:
value: /^https?://(?:page\.line\.me/|line\.me/(?:R/)?ti/p/@)(?:{value})(?=[/?#]|$)/
escape: regex
line-timeline:
value: /^https?://timeline\.line\.me/(?:\w+?)/(?:{value})(?=[/?#]|$)/
linevoom-user:
value: /^https?://(?:linevoom|timeline)\.line\.me/user/(?:{value})(?=[/?#]|$)/
escape: regex
linevoom-post:
value: /^https?://(?:linevoom|timeline)\.line\.me/post/(?:{value})(?=[/?#]|$)/
escape: regex
linevoom-hashtag:
value: /^https?://(?:linevoom|timeline)\.line\.me/hashtag/(?:{value})(?=[/?#]|$)/
escape: regex
haokan-author:
value: /https?://(?:haokan|sv)\.baidu\.com/author/(?:{value})(?=[/?#]|$)/
Expand Down

0 comments on commit da1265b

Please sign in to comment.