Merge pull request #756 from vancez/adlist-maker

add quantumult x support
This commit is contained in:
gentlyxu 2023-03-29 19:54:08 +08:00 committed by GitHub
commit 3ffb45222e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,6 +204,34 @@ class writerFormat{
),
);
/*Quantumult X 兼容格式的屏蔽广告列表*/
const QUANX = array(
'format' => 'host-suffix,{DOMAIN},reject',
'header' => "#TITLE=anti-AD\n#VER={DATE}\n#URL={URL}\n#TOTAL_LINES={COUNT}\n",
'full_domain' => 0,
'name' => 'quanx',
'filename' => '../anti-ad-quanx.txt',
'whitelist_attached' => array(
'base-dead-hosts.txt' =>array(
'merge_mode' => 2, //0=单条1=单条+子域名2=根域名相当于1非根域名相当于0
),
),
'src' => array(
'base-src-easylist.txt' => array(
'type' => 'easylist',
'strict_mode' => false,
),
'base-src-hosts.txt' => array(
'type' => 'hosts',
'strict_mode' => false,
),
'base-src-strict-hosts.txt' => array(
'type' => 'hosts',
'strict_mode' => true,
),
),
);
/*and etc...*/
}