Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfl888 committed Jul 17, 2024
0 parents commit edf1ed8
Show file tree
Hide file tree
Showing 18 changed files with 94,897 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/master.yml
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 ""
15 changes: 15 additions & 0 deletions README.md
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)
Loading

0 comments on commit edf1ed8

Please sign in to comment.