// ==UserScript== // @name 新方圆VIP解析插件 // @namespace https://github.com/qiusunshine/movienow // @version 1.0.4 // @icon https://www.baidu.com/favicon.ico // @description 新方圆插件,VIP接口解析 // @author 小棉袄66 // @license MIT // @supportURL https://github.com/qiusunshine/movienow // @match *.le.com/* // @match *.iqyi.com/* // @match *.youku.com/* // @match *.letv.com/* // @match *v.qq.com/* // @match *.tudou.com/* // @match *.mgtv.com/* // @match *.sohu.com/* // @run-at document-idle // @grant unsafeWindow // @downloadURL none // ==/UserScript== (function() { //以下是VIP解析第二版 function showTitle(url) { var titleStr = "视频连接成功!点击选择解析接口"; if (url.indexOf("iqiyi.com") != -1) { var iframe=document.getElementById('_if'); if(iframe){ window.location.reload(); return; }; var i=document.getElementsByClassName('m-video-player-wrap')[0]; if(typeof(i) != 'undefined'){ i.style.height='220px'; i.style.color='#fff'; i.style.lineHeight='15'; i.style.position='static'; i.style.paddingTop='0%'; i.style.background='#000000'; i.style.textAlign='center'; i.innerHTML='
' + titleStr + '
'; i.addEventListener('tap',function(){ loadVip(window.location.href); }) }; } else if (url.indexOf("v.qq.com") != -1) { var i=document.getElementsByClassName('site_player')[0]; if(typeof(i) != 'undefined'){ i.style.height='210px'; i.style.background='#000000'; i.style.textAlign='center'; i.style.color='#fff'; i.style.lineHeight='14'; i.innerHTML='
' + titleStr + '
'; i.addEventListener('touchstart',function(e){ loadVip(window.location.href); }) }; } else if (url.indexOf("m.le.com") != -1) { var i=document.getElementsByClassName('playB')[0]; if(typeof(i) != 'undefined'){ i.style.background='#000000'; i.innerHTML='
' + titleStr + '
'; i.style.width='100%'; i.style.textAlign='center'; i.style.lineHeight='14'; i.style.color='#fff'; i.addEventListener('touchstart',function(e){ loadVip(window.location.href); }); } } else if (url.indexOf("youku.com") != -1) { var i=document.getElementById('playerBox'); if(typeof(i) != 'undefined'){ i.style.background='#000000'; i.style.color='#fff'; i.style.textAlign='center'; i.style.lineHeight='15'; i.innerHTML='
' + titleStr + '
'; i.addEventListener('touchstart',function(e){ loadVip(window.location.href); }); } } else if (url.indexOf("mgtv.com") != -1) { var i=document.getElementsByClassName('video-area')[0]; if(typeof(i) != 'undefined'){ i.style.background='#000000'; i.style.color='#fff'; i.style.textAlign='center'; i.style.lineHeight='16'; i.innerHTML='
' + titleStr + '
'; i.addEventListener('click',function(e){ loadVip(window.location.href); }); } } else if (url.indexOf("sohu.com") != -1) { var i=document.getElementsByClassName('x-player')[0]; var x=document.getElementById('top-poster'); if(typeof(i) != 'undefined'){ i.style.background='#000000'; i.style.color='#fff'; i.style.textAlign='center'; i.style.lineHeight='13'; i.innerHTML='
' + titleStr + '
'; i.addEventListener('touchstart',function(e){ loadVip(window.location.href); }) }else if(typeof(x) != 'undefined'){ x.style.background='#000000'; x.style.color='#fff'; x.style.height='210px'; x.style.textAlign='center'; x.style.lineHeight='13'; i.innerHTML='
' + titleStr + '
'; x.addEventListener('click',function(){ loadVip(window.location.href); }); } } else if (url.indexOf("fun.tv") != -1) { var myVideo=document.getElementById('m-h5v-video-1'); if(typeof(myVideo) != 'undefined'){ myVideo.pause() }; var i=document.getElementById('m-h5v-player-1'); if(typeof(i) != 'undefined'){ i.style.background='#000000'; i.style.color='#fff'; i.style.lineHeight='12'; i.innerHTML='
' + titleStr + '
'; i.addEventListener('touchstart',function(e){ loadVip(window.location.href); }); } } else if (url.indexOf("baofeng.com") != -1) { var myVideo=document.getElementsByTagName('video')[0]; myVideo.pause(); var i=document.getElementById('videoplayer'); if(typeof(i) != 'undefined'){ i.style.background='#000000'; i.style.textAlign='center'; i.style.color='#fff'; i.style.lineHeight='17'; i.innerHTML='
' + titleStr + '
'; i.addEventListener('touchstart',function(e){ loadVip(window.location.href); }); } } } function tryGetRealUrl(url){ var realUrl = url; try { realUrl = getRealUrl(url); } catch (err) { console.log(err); } return realUrl; } function getYoukuRealUrl(url){ var li = document.getElementsByClassName('hot-row-bottom')[0].children[0]; var data = li.getAttribute('data-param'); var s = data.split('svid='); if(s.length>1){ var svid = s[1].split('&')[0]; return 'https://v.youku.com/v_show/id_'+svid+'.html'; } return url; } function getRealUrl(url){ var dataurl2 = url; var txurlc = dataurl2.split(":"); var txurl = txurlc[1].slice(0, 12); var ykurl = txurlc[1].slice(0, 13); var ykdata = txurlc[1].slice(13); var funurl = txurlc[1].slice(0, 11); if(ykurl == '//m.youku.com'){ return getYoukuRealUrl(url); } if (ykurl == '//m.youku.com') { var txurlc = dataurl2.split(":"); var ykurl = txurlc[1].slice(0, 13); var ykdata = txurlc[1].slice(13); dataurl2 = 'http://www.youku.com' + ykdata; } else if(ykurl == '//m.iqiyi.com') { var txurlc = dataurl2.split(":"); var ykurl = txurlc[1].slice(0, 13); var ykdata = txurlc[1].slice(13); dataurl2 = 'https://www.iqiyi.com' + ykdata; } else if (txurl == '//m.v.qq.com') { var vid = getParam(dataurl2, "vid"); var cid = getParam(dataurl2, "cid"); var txdata2 = dataurl2.split("?"); var str = "play.html"; if(txdata2[0].slice(txdata2[0].length-str.length)==str){ if(cid.length > 1){ dataurl2 = "https://v.qq.com/x/cover/" + cid + ".html"; return dataurl2; }else if(vid.length == 11) { return "https://v.qq.com/x/page/" + vid + ".html"; } } cid = txdata2[0].slice(-20, -5); if (vid.length == 11) { dataurl2 = 'https://v.qq.com/x/cover/' + cid + '/' + vid + '.html'; } else { dataurl2 = 'https://v.qq.com/x/cover/' + cid + '.html'; } } else if (ykurl == '//m.le.com/vp') { var leurlc = dataurl2.split("_"); var leurl = leurlc[1]; dataurl2 = 'http://www.le.com/ptv/vplay/' + leurl; } return dataurl2; } function getParam(dataurl2, name) { return dataurl2.match(new RegExp('[?&]' + name + '=([^?&]+)', 'i')) ? decodeURIComponent(RegExp.$1) : ''; } function loadVip(url){ var myBtn = document.getElementById("myBtn"); // var realUrl = tryGetRealUrl(url); // console.log(realUrl); var myul = document.getElementById("myul"); if (myul.style.display == "none") { myul.style.display = "block"; myBtn.innerHTML = "➕"; myBtn.style.transform = "rotateZ(45deg)" } else { myul.style.display = "none"; myBtn.innerHTML = "▶"; myBtn.style.transform = "rotateZ(0deg)" } } //以上是第二版 //以下是第一版 var domain = location.href.split("?"); var ye = ""; var apis = [ {"name":"初心解析","url":"http://jx.bwcxy.com/?v="}, {"name":"芒果蓝光解析","url":"http://www.guandianzhiku.com/v/s/?url="}, {"name":"科技解析","url":"http://ka61b.cn/jx.php?url="}, {"name":"初见解析","url":"http://xiaojx.two3.cn/jx/?url="}, {"name":"黑米解析","url":"https://www.heimijx.com/jx/api/?url="}, {"name":"飞鸟云播","url":"http://jx.ledboke.com/?url="}, {"name":"傻猫解析","url":"http://www.sillycat.xyz/jx/?url="}, {"name":"黑云解析","url":"http://jx.daheiyun.com/?url="}, {"name":"冰河解析","url":"http://jx.duzhiqiang.com/?url="}, {"name":"狸猫解析","url":"http://111jx.xyz/?url="}, {"name":"Beaacc","url":"https://beaacc.com/api.php?url="}, {"name":"我爱解析","url":"http://jx.52a.ink/?url="}, {"name":"超能解析","url":"http://jiexi.44cn.net/vipjx/?url="}, {"name":"44云线路","url":"http://jiexi.44cn.net/byg/index.php?url="}, {"name":"360dy解析","url":"http://yun.360dy.wang/jx.php?url="}, {"name":"aldsw解析","url":"http://jx.aldsw.cn/jx/index.php?url="}, {"name":"7usp解析","url":"https://www.7usp.com/mfjx/?url="}, {"name":"1907影视","url":"https://z1.m1907.cn/?jx="}, {"name":"范特尔","url":"http://jx.79it.cn/?url="}, {"name":"OK解析","url":"http://okjx.cc/?url="}, {"name":"玩得嗨","url":"http://tv.wandhi.com/go.html?url="}, {"name":"图几度","url":"http://vip.tujidu.com/vip/?url="}, {"name":"糖果解析","url":"https://www.tg321.cn/jx/?url="}, {"name":"陌言解析","url":"http://apitvk.sskweb.cn/ckmov/qq2874678902.php?url="}, {"name":"久久云解析","url":"http://jx.99yyw.com/api/?url="}, {"name":"三岁VIP解析","url":"http://sc.sansuib.cn/?url="}, {"name":"芽芽智能","url":"http://jx.yayaol.xyz/?url="}, {"name":"军军影视","url":"http://jx.jjvipw.cn/?url="}, {"name":"解析接口","url":"https://www.myxin.top/jx/api/?url="}, {"name":"A.xinVIP解析","url":"http://tv.cuione.cn/?url="}, {"name":"万能","url":"http://api.lkdmkj.com/jx/jx00/index.php?url="}, {"name":"免VIP智能","url":"https://v.mvipsp.top/?v="}, {"name":"雨见解析","url":"http://vip.55cc.top/wabi/yujianweb.php?url="}, {"name":"全民解析1","url":"http://jx.598110.com/index.php?url="}, {"name":"新决起","url":"http://api.zuilingxian.com/jiexi.php?url="}, {"name":"yun Parse1","url":"http://jx.api.163ren.com/vod.php?url="}, {"name":"yun Parse2","url":"http://api.jx.bugxx.com/cfee/vod.php?url="}, {"name":"17K云","url":"http://17kyun.com/api.php?url="}, {"name":"高端解析","url":"http://api.51ckm.com/jx.php?url="}, {"name":"高端解析1","url":"http://api.hlglwl.com/jx.php?url="}, {"name":"无广告","url":"http://jx1.00vb.com/?url="}, {"name":"vip免费","url":"http://jx.0len.cn/?url="}, {"name":"vip多线路","url":"http://api.ledboke.com/vip/?url="}, {"name":"ovov解析","url":"http://jx.ovov.cc/?url="}, {"name":"Duplay解析","url":"http://jx.du2.cc/?url="}, {"name":"VIP解析","url":"http://api.kq1f.cn/vip/index.php?url="}, {"name":"M3U8解析","url":"http://vip.fxw.la/m3u8/index.php?url="}, {"name":"AT520","url":"http://at520.cn/jx/?url="}, {"name":"风流解析","url":"http://www.unfff.com/ck/index.php?url="}, {"name":"乐看解析","url":"http://jx.anlehe.com/?url="}, {"name":"船长解析","url":"http://czjx8.com/?url="}, {"name":"巢云","url":"http://www.dgua.xyz/webcloud/?url="}, {"name":"酷博","url":"http://jx.x-99.cn/api.php?id="}, {"name":"金桥解析","url":"http://jqaaa.com/jx.php?url="}, {"name":"雪狐影视","url":"http://vip.gzzza.com/vip.php?url="}, {"name":"石头云","url":"http://jiexi.071811.cc/jx.php?url="}, {"name":"那片","url":"http://api.nepian.com/ckparse/?url="}, {"name":"1717云","url":"http://www.1717yun.com/jx/ty.php?url="}, {"name":"牛巴巴","url":"http://mv.688ing.com/player?url="}, {"name":"爱看TV","url":"http://aikan-tv.com/?url="}, {"name":"FlvPS","url":"https://api.flvsp.com/?url="}, {"name":"速度牛","url":"http://api.wlzhan.com/sudu/?url="}, {"name":"88wx","url":"http://vip.jlsprh.com/index.php?url="}, {"name":"ODFLV","url":"https://yun.odflv.com/?url="}, {"name":"030E","url":"https://030e.com/0302/?url="}, {"name":"xiguaimg","url":"https://api.xiguaimg.com/odflv105/index.php?url="}, {"name":"660e","url":"https://660e.com/?url="}, {"name":"极速播放","url":"https://vip.vbhz.top/2020032710385/?url="}, {"name":"云播放","url":"https://y.mt2t.com/lines?url="}, {"name":"8090解析","url":"https://www.8090g.cn/?url="}, {"name":"WoCao","url":"https://www.wocao.xyz/index.php?url="}, {"name":"ccav5","url":"http://ccav5.ml/m/jx.html?url="}, {"name":"思古解析","url":"https://api.sigujx.com/?url="}, {"name":"神马解析","url":"http://baidukan.top/jx.php?url="}, {"name":"超快解析","url":"https://jx.ivito.cn/?url="}, {"name":"骁亿","url":"http://511xy.cc/jx?url="}, {"name":"超清干货","url":"http://k8aa.com/jx/index.php?url="}, {"name":"18云","url":"http://api.nobij.top/jx/?url="}, {"name":"免费接口24","url":"http://jx.hezeshi.net/index.php?url="}, {"name":"FreeGet","url":"http://www.freeget.org/jx.php?url="}, {"name":"618G","url":"https://jx.618g.com/?url="}]; if (domain[0].match(".iqiyi.com") || domain[0].match(".youku.com") || domain[0].match(".le.com") || domain[0].match(".letv.com") || domain[0].match("v.qq.com") || domain[0].match(".tudou.com") || domain[0].match(".mgtv.com") || domain[0].match(".sohu.com")) { var myBtn = document.createElement("div"); myBtn.id = "myBtn"; myBtn.innerHTML = "▶"; myBtn.setAttribute("style", "width:12vw;height:12vw;position:fixed;bottom:25vh;right:10vw;z-index:100000;border-radius:100%;text-align:center;line-height:12vw;box-shadow:0px 1px 10px rgba(0,0,0,0.3);font-size:4.5vw;background:#fff;"); myBtn.onclick = function() { loadVip(location.href); }; document.body.appendChild(myBtn); var myul = document.createElement("ul"); myul.id = "myul"; myul.setAttribute("style", "display:none;background:#fff;box-shadow:0px 1px 10px rgba(0,0,0,0.3);margin:0;padding:0 4.2vw;position:fixed;bottom:35vh;right:12vw;z-index:99999;height:60vh;overflow:scroll;border-radius:1.26vw;"); for (var i = 0; i < apis.length; i++) { var myli = document.createElement("li"); var that = this; myli.setAttribute("style", "margin:0;padding:0;display:block;list-style:none;font-size:4.2vw;width:33.6vw;text-align:left;line-height:12.6vw;letter-spacing:0;border-bottom:1px solid #f0f0f0;position:relative;overflow:hidden;text-overflow:hidden;white-space:nowrap;"); (function(num) { myli.onclick = function() { window.open(apis[num].url + tryGetRealUrl(location.href), '_blank') }; myli.ontouchstart = function() { this.style.cssText += "color:yellow;background:#373737;border-radius:1.26vw;" } myli.ontouchend = function() { this.style.cssText += "color:black;background:transparent;border-radius:0;" } })(i); myli.innerHTML = apis[i].name; myul.appendChild(myli) } document.body.appendChild(myul); //让视频区域显示文字,直接解析 showTitle(location.href); } })();