Skip to content

Commit

Permalink
2.2.2 (重大更新)
Browse files Browse the repository at this point in the history
2.2.2 (重大更新)
2019年7月13日22:14:45
更新:更新了视频规则更新的逻辑。  -  ---TG SD gzsdbb
更新:大量修正了消耗CPU的规则。降低CPU负担。
更新:问题反馈移交到问卷星
  • Loading branch information
user1121114685 committed Jul 14, 2019
1 parent 186f8a1 commit 0728b24
Show file tree
Hide file tree
Showing 15 changed files with 202 additions and 253 deletions.
6 changes: 6 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
感谢TG 四爷对日志进行倒序。

---
2.2.2 (重大更新)
2019年7月13日22:14:45
更新:更新了视频规则更新的逻辑。 - ---TG SD gzsdbb
更新:大量修正了消耗CPU的规则。降低CPU负担。
更新:问题反馈移交到问卷星
---
2.2.1
修复:规则调试模式遗留下来的,多个错误。
Expand Down
38 changes: 37 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

MODULE=koolproxyR
VERSION="2.2.1"
VERSION="2.2.2"
TITLE=koolproxyR
DESCRIPTION="KPR更多规则更舒服!"
HOME_URL="Module_koolproxyR.asp"
Expand Down Expand Up @@ -126,6 +126,19 @@ sed -i '/googletagmanager.com/d' fanboy-annoyance.txt
# 给 microsoft.com 放行
sed -i '/microsoft.com/d' fanboy-annoyance.txt

# 终极 https 卡顿优化 grep -n 显示行号 awk -F 分割数据 sed -i "${del_rule}d" 需要""" 和{}引用变量
# 当 koolproxyR_del_rule 是1的时候就一直循环,除非 del_rule 变量为空了。
koolproxyR_del_rule=1
while [ $koolproxyR_del_rule = 1 ];do
del_rule=`cat fanboy-annoyance.txt | grep -n 'https://' | grep '\*' | grep -v '/\*'| grep -v '\^\*' | grep -v '\*\=' | grep -v '\$s\@' | grep -v '\$r\@'| awk -F":" '{print $1}' | sed -n '1p'`
if [[ "$del_rule" != "" ]]; then
sed -i "${del_rule}d" fanboy-annoyance.txt
else
koolproxyR_del_rule=0
fi
done


## -------------------------------------------------------fanboy处理结束------------------------------------------------------


Expand Down Expand Up @@ -203,6 +216,18 @@ sed -i '/microsoft.com/d' easylistchina.txt
sed -i '/apple.com/d' easylistchina.txt
sed -i '/mzstatic.com/d' easylistchina.txt

# 终极 https 卡顿优化 grep -n 显示行号 awk -F 分割数据 sed -i "${del_rule}d" 需要""" 和{}引用变量
# 当 koolproxyR_del_rule 是1的时候就一直循环,除非 del_rule 变量为空了。
koolproxyR_del_rule=1
while [ $koolproxyR_del_rule = 1 ];do
del_rule=`cat easylistchina.txt | grep -n 'https://' | grep '\*' | grep -v '/\*'| grep -v '\^\*' | grep -v '\*\=' | grep -v '\$s\@' | grep -v '\$r\@'| awk -F":" '{print $1}' | sed -n '1p'`
if [[ "$del_rule" != "" ]]; then
sed -i "${del_rule}d" easylistchina.txt
else
koolproxyR_del_rule=0
fi
done




Expand Down Expand Up @@ -268,6 +293,17 @@ sed -i '/netflix.com/d' yhosts.txt
# 给 microsoft.com 放行
sed -i '/microsoft.com/d' yhosts.txt

# 终极 https 卡顿优化 grep -n 显示行号 awk -F 分割数据 sed -i "${del_rule}d" 需要""" 和{}引用变量
# 当 koolproxyR_del_rule 是1的时候就一直循环,除非 del_rule 变量为空了。
koolproxyR_del_rule=1
while [ $koolproxyR_del_rule = 1 ];do
del_rule=`cat yhosts.txt | grep -n 'https://' | grep '\*' | grep -v '/\*'| grep -v '\^\*' | grep -v '\*\=' | grep -v '\$s\@' | grep -v '\$r\@'| awk -F":" '{print $1}' | sed -n '1p'`
if [[ "$del_rule" != "" ]]; then
sed -i "${del_rule}d" yhosts.txt
else
koolproxyR_del_rule=0
fi
done



Expand Down
Binary file added history/2.2.2/koolproxyR.tar.gz
Binary file not shown.
1 change: 1 addition & 0 deletions history/version
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
2.2.0 f6609f5cf29c1bd3a24e12c20f505720
2.2.0 feaf9c60ba6f1ebe3ab760b2cc4ba77b
2.2.1 b8b8afb4d8919335e1481092a3426e5b
2.2.2 f0c2b9ec082f0c7573d587a0913c939a
Binary file modified koolproxyR.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions koolproxyR/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ dbus set softcenter_module_koolproxyR_description="KPR更多规则更舒服!"
dbus set softcenter_module_koolproxyR_install=1
dbus set softcenter_module_koolproxyR_home_url="Module_koolproxyR.asp"
dbus set softcenter_module_koolproxyR_name=koolproxyR
dbus set softcenter_module_koolproxyR_version=2.2.1
dbus set koolproxyR_version=2.2.1
dbus set softcenter_module_koolproxyR_version=2.2.2
dbus set koolproxyR_version=2.2.2

echo_date 安装koolproxyR完成,开始重启koolproxyR...

Expand Down
292 changes: 72 additions & 220 deletions koolproxyR/koolproxyR/data/rules/easylistchina.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion koolproxyR/koolproxyR/data/rules/easylistchina.txt.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
275fce3d4111692d2ffb54a372e71f37
8c59fa87cf41125e847067cfcedb3f09
61 changes: 40 additions & 21 deletions koolproxyR/koolproxyR/data/rules/fanboy-annoyance.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion koolproxyR/koolproxyR/data/rules/fanboy-annoyance.txt.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f2790ca72f87f8528af45ea52103138a
43e8f5746ed6bb7cf69c16cadf30af95
Binary file modified koolproxyR/koolproxyR/data/rules/kp.dat
Binary file not shown.
2 changes: 1 addition & 1 deletion koolproxyR/koolproxyR/data/rules/kp.dat.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f41a7db8d36b398792b7678c2057d31c
bd417430e1ac3984d91364eefb18061d
40 changes: 37 additions & 3 deletions koolproxyR/scripts/KoolProxyR_rule_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ update_rule(){
if [[ "$koolproxyR_basic_video_update" == "1" ]] || [[ -n "$1" ]]; then
echo_date " ---------------------------------------------------------------------------------------"
for i in {1..5}; do
kpr_video_md5=`cat $KSROOT/koolproxyR/data/rules/kp.dat.md5 | sed -n '1p'`
kpr_video_md5=`md5sum $KSROOT/koolproxyR/data/rules/kp.dat | awk '{print $1}'`
wget -4 -a /tmp/upload/kpr_log.txt -O /tmp/kp.dat.md5 $url_kp_md5
kpr_video_new_md5=`cat /tmp/kp.dat.md5 | sed -n '1p'`
echo_date 远程视频规则md5:$kpr_video_new_md5
Expand Down Expand Up @@ -254,6 +254,19 @@ update_rule(){
# 给apple的https放行
sed -i '/apple.com/d' $KSROOT/koolproxyR/data/rules/fanboy-annoyance.txt
sed -i '/mzstatic.com/d' $KSROOT/koolproxyR/data/rules/fanboy-annoyance.txt
# 终极 https 卡顿优化 grep -n 显示行号 awk -F 分割数据 sed -i "${del_rule}d" 需要""" 和{}引用变量
# 当 koolproxyR_del_rule 是1的时候就一直循环,除非 del_rule 变量为空了。
koolproxyR_del_rule=1
while [ $koolproxyR_del_rule = 1 ];do
del_rule=`cat $KSROOT/koolproxyR/data/rules/fanboy-annoyance.txt | grep -n 'https://' | grep '\*' | grep -v '/\*'| grep -v '\^\*' | grep -v '\*\=' | grep -v '\$s\@' | grep -v '\$r\@'| awk -F":" '{print $1}' | sed -n '1p'`
if [[ "$del_rule" != "" ]]; then
sed -i "${del_rule}d" $KSROOT/koolproxyR/data/rules/fanboy-annoyance.txt
else
koolproxyR_del_rule=0
fi
done


else
echo_date 跳过优化 fanboy规则。。。。。
fi
Expand All @@ -278,8 +291,6 @@ update_rule(){





# 将规则转化成kp能识别的https
cat $KSROOT/koolproxyR/data/rules/easylistchina.txt | grep "^||" | sed 's#^||#||https://#g' >> $KSROOT/koolproxyR/data/rules/easylistchina_https.txt
# 移出https不支持规则domain=
Expand Down Expand Up @@ -331,6 +342,17 @@ update_rule(){
sed -i '/googletagmanager.com/d' $KSROOT/koolproxyR/data/rules/easylistchina.txt
# 给 microsoft.com 放行
sed -i '/microsoft.com/d' $KSROOT/koolproxyR/data/rules/easylistchina.txt
# 终极 https 卡顿优化 grep -n 显示行号 awk -F 分割数据 sed -i "${del_rule}d" 需要""" 和{}引用变量
# 当 koolproxyR_del_rule 是1的时候就一直循环,除非 del_rule 变量为空了。
koolproxyR_del_rule=1
while [ $koolproxyR_del_rule = 1 ];do
del_rule=`cat $KSROOT/koolproxyR/data/rules/easylistchina.txt | grep -n 'https://' | grep '\*' | grep -v '/\*'| grep -v '\^\*' | grep -v '\*\=' | grep -v '\$s\@' | grep -v '\$r\@'| awk -F":" '{print $1}' | sed -n '1p'`
if [[ "$del_rule" != "" ]]; then
sed -i "${del_rule}d" $KSROOT/koolproxyR/data/rules/easylistchina.txt
else
koolproxyR_del_rule=0
fi
done

else
echo_date 跳过优化 KPR主规则。。。。。
Expand Down Expand Up @@ -395,6 +417,18 @@ update_rule(){
sed -i '/googletagmanager.com/d' $KSROOT/koolproxyR/data/rules/yhosts.txt
# 给 microsoft.com 放行
sed -i '/microsoft.com/d' $KSROOT/koolproxyR/data/rules/yhosts.txt
# 终极 https 卡顿优化 grep -n 显示行号 awk -F 分割数据 sed -i "${del_rule}d" 需要""" 和{}引用变量
# 当 koolproxyR_del_rule 是1的时候就一直循环,除非 del_rule 变量为空了。
koolproxyR_del_rule=1
while [ $koolproxyR_del_rule = 1 ];do
del_rule=`cat $KSROOT/koolproxyR/data/rules/yhosts.txt | grep -n 'https://' | grep '\*' | grep -v '/\*'| grep -v '\^\*' | grep -v '\*\=' | grep -v '\$s\@' | grep -v '\$r\@'| awk -F":" '{print $1}' | sed -n '1p'`
if [[ "$del_rule" != "" ]]; then
sed -i "${del_rule}d" $KSROOT/koolproxyR/data/rules/yhosts.txt
else
koolproxyR_del_rule=0
fi
done


else
echo_date 跳过优化 补充规则yhosts。。。。。
Expand Down
3 changes: 2 additions & 1 deletion koolproxyR/webs/Module_koolproxyR.asp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ function update_KPR(){
}
function issues_KP(){
window.open("https://github.com/user1121114685/koolproxyR/issues/new/choose");
window.open("https://www.wjx.cn/jq/42669897.aspx");
}
function update_KPR_rule(){
Expand Down
4 changes: 2 additions & 2 deletions version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
2.2.1
b8b8afb4d8919335e1481092a3426e5b
2.2.2
f0c2b9ec082f0c7573d587a0913c939a

0 comments on commit 0728b24

Please # to comment.