使用github恢复koolproxy VIP接口
[toc]
以前存了一份 @MarIxs 的vip.js,本以为用不上的,结果近来发现这个规则已经失效了,试了一下发现只用替换一下原来的接口就能继续用了,想了想决定把方法分享出来,仅供参考
原作者 @MarIxs 及链接:https://stray.love/wen-ti-jie-jue-fang-an/gei-koolproxy-tian-jia-vip-jie-xi-gong-neng
一、准备github账号,并创建仓库
网上教程会很多,不多赘述
给出两个教程贴:
http://blog.csdn.net/zhaozhiwen6140/article/details/50777920
https://jingyan.baidu.com/article/8cdccae9269b1f315413cde2.html
二、 创建一个vip.js文件,并将以下代码拷贝进去
var thisURL = window.location.href,inum=1,vipOption;
var vipChannl = new Array(
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
"http://Yourdomain.com/index.php?url=",
);
for (x in vipChannl)
{
vipOption = vipOption + '<option value="'+vipChannl[x]+thisURL+'">VIP通道'+inum+++'</option>';
}
function insVIP(emID,rID,index=0,height="100%"){
var gemID = document.getElementsByClassName(emID)[0];
var newNode = document.createElement("select");
newNode.setAttribute("title","整理by MarIxs");
gemID.appendChild(newNode);
newNode.setAttribute("onchange", "replacePlayer(this,'"+rID+"','"+height+"')");
newNode.innerHTML = '<option selected="selected" disabled="disabled">切换VIP通道</option>'+vipOption;
if (index!=0){
newNode.selectedIndex=index;
setTimeout(function () {
var event = document.createEvent("UIEvents");
event.initUIEvent("change", true, true);
newNode.dispatchEvent(event);
}, 1000);
}
}
function replacePlayer(e,rID,height="100%"){
var playerID = document.getElementById(rID);
playerID.innerHTML = '';
var newplayerID = document.createElement("iframe");
playerID.appendChild(newplayerID);
newplayerID.setAttribute("border","0");
newplayerID.setAttribute("frameborder","no");
newplayerID.setAttribute("scrolling","no");
newplayerID.setAttribute("marginwidth","0");
newplayerID.setAttribute("width","100%");
newplayerID.setAttribute("height",height);
newplayerID.src = e.value;
}
接口:
//提取自风沙娱乐 http://www.fengshayun.cn
"http://api.xfsub.com/index.php?url=",
"http://vip.jlsprh.com/index.php?url=",
"http://jx.vgoodapi.com/jx.php?url=",
"http://api.wlzhan.com/sudu/?url=",
"http://v.buy360.vip/cxjx.php?v=",
"http://vip.72du.com/api/?url=",
"http://api.nepian.com/ckparse/?url=",
"http://api.91exp.com/svip/?url=",
"http://qtzr.net/s/?qt=",
"http://www.chepeijian.cn/jiexi/vip.php?url=",
"http://www.wmxz.wang/video.php?url=",
"http://api.baiyug.cn/vip/index.php?url=",
"http://player.jidiaose.com/supapi/iframe.php?v=",
"http://api.pucms.com/index.php?url=",
"http://jiexi.92fz.cn/player/vip.php?url=",
"http://lookxw.com/yingzi/?url=",
"http://api.97kn.com/?url=",
三、获取文件地址
https://raw.githubusercontent.com/示例用户/示例仓库/master/vip.js
四、添加自定义规则
将前面获取到的地址全部替换到以下代码中去,记得替换地址
! 优酷
|http://v.youku.com$s@</body>@</body><script type="text/javascript" charset="utf-8" src="请替换成自己的仓库地址"></script><script>insVIP("fn-phone-see","player","","92%");</script>@
! 芒果
|http://www.mgtv.com$s@</body>@</body><script type="text/javascript" charset="utf-8" src="请替换成自己的仓库地址"></script><script>insVIP("v-panel-count","mgtv-player-wrap","");</script>@
! 腾讯
|https://v.qq.com$s@</body>@</body><script type="text/javascript" charset="utf-8" src="请替换成自己的仓库地址"></script><script>insVIP("action_title","mod_player","");</script>@
! 爱奇艺
|http://www.iqiyi.com$s@</body>@</body><script type="text/javascript" charset="utf-8" src="请替换成自己的仓库地址"></script><script>insVIP("mod-play_tags","flashbox","");</script>@
! 乐视
|http://www.le.com$s@</body>@</body><script type="text/javascript" charset="utf-8" src="请替换成自己的仓库地址"></script><script>insVIP("interact_area","fla_box_con","");</script>@
! 可选:取消iqiyi的自动播放
|http://www.iqiyi.com$s@QiyiPlayerLoader.ready@;@