-
Notifications
You must be signed in to change notification settings - Fork 12
/
update_README.sh
93 lines (74 loc) · 4.1 KB
/
update_README.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
function update_readme_master(){
if test -f `pwd`/README.md ;then
test -f `pwd`/reward && count_reward="$(cat `pwd`/reward 2>/dev/null | sed '/^#/d;/^[[:space:]]*$/d' | wc -l)" || count_reward="未知"
test -f `pwd`/all && count_all="$(cat `pwd`/all 2>/dev/null | sed '/^#/d;/^[[:space:]]*$/d' | wc -l)" || count_all="未知"
cat << key > `pwd`/README.md
## 去广告订阅自动更新
## [English](./README_en.md)
## 统计 (`date +'%F %T'`)
\`\`\`
完整版累积拦截域名: ${count_all}
保留广告奖励累积拦截域名: ${count_reward}
\`\`\`
### 访问量 : ![visitors](http://006.freecounters.co.uk/count-133.pl?count=qe1milbo7p68gg219fmj&type=links&prog=unique)
## 订阅
### 国内请用 **镜像链接**
| **名称** | **链接** | **镜像链接** | **Github订阅加速链接** |
| :-- | :-- | :-- | :-- |
| **完整版** | [订阅链接](https://raw.githubusercontent.com/lingeringsound/10007_auto/master/all) | [Gitcode镜像](https://gitcode.net/weixin_45617236/10007_auto/-/raw/master/all) | [加速链接](https://raw.gitmirror.com/lingeringsound/10007_auto/master/all) |
| **保留广告奖励** | [订阅链接](https://raw.githubusercontent.com/lingeringsound/10007_auto/master/reward) | [Gitcode镜像](https://gitcode.net/weixin_45617236/10007_auto/-/raw/master/reward) | [加速链接](https://raw.gitmirror.com/lingeringsound/10007_auto/master/reward) |
| **Adblock规则** | [订阅链接](https://raw.githubusercontent.com/lingeringsound/10007_auto/master/adb.txt) | [Gitcode镜像](https://gitcode.net/weixin_45617236/10007_auto/-/raw/master/adb.txt) | [加速链接](https://raw.gitmirror.com/lingeringsound/10007_auto/master/adb.txt) |
| **Adaway白名单** | [订阅链接](https://raw.githubusercontent.com/lingeringsound/10007_auto/master/Adaway_white_list.prop) | [加速链接](https://raw.gitmirror.com/lingeringsound/10007_auto/master/Adaway_white_list.prop) |
| **Adclose规则订阅** | [订阅链接](https://raw.githubusercontent.com/lingeringsound/10007_auto/master/10007.rule) | [加速链接](https://raw.gitmirror.com/lingeringsound/10007_auto/master/10007.rule) |
## **[捐赠地址](https://github.com/lingeringsound/10007)**
key
cat << key > `pwd`/README_en.md
## REmove Ads Host
## [中文](./README.md)
## count
\`\`\`
all: ${count_all}
reward: ${count_reward}
\`\`\`
### ![visitors](https://visitor-badge.glitch.me/badge?page_id=lingeringsound.10007&left_color=green&right_color=red)
| **name** | **links** |
| :-- | :-- |
| **all** | [Subscription link](https://raw.githubusercontent.com/lingeringsound/10007_auto/master/all) |
| **reward** | [Subscription link](https://raw.githubusercontent.com/lingeringsound/10007_auto/master/reward) |
| **Adblock** | [Subscription link](https://raw.githubusercontent.com/lingeringsound/10007_auto/master/adb.txt) |
## **[Donate](https://github.com/lingeringsound/10007)**
key
fi
}
function echo_thank(){
cat << "key" >> `pwd`/README.md
## 引用和致谢
| **Hosts引用链接** | 感谢各位大佬 |
| :-- | :-- |
| [大圣净化](https://github.com/jdlingyu/ad-wars) | ❤感谢!❤ |
| [yhost](https://github.com/VeleSila/yhosts) | ❤感谢!❤ |
| [Steven Black](https://github.com/StevenBlack/hosts) | ❤感谢!❤ |
| [oisd](https://oisd.nl/howto) | ❤感谢!❤ |
| [1024](https://github.com/Goooler/1024_hosts) | ❤感谢!❤ |
| [adhost](https://github.com/E7KMbb/AD-hosts) | ❤感谢!❤ |
| [hblock](https://hblock.molinero.dev/hosts) | ❤感谢!❤ |
key
cat << "key" >> `pwd`/README_en.md
## 引用和致谢
| **Hosts引用链接** | 感谢各位大佬 |
| :-- | :-- |
| [大圣净化](https://github.com/jdlingyu/ad-wars) | ❤感谢!❤ |
| [yhost](https://github.com/VeleSila/yhosts) | ❤感谢!❤ |
| [Steven Black](https://github.com/StevenBlack/hosts) | ❤感谢!❤ |
| [oisd](https://oisd.nl/howto) | ❤感谢!❤ |
| [1024](https://github.com/Goooler/1024_hosts) | ❤感谢!❤ |
| [adhost](https://github.com/E7KMbb/AD-hosts) | ❤感谢!❤ |
| [hlock](https://hblock.molinero.dev/hosts) | ❤感谢!❤ |
key
}
echo `pwd`
update_readme_master
#update_readme_Feature
#update_readme_developer
echo_thank