File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,15 @@ jobs:
4343 rm source/laylavish/uBlockOrigin-HUGE-AI-Blocklist/noai_hosts.txt
4444 mv reverse_url.txt tools/reverse_url
4545
46- # 合并所有列表
47- find . -type f -name "*.txt" -exec sh -c 'cat "$0"; echo' {} \; > tools/uBlacklist
48-
4946 # Issue # 48
5047 sed -i '/^http:\/\//d' source/zweie/some-rules-for-ublacklist/Annoyingbastard.txt
51- sed -i 's|/.*\/(?:m|wap)\..*/|/.*\/(?:(?!m\.douban\.com)(?:m|wap)\..*)/|g' source/zweie/some-rules-for-ublacklist/Annoyingbastard.txt
48+
49+ # Issue # 63
50+ perl -i -pe 's#\Q/.*\/(?:m|wap)\..*/##g' source/zweie/some-rules-for-ublacklist/Annoyingbastard.txt
51+ sed -i '$a\/.*\/(?:(?!m\.douban\.com)(?:m|wap)\..*/' source/zweie/some-rules-for-ublacklist/Annoyingbastard.txt
52+
53+ # 合并所有列表
54+ find . -type f -name "*.txt" -exec sh -c 'cat "$0"; echo' {} \; > tools/uBlacklist
5255
5356 cd tools
5457 mv uBlacklist uBlacklist.txt
You can’t perform that action at this time.
0 commit comments