mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-02-13 17:12:41 +08:00
修改easylist头部注释部分的格式。 #255
This commit is contained in:
parent
e68914d679
commit
a1f1771b3a
@ -1,7 +1,7 @@
|
|||||||
!TITLE=anti-AD
|
!Title: anti-AD
|
||||||
!VER=20201014231058
|
!Version: 20201014233426
|
||||||
!URL=https://github.com/privacy-protection-tools/anti-AD
|
!Homepage: https://github.com/privacy-protection-tools/anti-AD
|
||||||
!TOTAL_LINES=35309
|
!Total lines: 35309
|
||||||
||*.wap.xsbiquge.com^
|
||*.wap.xsbiquge.com^
|
||||||
||*p2p*douyucdn.cn^
|
||*p2p*douyucdn.cn^
|
||||||
||*serror*.wo.com.cn^
|
||*serror*.wo.com.cn^
|
||||||
|
@ -39,7 +39,7 @@ class writerFormat{
|
|||||||
/*easylist 兼容格式的屏蔽广告列表*/
|
/*easylist 兼容格式的屏蔽广告列表*/
|
||||||
const EASYLIST = array(
|
const EASYLIST = array(
|
||||||
'format' => '||{DOMAIN}^',
|
'format' => '||{DOMAIN}^',
|
||||||
'header' => "!TITLE=anti-AD\n!VER={DATE}\n!URL={URL}\n!TOTAL_LINES=00000\n",
|
'header' => "!Title: anti-AD\n!Version: {DATE}\n!Homepage: {URL}\n!Total lines: 00000\n",
|
||||||
'full_domain' => 0,
|
'full_domain' => 0,
|
||||||
'name' => 'easylist',
|
'name' => 'easylist',
|
||||||
'filename' => '../anti-ad-easylist.txt',
|
'filename' => '../anti-ad-easylist.txt',
|
||||||
|
@ -267,7 +267,7 @@ while(!feof($src_fp)){
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(($row{0} === '!') && (substr($row, 0, 13) === '!TOTAL_LINES=')){
|
if(($row{0} === '!') && (substr($row, 0, 13) === '!Total lines:')){
|
||||||
$insert_pos = $written_size;
|
$insert_pos = $written_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,7 +361,7 @@ foreach($ARR_WHITE_RULE_LIST as $row => $v){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(($insert_pos > 0) && (fseek($new_fp, $insert_pos) === 0)){
|
if(($insert_pos > 0) && (fseek($new_fp, $insert_pos) === 0)){
|
||||||
fwrite($new_fp, "!TOTAL_LINES={$line_count}\n");
|
fwrite($new_fp, "!Total lines: {$line_count}\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose($src_fp);
|
fclose($src_fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user