找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4107|回复: 11

h大固件中的koolproxy怎么用脚本替换更新koolproxyn的规则?

[复制链接]
发表于 2019-11-19 08:29 | 显示全部楼层 |阅读模式

koolproxy规则停更,用网上的替换koolproxyN的脚本不能成功。似乎h大固件中的koolproxy安装目录和文件名和脚本的不一致。请问根据最新版h大固件9-11-13来看,这个定时执行更新规则的脚本应该怎么修改,放在什么位置(我放在etc文件夹下面)?请高手帮忙,不甚感激。

自定义脚本添加,如下:

# 每天凌晨一点二十运行脚本
20 1 * * * /etc/kp.sh


kp.sh文件内容如下:

#!/bin/sh
cd /etc/storage/
# 删除旧版本规则文件
rm -rf koolproxy.txt
rm -rf daily.txt
rm -rf kp.dat
rm -rf user.txt
rm -rf koolproxy.txt.http
rm -rf koolproxy.txt.https
rm -rf user.txt.https
rm -rf user.txt.http
# 下载新版本规则文件
wget -O daily.txt https://raw.githubusercontent.co ... s/easylistchina.txt --no-check-certificate
wget -O koolproxy.txt https://raw.githubusercontent.co ... anboy-annoyance.txt --no-check-certificate
wget -O kp.dat https://raw.githubusercontent.co ... R/data/rules/kp.dat --no-check-certificate

# 下载扩展规则合并
#wget -O koolproxy_tmp.txt https://raw.githubusercontent.co ... /kpr_video_list.txt --no-check-certificate
wget -O daily_tmp.txt https://raw.githubusercontent.co ... ta/rules/yhosts.txt --no-check-certificate

#cat koolproxy_tmp.txt >>koolproxy.txt
cat daily_tmp.txt >>daily.txt

#rm -rf koolproxy_tmp.txt
rm -rf daily_tmp.txt

#  更新自定义规则
cd /etc/storage
rm -rf koolproxy_rules_script.sh
wget -O koolproxy_rules_script.sh https://raw.githubusercontent.co ... er/kpr_our_rule.txt --no-check-certificate
chmod 755 /etc/storage/koolproxy_rules_script.sh

#  关闭KP
nvram set koolproxy_enable=0 && nvram set koolproxy_enable=0 && /tmp/script/_kool_proxy &
#  开启KP
sleep 10
nvram set koolproxy_enable=1 && nvram set koolproxy_enable=1 && /tmp/script/_kool_proxy
我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-11-19 09:10 | 显示全部楼层
我的插了u盘,kp文件在u盘下,可以自动更新规则,爱奇艺,小米可以过滤广告,但腾讯视频无法播放。

点评

我是 新3的 H大 固件 也是在U盘的 发现 使用楼主上文件使用 大部分都是 html下载的 必须手动复制或转化成 koolproxy 自身支持书写格式才行的  详情 回复 发表于 2019-11-20 11:19
固件和我的一样吗?kp文件在U盘的话,脚本怎么写的?  详情 回复 发表于 2019-11-19 10:34
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-19 10:34 | 显示全部楼层
5683130 发表于 2019-11-19 09:10
我的插了u盘,kp文件在u盘下,可以自动更新规则,爱奇艺,小米可以过滤广告,但腾讯视频无法播放。

固件和我的一样吗?kp文件在U盘的话,脚本怎么写的?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-19 14:59 | 显示全部楼层
5683130 发表于 2019-11-19 09:10
我的插了u盘,kp文件在u盘下,可以自动更新规则,爱奇艺,小米可以过滤广告,但腾讯视频无法播放。

我的也是同样,腾讯看不了,换了ADP过滤

点评

脚本怎么写,分享一下。我不看腾讯,不要紧  详情 回复 发表于 2019-11-20 08:48
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-19 23:39 | 显示全部楼层
不知道以后还能有好用的广告插件么
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-20 08:48 | 显示全部楼层
skyroc 发表于 2019-11-19 14:59
我的也是同样,腾讯看不了,换了ADP过滤

脚本怎么写,分享一下。我不看腾讯,不要紧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-20 11:19 | 显示全部楼层
5683130 发表于 2019-11-19 09:10
我的插了u盘,kp文件在u盘下,可以自动更新规则,爱奇艺,小米可以过滤广告,但腾讯视频无法播放。

我是 新3的
H大 固件 也是在U盘的
发现 使用楼主上文件使用 大部分都是 html下载的
必须手动复制或转化成 koolproxy 自身支持书写格式才行的

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-14 20:44 | 显示全部楼层
亲 你好 我现在也是 不想用adbaby  可是KP已经获取不到了,怎么通过自定义自己去弄脚本?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-26 11:01 | 显示全部楼层
请问楼主,问题解决了么?能不能教教我们怎么弄这个脚本文件  直接拷贝到U盘目录下就可以么?  谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-20 10:07 | 显示全部楼层
收藏备用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-10-18 20:03 | 显示全部楼层
koolproxy不会用啊,搞了半天都不知道怎么弄规则,又没有相关教程,搜也搜不到
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-10-23 15:58 | 显示全部楼层
规则文件放哪里呀,我现在只想手动更新好了,自动的不要求了,可是放在TEP的rules里,重启路由又没了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 20:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表