Add EasyList & EasyListChina & EasyListPrivacy into rejectlist

This commit is contained in:
loyalsoldier 2020-04-06 22:38:00 +08:00
parent 8352df9737
commit e5831eec05

View File

@ -34,6 +34,8 @@ jobs:
echo "::set-env name=GEQ1AN_RULES_REJECT_URL::https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/AdBlock.list"
echo "::set-env name=LHIE1_RULES_PROXY_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Proxy.list"
echo "::set-env name=LHIE1_RULES_REJECT_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Reject.list"
echo "::set-env name=EASYLIST_and_CHINA::https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt"
echo "::set-env name=EASYLIST_PRIVACY::https://easylist-downloads.adblockplus.org/easyprivacy.txt"
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
shell: bash
@ -83,6 +85,8 @@ jobs:
curl -sSL $PROFILES_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+REJECT/ {print $2}' > temp-reject.txt
curl -sSL $GEQ1AN_RULES_REJECT_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+AdBlock/ {print $2}' >> temp-reject.txt
curl -sSL $LHIE1_RULES_REJECT_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+/ {print $2}' >> temp-reject.txt
curl -sSL $EASYLIST_and_CHINA | perl -ne '/^\|\|([^*].+)\^($|\$third-party$)/ && print "$1\n"' | perl -ne 'print if not /^(\d+\.){3}\d+$/' >> temp-reject.txt
curl -sSL $EASYLIST_PRIVACY | perl -ne '/^\|\|([^*].+)\^($|\$third-party$)/ && print "$1\n"' | perl -ne 'print if not /^(\d+\.){3}\d+$/' >> temp-reject.txt
- name: Add proxy, direct and reject domains from "hidden" branch to appropriate temp files
run: |