-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter update: 2025-01-10T01:37:41+00:00
- Loading branch information
0 parents
commit 7ef6dbf
Showing
4 changed files
with
104,570 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,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 |
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,2 @@ | ||
filters/ | ||
ruleset_converter |
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,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 |
Oops, something went wrong.