-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit edf1ed8
Showing
18 changed files
with
94,897 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# [K] (c) 2020 | ||
|
||
name: UPDATE | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '.github/workflows/master.yml' | ||
- 'scripts/**' | ||
schedule: | ||
- cron: '30 21 * * *' | ||
|
||
jobs: | ||
create: | ||
|
||
runs-on: ubuntu-latest | ||
if: github.repository == 'kongfl888/ad-rules' | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@main | ||
with: | ||
ref: master | ||
|
||
- name: Set git identity | ||
run : | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "kongfl888 K" | ||
- name: Git Init | ||
run: | | ||
git checkout master || echo "" | ||
mkdir -p /tmp/myrules/old | ||
mkdir -p /tmp/patches | ||
cp -f ./*.txt /tmp/myrules/old || echo "" | ||
cp -f ./patches/*.txt /tmp/patches | ||
echo "get-rules.sh" | ||
sh ./scripts/get-rules.sh | ||
echo "md5files.sh" | ||
sh ./scripts/md5files.sh | ||
sh ./scripts/get-g-p-hosts.sh | ||
sh ./scripts/get-mal-hosts.sh | ||
rm -rf /tmp/myrules/old | ||
ls /tmp/myrules/* | ||
cp -f /tmp/myrules/*.txt ./ | ||
cp -f /tmp/myrules/*.json ./ | ||
git add . | ||
git commit -m "Update rules" || echo "" | ||
- name: Push Commits | ||
env: | ||
DOWNSTREAM_BRANCH: master | ||
run: | | ||
git push origin $DOWNSTREAM_BRANCH || echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# OPEN SOURCE | ||
|
||
## 📃 浏览器ABP规则订阅 | ||
| 规则名称 | 🚀 地址 |🚀 订阅 | | ||
| :----: | :----: | :----: | | ||
| Lazy Rule | [链接](https://raw.githubusercontent.com/kongfl888/ad-rules/master/lazy2.txt) | [镜像](https://cdn.jsdelivr.net/gh/kongfl888/ad-rules/lazy2.txt) | | ||
| Video Rule | [链接](https://raw.githubusercontent.com/kongfl888/ad-rules/master/video2.txt) | [镜像](https://cdn.jsdelivr.net/gh/kongfl888/ad-rules/video2.txt)| | ||
|
||
## 致谢 | ||
|
||
- 乘风去广告规则 | ||
- [hacamer/AdRule](https://github.com/hacamer/AdRule) | ||
- StevenBlack/hosts | ||
- Ultimate-Hosts-Blacklist/MalwareDomainList.com | ||
- [Contributors](https://github.com/kongfl888/ad-rules/graphs/contributors) |
Oops, something went wrong.