Skip to content

Commit

Permalink
Updated at 2023-01-01 09:26:34
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 1, 2023
0 parents commit 43f7898
Show file tree
Hide file tree
Showing 43 changed files with 670,696 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[attr]adb linguist-language=AdBlock linguist-detectable

/mod/rules/adblock-rules.txt adb
117 changes: 117 additions & 0 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: Update Rules
on:
schedule:
- cron: '0 0 * * *'
#push:
# branches:
# - main

workflow_dispatch:

repository_dispatch:
type:
- [Manual-Update]

jobs:
update-rules:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Setup Go 1.x
uses: actions/setup-go@v2
with:
go-version: "^1.14"
- uses: actions/setup-node@v2
with:
node-version: '14'
check-latest: true

# Install hostlist-compiler
- name: Install hostlist-compiler
run: npm i -g @adguard/hostlist-compiler
- name: Install rename
run: |
sudo apt update
sudo apt install rename
- name: Git fetch
run: |
git pull -f
- name: Update Rules
continue-on-error: false
run: |
bash ./script/update-rules.sh
- name: Update other rules
run: |
cd rules
rm *.txt
wget -O fasthosts.txt https://raw.githubusercontent.com/hacamer/filtering/master/hosts
cd ../
- name: Update ReadMe
run: |
bash ./script/clean-readme.sh
- name: Git push assets to Github
run: |
git init
git config --local user.name "actions"
git config --local user.email "action@github.com"
git branch -m main
git add .
git add --all
git checkout --orphan new_branch
git add -A
git commit -am "Updated at $(TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S')"
git branch -D main
git branch -m main
git branch -M main
git tag -l | xargs git tag -d
git push --force --set-upstream origin main
- name: Git push assets to other repos
continue-on-error: true
run: |
rm -rf .git/
git init
git config --local user.name "hacamer"
git config --local user.email "hcamer145@gmail.com"
git remote add origin "https://cats-team:${{ secrets.GITLAB_TOKEN }}@gitlab.com/cats-team/adrules.git"
git remote set-url --add origin "https://hacamer:${{ secrets.JIHU_TOKEN }}@jihulab.com/cats-team/adrules.git"
git remote set-url --add origin "https://hacamer:${{ secrets.GITEA_TOKEN }}@gitea.com/Cats-Team/AdRules.git"
git remote set-url --add origin "https://hacamer:${{ secrets.BITBUCKET_TOKEN }}@bitbucket.org/hacamer/adrules.git"
git remote -v
git branch -m main
#git gc --aggressive
git gc --prune=now
git gc --aggressive --prune=now
git add --all
git commit -m "Updated at $(TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S')" -a
git checkout --orphan new_branch
git add -A
git commit -am 'Add changes'
git branch -D main
git branch -m main
git branch -M main
git push -f --set-upstream origin main
git remote prune origin
# - name: Push Message
# continue-on-error: true
# run: |
# pip3 install requests
# python3 ./script/pusher.py

- name: Auto Built
continue-on-error: true
run: |
curl -X POST "${{ secrets.CF_TOKEN }}"
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 2

47 changes: 47 additions & 0 deletions .github/workflows/desize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: desize
on:
workflow_dispatch:

jobs:
clean:
runs-on: ubuntu-latest

steps:
- name: Clone repo
run: git clone --mirror https://cats-team:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} repo_gh

- name: Clean up
run: |
curl -fsSL -o bfg.jar https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar && \
java -jar bfg.jar --strip-blobs-bigger-than 10K -fs 100M repo_gh && \
cd repo_gh && \
git reflog expire --expire=now --all && \
git gc --prune=now --aggressive
- name: Push
run: |
cd repo_gh
git show-ref | cut -d' ' -f2 | grep 'pull' | xargs -r -L1 git update-ref -d
git push origin --force
cd ../
rm -rf repo_gh
#Gitlab
- name: Clone repo
run: git clone --mirror https://cats-team:${{ secrets.GITLAB_TOKEN }}@gitlab.com/cats-team/adrules.git repo_gh

- name: Clean up
run: |
curl -fsSL -o bfg.jar https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar && \
java -jar bfg.jar --strip-blobs-bigger-than 10K -fs 100M repo_gh && \
cd repo_gh && \
git reflog expire --expire=now --all && \
git gc --prune=now --aggressive
- name: Push
run: |
cd repo_gh
git show-ref | cut -d' ' -f2 | grep 'pull' | xargs -r -L1 git update-ref -d
git push origin --force
cd ../
rm -rf repo_gh
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
push.sh
.git/
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gp.adrules.top
14 changes: 14 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<div align="center">
<h1 align="center">AdRules<br></h1>
<br>
<img src="https://img.shields.io/github/stars/Cats-Team/AdRules?style=flat-square&color=yellow">
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/cats-team/adrules?style=flat-square&color=red">
<img src="https://img.shields.io/github/license/Cats-Team/AdRules?style=flat-square">
<br>
<br>


</div>
<!--br-->
### 📃 Rules List

<details><summary><strong><code>Rules Total</code></strong></summary></code>
<br>

```
Update Time: 2023-01-01 09:26:34
AdRules AdBlock List : 120942
AdRules AdBlock List Lite : 34293
AdRules AdBlock List Plus : 254698
AdRules DNS List : 48473
AdRules Ad Domains List : 54141
```
</details>
<br>

- **Content Rules**

| Rules Name | 🚀Github Raw | 🚀Github Pages | 🚀Gitlab Raw | 🚀Cloudflare Pages | 🚀Bitbacket Raw | 🚀Gitea Raw | 🚀Gitlab Raw (CN) | 🚀GitLink Raw (CN) |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| AdRules AdBlock List | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adblock.txt) | [Link](https://gp.adrules.top/adblock.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adblock.txt) | [Link](https://adrules.top/adblock.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adblock.txt) | [Link](https://gitea.com/Cats-Team/AdRules/raw/branch/main/adblock.txt) | [Link](https://jihulab.com/cats-team/adrules/-/raw/main/adblock.txt) | [Link](https://code.gitlink.org.cn/hacamer/AdRules/raw/branch/main/adblock.txt) |
| AdRules AdBlock List Lite | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adblock_lite.txt) | [Link](https://gp.adrules.top/adblock_lite.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adblock_lite.txt) | [Link](https://adrules.top/adblock_lite.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adblock_lite.txt) | [Link](https://gitea.com/Cats-Team/AdRules/raw/branch/main/adblock_lite.txt) | [Link](https://jihulab.com/cats-team/adrules/-/raw/main/adblock_lite.txt) | [Link](https://code.gitlink.org.cn/hacamer/AdRules/raw/branch/main/adblock_lite.txt) |
| AdRules AdBlock List Plus | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adblock_plus.txt) | [Link](https://gp.adrules.top/adblock_plus.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adblock_plus.txt) | [Link](https://adrules.top/adblock_plus.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adblock_plus.txt) | [Link](https://gitea.com/Cats-Team/AdRules/raw/branch/main/adblock_plus.txt) | [Link](https://jihulab.com/cats-team/adrules/-/raw/main/adblock_plus.txt) | [Link](https://code.gitlink.org.cn/hacamer/AdRules/raw/branch/main/adblock_plus.txt) |

- **DNS Rules**

| Rules Name | 🚀Github Raw | 🚀Github Pages | 🚀Gitlab Raw | 🚀Cloudflare Pages | 🚀Bitbacket Raw | 🚀Gitea | 🚀Gitlab Raw (CN) | 🚀GitLink Raw (CN) |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| AdRules DNS List | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/dns.txt) | [Link](https://gp.adrules.top/dns.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/dns.txt) | [Link](https://adrules.top/dns.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/dns.txt) | [Link](https://gitea.com/Cats-Team/AdRules/raw/branch/main/dns.txt) | [Link](https://jihulab.com/cats-team/adrules/-/raw/main/dns.txt) | [Link](https://code.gitlink.org.cn/hacamer/AdRules/raw/branch/main/dns.txt) |
| AdRules Hosts List | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/hosts.txt) | [Link](https://gp.adrules.top/hosts.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/hosts.txt) | [Link](https://adrules.top/hosts.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/hosts.txt) | [Link](https://gitea.com/Cats-Team/AdRules/raw/branch/main/hosts.txt) | [Link](https://jihulab.com/cats-team/adrules/-/raw/main/hosts.txt) | [Link](https://code.gitlink.org.cn/hacamer/AdRules/raw/branch/main/hosts.txt) |
| AdRules Ad Domains List | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/ad-domains.txt) | [Link](https://cats-team.github.io/AdRules/ad-domains.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/ad-domains.txt) | [Link](https://adrules.top/ad-domains.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/ad-domains.txt) | [Link](https://gitea.com/Cats-Team/AdRules/raw/branch/main/ad-domains.txt) | [Link](https://jihulab.com/cats-team/adrules/-/raw/main/ad-domains.txt) | [Link](https://code.gitlink.org.cn/hacamer/AdRules/raw/branch/main/ad-domains.txt) |
| AdRules Quantumult X List | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/qx.conf) | [Link](https://gp.adrules.top/qx.conf) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/qx.conf) | [Link](https://adrules.top/qx.conf) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/qx.conf) | [Link](https://gitea.com/Cats-Team/AdRules/raw/branch/main/qx.conf) | [Link](https://jihulab.com/cats-team/adrules/-/raw/main/qx.conf) | [Link](https://code.gitlink.org.cn/hacamer/AdRules/raw/branch/main/qx.conf) |
| AdRules Smartdns List | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/smart-dns.conf) | [Link](https://gp.adrules.top/smart-dns.conf) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/smart-dns.conf) | [Link](https://adrules.top/smart-dns.conf) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/smart-dns.conf) | [Link](https://gitea.com/Cats-Team/AdRules/raw/branch/smart-dns.conf) | [Link](https://jihulab.com/cats-team/adrules/-/raw/main/smart-dns.conf) | [Link](https://code.gitlink.org.cn/hacamer/AdRules/raw/branch/main/smart-dns.conf) |

## Total Count
![Alt](https://repobeats.axiom.co/api/embed/3e57571bbce4b4def7917fa545f5e37dd64f0665.svg "Repobeats analytics image")


## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=cats-team/adrules&type=Timeline)](https://star-history.com/#cats-team/adrules&Timeline)

## Chat

**✈️https://t.me/AdRules_Offical_Chat**
**https://github.com/Cats-Team/AdRules/issues**

Loading

0 comments on commit 43f7898

Please sign in to comment.