Add files via upload

This commit is contained in:
lingeringsound 2024-09-09 17:07:13 +08:00 committed by GitHub
parent d74fad8577
commit 5cb56b8b87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -403,6 +403,13 @@ local lite_content="$(cat ${file} | grep -Ev '\$\$|\$@\$|#\%#|#\@\%#|#\@\$\?#|#\
echo "${lite_content}" > "${file}"
}
#去除转换popup选定器直接改用||域名^的形式。
function wipe_fiter_popup_domain(){
local file="${1}"
test ! -f "${file}" && return
busybox sed -Ei 's/\$popup$//g;s/\$popup,third-party$//g;s/\$third-party,popup$//g' "${file}"
}
#更新README信息
function update_README_info(){

View File

@ -36,6 +36,8 @@ sort_adblock_Rules "${Sort_Folder}/lite" "${Download_Folder}/Adguard_Chinese.txt
sort_adblock_Rules "${Sort_Folder}/lite" "${Download_Folder}/Adguard_mobile.txt" '^\|\||^#'
sort_web_rules "${Sort_Folder}/lite" "${Download_Folder}/Adguard_mobile.txt"
sort_adblock_Rules "${Sort_Folder}/lite" "${Download_Folder}/easylist_adservers_popup.txt" '^\|\|'
#去除转换popup选定器直接改用||域名^的形式。
wipe_fiter_popup_domain "${Sort_Folder}/lite/easylist_adservers_popup.txt"
#full规则
echo "※`date +'%F %T'` 开始处理完整版规则……"
@ -44,6 +46,8 @@ wipe_white_list "${Sort_Folder}" "${Download_Folder}/adguard_optimized.txt" '^\@
sort_adblock_Rules "${Sort_Folder}" "${Download_Folder}/Adguard_mobile.txt" '^##|^###|^\/|\/ad\/|^:\/\/|^_|^\?|^\.|^-|^=|^:|^~|^,|^&|^\|\||^#\$#|^#\?#'
sort_web_rules "${Sort_Folder}" "${Download_Folder}/Adguard_mobile.txt"
sort_adblock_Rules "${Sort_Folder}" "${Download_Folder}/easylist_adservers_popup.txt" '^\|\|'
#去除转换popup选定器直接改用||域名^的形式。
wipe_fiter_popup_domain "${Sort_Folder}/easylist_adservers_popup.txt"
#合并规则
echo "※`date +'%F %T'` 开始合并规则……"