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 3px rgba(0,0,0,0.3);font-size:4.5vw;background:#fafafa;\");\n \t\tmyBtn.onclick = function() {\n\t\t\t loadVip(location.href);\n\t\t };\n\t \tdocument.body.appendChild(myBtn);\n \t\tvar myul = document.createElement(\"ul\");\n\t\t myul.id = \"myul2019\";\n\t \tmyul.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;\");\n\t \tfor (var i = 0; i < apis.length; i++) {\n\t \t\tvar myli = document.createElement(\"li\");\n\t \t\tvar that = this;\n \t\t\tmyli.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;\"); \n \t\t\t(function(num) {\n\t\t\t \tmyli.onclick = function() {\n\t\t\t \t\twindow.open(apis[num].url + tryGetRealUrl(location.href), '_blank');\n\t\t \t\t};\n\t\t \t\tmyli.ontouchstart = function() {\n\t\t\t\t \tthis.style.cssText += \"color:yellow;background:#373737;border-radius:1.26vw;\";\n\t\t\t \t};\n\t\t\t \tmyli.ontouchend = function() {\n\t\t\t\t \tthis.style.cssText += \"color:black;background:transparent;border-radius:0;\";\n\t\t\t \t};\n\t\t \t})(i);\n\t\t \tmyli.innerHTML = apis[i].name;\n\t\t \tmyul.appendChild(myli)\n\t \t}\n\t \tdocument.body.appendChild(myul);\n \t\t//让视频区域显示文字,直接解析\n\t\t //showVipTitle(location.href);\n\t }\n\t}\n\tfunction showVipTitle(url) {\n\t\tvar titleStr = \"视频连接成功!点击选择解析接口\";\n\t\tif (url.indexOf(\"iqiyi.com\") != -1) {\n\t\t\tvar iframe = document.getElementById('_if');\n\t\t\tif (iframe) {\n\t\t\t\twindow.location.reload();\n\t\t\t\treturn;\n\t\t\t};\n\t\t\tvar i = document.getElementsByClassName('m-video-player-wrap')[0];\n\t\t\tif (typeof(i) != 'undefined') {\n\t\t\t\ti.style.height = '220px';\n\t\t\t\ti.style.color = '#fff';\n\t\t\t\ti.style.lineHeight = '15';\n\t\t\t\ti.style.position = 'static';\n\t\t\t\ti.style.paddingTop = '0%';\n\t\t\t\ti.style.background = '#000000';\n\t\t\t\ti.style.textAlign = 'center';\n\t\t\t\ti.innerHTML = '<div>' + titleStr + '</div>';\n\t\t\t\ti.addEventListener('tap',\n\t\t\t\tfunction() {\n\t\t\t\t\tloadVip(window.location.href);\n\t\t\t\t})\n\t\t\t};\n\t\t} else if (url.indexOf(\"v.qq.com\") != -1) {\n\t\t\tvar i = document.getElementsByClassName('site_player')[0];\n\t\t\tif (typeof(i) != 'undefined') {\n\t\t\t\ti.style.height = '210px';\n\t\t\t\ti.style.background = '#000000';\n\t\t\t\ti.style.textAlign = 'center';\n\t\t\t\ti.style.color = '#fff';\n\t\t\t\ti.style.lineHeight = '14';\n\t\t\t\ti.innerHTML = '<div>' + titleStr + '</div>';\n\t\t\t\ti.addEventListener('touchstart',\n\t\t\t\tfunction(e) {\n\t\t\t\t\tloadVip(window.location.href);\n\t\t\t\t})\n\t\t\t};\n\t\t} else if (url.indexOf(\"m.le.com\") != -1) {\n\t\t\tvar i = document.getElementsByClassName('playB')[0];\n\t\t\tif (typeof(i) != 'undefined') {\n\t\t\t\ti.style.background = '#000000';\n\t\t\t\ti.innerHTML = '<div>' + titleStr + '</div>';\n\t\t\t\ti.style.width = '100%';\n\t\t\t\ti.style.textAlign = 'center';\n\t\t\t\ti.style.lineHeight = '14';\n\t\t\t\ti.style.color = '#fff';\n\t\t\t\ti.addEventListener('touchstart',\n\t\t\t\tfunction(e) {\n\t\t\t\t\tloadVip(window.location.href);\n\t\t\t\t});\n\t\t\t}\n\t\t} else if (url.indexOf(\"youku.com\") != -1) {\n\t\t\tvar i = document.getElementById('playerBox');\n\t\t\tif (typeof(i) != 'undefined') {\n\t\t\t\ti.style.background = '#000000';\n\t\t\t\ti.style.color = '#fff';\n\t\t\t\ti.style.textAlign = 'center';\n\t\t\t\ti.style.lineHeight = '15';\n\t\t\t\ti.innerHTML = '<div>' + titleStr + '</div>';\n\t\t\t\ti.addEventListener('touchstart',\n\t\t\t\tfunction(e) {\n\t\t\t\t\tloadVip(window.location.href);\n\t\t\t\t});\n\t\t\t}\n\t\t} else if (url.indexOf(\"mgtv.com\") != -1) {\n\t\t\tvar i = document.getElementsByClassName('video-area')[0];\n\t\t\tif (typeof(i) != 'undefined') {\n\t\t\t\ti.style.background = '#000000';\n\t\t\t\ti.style.color = '#fff';\n\t\t\t\ti.style.textAlign = 'center';\n\t\t\t\ti.style.lineHeight = '16';\n\t\t\t\ti.innerHTML = '<div>' + titleStr + '</div>';\n\t\t\t\ti.addEventListener('click',\n\t\t\t\tfunction(e) {\n\t\t\t\t\tloadVip(window.location.href);\n\t\t\t\t});\n\t\t\t}\n\t\t} else if (url.indexOf(\"sohu.com\") != -1) {\n\t\t\tvar i = document.getElementsByClassName('x-player')[0];\n\t\t\tvar x = document.getElementById('top-poster');\n\t\t\tif (typeof(i) != 'undefined') {\n\t\t\t\ti.style.background = '#000000';\n\t\t\t\ti.style.color = '#fff';\n\t\t\t\ti.style.textAlign = 'center';\n\t\t\t\ti.style.lineHeight = '13';\n\t\t\t\ti.innerHTML = '<div>' + titleStr + '</div>';\n\t\t\t\ti.addEventListener('touchstart',\n\t\t\t\tfunction(e) {\n\t\t\t\t\tloadVip(window.location.href);\n\t\t\t\t})\n\t\t\t} else if (typeof(x) != 'undefined') {\n\t\t\t\tx.style.background = '#000000';\n\t\t\t\tx.style.color = '#fff';\n\t\t\t\tx.style.height = '210px';\n\t\t\t\tx.style.textAlign = 'center';\n\t\t\t\tx.style.lineHeight = '13';\n\t\t\t\ti.innerHTML = '<div>' + titleStr + '</div>';\n\t\t\t\tx.addEventListener('click',\n\t\t\t\tfunction() {\n\t\t\t\t\tloadVip(window.location.href);\n\t\t\t\t});\n\t\t\t}\n\t\t} else if (url.indexOf(\"baofeng.com\") != -1) {\n\t\t\tvar myVideo = document.getElementsByTagName('video')[0];\n\t\t\tmyVideo.pause();\n\t\t\tvar i = document.getElementById('videoplayer');\n\t\t\tif (typeof(i) != 'undefined') {\n\t\t\t\ti.style.background = '#000000';\n\t\t\t\ti.style.textAlign = 'center';\n\t\t\t\ti.style.color = '#fff';\n\t\t\t\ti.style.lineHeight = '17';\n\t\t\t\ti.innerHTML = '<div>' + titleStr + '</div>';\n\t\t\t\ti.addEventListener('touchstart',\n\t\t\t\tfunction(e) {\n\t\t\t\t\tloadVip(window.location.href);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\tfunction tryGetRealUrl(url) {\n\t\tvar realUrl = url;\n\t\ttry {\n\t\t\trealUrl = getRealUrl(url);\n\t\t} catch(err) {\n\t\t\tconsole.
Back to home |
File page
Subscribe |
Register |
Login
| N