Skip to content

Commit

Permalink
Filter update: 2025-01-10T01:37:41+00:00
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 10, 2025
0 parents commit 7ef6dbf
Show file tree
Hide file tree
Showing 4 changed files with 104,570 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# this workflow purposefully prunes the entire Git history as the diff is
# entirely useless anyway as the generated files are binary. it's also thanks
# to the checkout action only fetching 1 level deep.

name: Build filters

on:
schedule:
- cron: '0 0 */3 * *'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download ruleset_converter
run: |
wget -O ./ruleset_converter https://github.com/bromite/bromite/releases/download/108.0.5359.75/ruleset_converter
chmod +x ./ruleset_converter
- name: Download filters
run: aria2c --input-file=filterlist.txt
- name: Generate ruleset
run: ./ruleset_converter --input_format=filter-list --output_format=unindexed-ruleset --input_files=$(echo filters/*.txt | tr ' ' ,) --output_file=filters.dat
- name: Push
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add filters.dat
git commit --amend -m "Filter update: $(date --iso-8601=seconds)" --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
git push --force
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
filters/
ruleset_converter
31 changes: 31 additions & 0 deletions filterlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt
out=filters/ublock-filters.txt
https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2020.txt
out=filters/ublock-filters-2020.txt
https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2021.txt
out=filters/ublock-filters-2021.txt
https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2022.txt
out=filters/ublock-filters-2022.txt
https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters-2023.txt
out=filters/ublock-filters-2023.txt
https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt
out=filters/ublock-privacy.txt
https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt
out=filters/ublock-resourceabuse.txt
https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt
out=filters/ublock-unbreak.txt
https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/quick-fixes.txt
out=filters/ublock-quickfixes.txt

https://ublockorigin.github.io/uAssets/thirdparties/easylist.txt
out=filters/easylist.txt
https://ublockorigin.github.io/uAssets/thirdparties/easyprivacy.txt
out=filters/easyprivacy.txt
https://ublockorigin.github.io/uAssets/thirdparties/easylist-newsletters.txt
out=filters/easylist-newsletters.txt
https://ublockorigin.github.io/uAssets/thirdparties/easylist-notifications.txt
out=filters/easylist-notifications.txt
https://ublockorigin.github.io/uAssets/thirdparties/easylist-cookies.txt
out=filters/easylist-cookies.txt
https://ublockorigin.github.io/uAssets/thirdparties/easylist-social.txt
out=filters/easylist-social.txt
Loading

0 comments on commit 7ef6dbf

Please sign in to comment.