// ==UserScript==
// @name 🔥🔥🔥全网VIP视频免费破解,广告自动跳过,自用脚本长期维护🔥🔥🔥
// @namespace www.zbhui.cn
// @version 1.0.7
// @description 支持腾讯视频、爱奇艺、哔哩哔哩(B站)、1905、AcFun、风行、华数、乐视、芒果TV、咪咕视频、PP视频(PPTV)、搜狐、土豆、西瓜、优酷VIP视频破解免费看、非VIP视频去广告;
// @author zbhui
// @include *://xbeibeix.com/api/bilibili/biliplayer/*
// @include *://xbeibeix.com/api/bilibili/*
// @include *://*.youku.com/v_*
// @include *://*.iqiyi.com/v_*
// @include *://*.iqiyi.com/w_*
// @include *://*.iqiyi.com/a_*
// @include *://*.le.com/ptv/vplay/*
// @include *://v.qq.com/x/cover/*
// @include *://v.qq.com/x/page/*
// @include *://v.qq.com/tv/*
// @include *://*.tudou.com/listplay/*
// @include *://*.tudou.com/albumplay/*
// @include *://*.tudou.com/programs/view/*
// @include *://*.mgtv.com/b/*
// @include *://film.sohu.com/album/*
// @include *://tv.sohu.com/v/*
// @include *://*.acfun.cn/v/*
// @include *://*.bilibili.com/video/*
// @include *://*.bilibili.com/bangumi/play/*
// @include *://*.baofeng.com/play/*
// @include *://vip.pptv.com/show/*
// @include *://v.pptv.com/show/*
// @include *://www.le.com/ptv/vplay/*
// @include *://vip.1905.com/play/*
// @include *://www.wasu.cn/Play/show/*
// @include *://www.acfun.cn/v/*
// @include *://m.v.qq.com/x/cover/*
// @include *://m.v.qq.com/x/page/*
// @include *://m.v.qq.com/*
// @include *://m.iqiyi.com/*
// @include *://m.iqiyi.com/kszt/*
// @include *://m.youku.com/alipay_video/*
// @include *://m.mgtv.com/b/*
// @include *://m.tv.sohu.com/v/*
// @include *://m.film.sohu.com/album/*
// @include *://m.le.com/ptv/vplay/*
// @include *://m.pptv.com/show/*
// @include *://m.acfun.cn/v/*
// @include *://m.bilibili.com/video/*
// @include *://m.bilibili.com/anime/*
// @include *://m.bilibili.com/bangumi/play/*
// @include *://m.wasu.cn/Play/show/*
// @include *://www.youtube.com
// @include *://www.youtube.com/
// @include *://www.youtube.com/watch*
// @include *://www.facebook.com/*
// @include *://yt1s.com/facebook-downloader
// @require https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @require https://cdn.bootcss.com/jquery.qrcode/1.0/jquery.qrcode.min.js
// @grant unsafeWindow
// @grant GM_openInTab
// @grant GM.openInTab
// @grant GM_getValue
// @grant GM.getValue
// @grant GM_setValue
// @grant GM.setValue
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
// @grant GM_registerMenuCommand
// @license GPL License
// @charset UTF-8
// ==/UserScript==
(function() {
'use strict';
const tools={
sleep:(time)=>{
return new Promise((resolve) => setTimeout(resolve, time));
},
};
const video={
isAuto:false,
playerParse:$("<div id='iframe-play-div' style='width:100%;height:100%;z-index:1000;'><iframe id='iframe-player' frameborder='0' allowfullscreen='true' width='100%' height='100%'></iframe></div>"),
player:'',
host:window.location.host,
href:window.location.href,
isVip:false,
currentVideo:null,
playerList: [
{"name": "Blbo", "type": "1", "url": "https://jx.blbo.cc:4433/?url="},
{"name": "无名小站", "type": "1", "url": "https://www.administratorw.com/video.php?url="},
{"name": "M3U8TV", "type": "1", "url": "https://jx.m3u8.tv/jiexi/?url="},
{"name": "综合/B站", "type": "1", "url": "https://jx.bozrc.com:4433/player/?url="},
//{"name": "天翼", "type": "1", "url": "https://jsap.attakids.com/?url="},
{"name": "m1907", "type": "1", "url": "https://z1.m1907.cn/?jx="},
{"name": "Player-JY", "type": "1", "url": "https://jx.playerjy.com/?url="},
{"name": "虾米", "type": "1", "url": "https://jx.xmflv.com/?url="},
{"name": "OK", "type": "1", "url": "https://api.okjx.cc:3389/jx.php?url="},
{"name": "OKJX", "type": "1", "url": "https://okjx.cc/?url="},
// {"name": "乐多", "type": "1", "url": "https://api.leduotv.com/wp-api/ifr.php?isDp=1&vid="},
{"name": "MAO", "type": "1", "url": "https://www.mtosz.com/m3u8.php?url="},
{"name": "爱豆", "type": "1", "url": "https://jx.aidouer.net/?url="},
{"name": "夜幕", "type": "1", "url": "https://www.yemu.xyz/?url="},
// {"name": "七彩", "type": "1", "url": "https://www.xymav.com/?url="},
//{"name": "铭人云", "type": "1", "url": "https://parse.123mingren.com/?url="},
{"name": "4kdv", "type": "1", "url": "https://jx.4kdv.com/?url="},
{"name": "1717", "type": "1", "url": "https://ckmov.ccyjjd.com/ckmov/?url="},
{"name": "qianqi", "type": "1", "url": "https://api.qianqi.net/vip/?url="},
{"name": "laobandq", "type": "1", "url": "https://vip.laobandq.com/jiexi.php?url="},
{"name": "playm3u8", "type": "1", "url": "https://www.playm3u8.cn/jiexi.php?url="},
{"name": "CK", "type": "1", "url": "https://www.ckplayer.vip/jiexi/?url="},
{"name": "盘古", "type": "1", "url": "https://go.yh0523.cn/y.cy?url="},
{"name": "解析la", "type": "1", "url": "https://api.jiexi.la/?url="},
{"name": "H8", "type": "1", "url": "https://www.h8jx.com/jiexi.php?url="},
{"name": "17云", "type": "1", "url": "https://www.1717yun.com/jx/ty.php?url="},
{"name": "pangu", "type": "1", "url": "https://www.pangujiexi.cc/jiexi.php?url="},
{"name": "m1907", "type": "2", "url": "https://z1.m1907.cn/?jx="},
{"name": "Player-JY", "type": "2", "url": "https://jx.playerjy.com/?url="},
{"name": "虾米", "type": "2", "url": "https://jx.xmflv.com/?url="},
{"name": "MAO", "type": "2", "url": "https://www.mtosz.com/m3u8.php?url="},
{"name": "M3U8TV", "type": "2", "url": "https://jx.m3u8.tv/jiexi/?url="},
{"name": "七彩", "type": "2", "url": "https://www.xymav.com/?url="},
{"name": "qianqi", "type": "2", "url": "https://api.qianqi.net/vip/?url="},
{"name": "laobandq", "type": "2", "url": "https://vip.laobandq.com/jiexi.php?url="},
{"name": "无名小站", "type": "2", "url": "https://www.administratorw.com/video.php?url="},
{"name": "CK", "type": "2", "url": "https://www.ckplayer.vip/jiexi/?url="},
{"name": "Blbo", "type": "2", "url": "https://jx.blbo.cc:4433/?url="}
],
node:[
{"url":"w.mgtv.com","type": "2","node":"#mgtv-player-wrap"},
{"url":"www.mgtv.com","type": "2","node":"#mgtv-player-wrap"},
{"url":"m.mgtv.com","type": "2","node":".mg-video"},
{"url": "www.iqiyi.com","type": "2","node": "#flashbox"},
{"url": "m.iqiyi.com","type": "2","node": ".m-video-player"},
{"url":"v.youku.com","type": "2","node":"#player"},
{"url":"m.youku.com","type": "2","node":".ykplayer"},
{"url":"v-wb.youku.com","type": "2","node":"#player"},
{"url":"vku.youku.com","type": "1","node":"#player"},
{"url":"video.tudou.com","type": "2","node":".td-playbox"},
{"url":"v.qq.com","type": "2","node" :"#player-container"},//"node": "#mod_player"
{"url":"m.v.qq.com","type": "2","node": "#player"},
{"url":"3g.v.qq.com","type": "2","node": "#mod_player"},
{"url":"tv.sohu.com","type": "2","node":"#player"},
{"url":"pad.tv.sohu.com","type": "2","node":"#player"},
{"url":"m.tv.sohu.com","type": "2","node":".x-player"},
{"url":"film.sohu.com","type": "2","node":"#playerWrap"},
{"url":"www.acfun.cn","type": "2","node": "#player"},
{"url":"m.fun.tv","type": "2","node": "#j-player-layout"},
{"url":"fun.tv","type": "1","node": "#html-video-player-layout"},
{"url":"www.le.com","type": "2","node":"#le_playbox"},
{"url":"m.le.com","type": "2","node":"#j-player"},
{"url":"vip.1905.com","type": "2","node":"#player"},
{"url":"v.pptv.com","type": "2","node":"#pptv_playpage_box"},
{"url":"vip.pptv.com","type": "2","node":".w-video"},
{"url":"m.pptv.com","type": "2","node":".p-video"},
{"url":"www.wasu.cn","type": "2","node":"#flashContent"},
{"url":"www.bilibili.com","type": "2","node":"#player_module"}
],
initCss:()=>{
GM_addStyle(`
#vbox {cursor:pointer; position:fixed; top:200px; left:8px; width:0px; z-index:2147483647; font-size:16px; text-align:left;}
#vip_movie_box .item_text {}
#vbox .item_text .img_box{width:26px; height:35px;line-height:35px;text-align:center;background-color:#E5212E;}
#vbox .item_text .img_box >img {width:20px; display:inline-block; vertical-align:middle;}
#vbox .vip_mod_box_action {display:none; position:absolute; left:26px; top:0; text-align:center; background-color:#272930; border:1px solid gray;}
#vbox .vip_mod_box_action li{border-radius:2px; font-size:12px; color:#DCDCDC; text-align:center; width:60px; line-height:21px; float:left; border:1px solid gray; padding:0 4px; margin:4px 2px;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;-o-text-overflow:ellipsis;}
#vbox .vip_mod_box_action li:hover{color:#E5212E; border:1px solid #E5212E;}
#vbox li.selected{color:#E5212E; border:1px solid #E5212E;}
#vbox .selected_text {margin-top:5px;}
#vbox .selected_text .img_box{width:26px; height:35px;line-height:35px;text-align:center;background-color:#E5212E;}
#vbox .selected_text .img_box >img {width:20px; height:20px;display:inline-block; vertical-align:middle;}
#vbox .vip_mod_box_selected {display:none;position:absolute; left:26px; top:0; text-align:center; background-color:#F5F6CE; border:1px solid gray;}
#vbox .vip_mod_box_selected ul{overflow-y: auto;}
#vbox .vip_mod_box_selected li{border-radius:2px; font-size:12px; color:#393AE6; text-align:center; width:95px; line-height:27px; float:left; border:1px dashed gray; padding:0 4px; margin:4px 2px;display:block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
#vbox .vip_mod_box_selected li:hover{color:#E5212E; border:1px solid #E5212E;}
#vbox .default-scrollbar-55678::-webkit-scrollbar{width:5px; height:1px;}
#vbox .default-scrollbar-55678::-webkit-scrollbar-thumb{box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.2); background:#A8A8A8;}
#vbox .default-scrollbar-55678::-webkit-scrollbar-track{box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.2); background:#F1F1F1;}
`);
},
initHtml:()=>{
let img = `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAC9klEQVRoQ+2ZPWgVQRDH/7/CWqOIYOFHFbRSjJhGMGDpByoIago70cqvUtQgdipWFqawMWghGIidhcHKQAJqEURBRfED1CCCjc3IPu4em31775J7d3m8cAtX3O7szP7nPzszx6EeH/T4+VUD6DaDTQbMbE+3D7MY+8Ckkw8BPFuMki7KDtUAuuh9Z3oZMtBljxY2X9eBwq4raWPNQEmOLKxm+TBgZqsknQ1dAVzNco+ZhWsm6ZakHZLC1mQyrZ5OX2RvzMxnSa8lzQJ/YwLzGDCze5JOeoI/gbVtAMxJ6vPW7wKnkr4qbEuaxccDcGWBsfNV0mjMmSGAg5LGA6XbgFehITPbLel5MN84ZAUAUjMPgWO+zZY7YGbvJW0OvRoB8EjSEW9+BhhIvOvCp0wGfPPbgZfpRAzATUnn56GEmJyLd39cBNxeF99FADTa42BskuQef4wDh9oB2CXpRbDpMPA4nTOz05LuBDLrgW+dAACGIkxfkHTDm/8DrMwEkBxgOskkqdwEcMAD4GLf3YF0PACOe+uFGMgA4Bj4EAAbAGbcXLQOmNklSdeCTRuBT2bWL+lNsLYfeFIRgH2SJgJ7GwCXYjMBrJb0K9jUiHEzG5F02VubA9b4skXvQMiAmW2VdFSSn24/As0kk1mJzeyppL3ewaaBnWY2K2mLNz8S5ueCAMLwz3q/DZxreweSe3BC0v1Ai7tkYXrsB96WwMBCAfQBv3MBJCD+SVrhaXaZ54z3PgUMhpYrZKCF7bbNnJk5BhwT6fghyW8thoGxigE4my6tXwemQlt5AGI1oamDSIFLmCuURiW5BOGPL8C7drGV206b2XdJ6yJKxoDhmPKCIeS61ZZClncxFgLAtcyxrnEwRmknDFQFIFYTWnJ/CVmoGgYSj7Z81OR86Lg7sOgPmnY6s0IpN4TyYrDb6zWAmoEOPVCHUIcO7Hh7/YemYxcWU7AMf3BkNGDF/FP9rkwGqjddkoWWv5Ql6V1yNXUdWHKXBwZ7noH/dP+HQNqheToAAAAASUVORK5CYII=`;
let html1="", html2 = "";
video.playerList.forEach((v, k) => {
if (v.type === "1") {
html1 += "<li title='" + v.name + "' data-k='" + k + "'>" + v.name + "</li>";
}
if (v.type === "2") {
html2 += "<li title='" + v.name + "' data-k='" + k + "'>" + v.name + "</li>";
}
});
let html = `<div id='vbox'>
<div class='item_text'>
<div class="img_box" id="img_box_6667897iio"><img src='` + img + `' title='点击跳转到综合解析页面,线路随意选!'/></div>
<div class='vip_mod_box_action' >
<div style='display:flex;'>
<div style='padding:10px 0px; width:380px; max-height:400px; overflow-y:auto;' class="default-scrollbar-55678">
<div>
<div style='font-size:16px; text-align:center; color:#E5212E; padding:5px 0px;'><b>视频解析[内嵌播放]</b></div>
<ul>
` + html1 + `
<div style='clear:both;'></div>
</ul>
</div>
<div>
<div style='font-size:16px; text-align:center; color:#E5212E; padding:5px 0px;'><b>视频解析[弹窗播放]</b></div>
<ul>
` + html2 + `
<div style='clear:both;'></div>
</ul>
</div>
</div>
<div>
</div>
</div>
</div>
</div>
`;
$("body").append(html);
},
closeAD:()=>{
if (video.host == 'v.qq.com') {
setInterval(() => {
try {
let advs = $('.txp_ad').find('txpdiv').find('video');
advs.each(function(index, vobj) {
if (vobj.duration !== vobj.currentTime) {
vobj.setAttribute('src', '');
}
})
} catch (e) {}
}, 10);
setInterval(function() {
$(document).on('click', '.mod_episode a', function(e) {
e.preventDefault()
window.location.href = $(this).attr('href');
})
$(document).on('click', '.episode-list-rect__item div', function(e) {
e.preventDefault()
let vhref=window.location.href;
let index = vhref .lastIndexOf("\/");
window.location.href =vhref.substring(0,index)+'/'+$(this).attr('data-vid')+'.html';
})
}, 1000)
} else if (video.host == 'm.v.qq.com' || video.host=='3g.v.qq.com') {
setInterval(() => {
try {
$("#vipPosterContent").remove();//移除VIP电影收费弹窗
if($('.txp_ad')[0] && !$('.txp_ad').hasClass("txp_none")){
$('video').each(function (i,vobj) {
vobj.setAttribute('src', null)
});
}
href = window.location.href
} catch (e) {}
}, 150);
} else if (video.host == 'www.iqiyi.com') {
try {
unsafeWindow.rate = 0;
unsafeWindow.Date.now = () => {
return new unsafeWindow.Date().getTime() + (unsafeWindow.rate += 1000);
}
setInterval(() => {
unsafeWindow.rate = 0;
}, 600000);
} catch (e) {}
setInterval(() => {
try {
if (document.getElementsByClassName("cupid-public-time")[0] != null) {
$(".skippable-after").css("display", "block");
document.getElementsByClassName("skippable-after")[0].click();
}
$(".qy-player-vippay-popup").css("display", "none");
$(".black-screen").css("display", "none");
} catch (e) {}
}, 500);
setInterval(function() {
$(document).on('click', '.qy-episode-num .select-item a', function(e) {
e.preventDefault()
window.location.href = $(this).attr('href');
})
}, 1000)
}else if (video.host == 'm.iqiyi.com') {
setInterval(() => {
try {
if(!$('.normal-public-time').is(":hidden")){
$('video').each(function (i,vobj) {
vobj.currentTime=888;
});
}
href = window.location.href
} catch (e) {}
}, 100);
} else if (video.host == 'v.youku.com' || video.host == 'v-wb.youku.com' || video.host=='vku.youku.com') {
window.onload = function() {
try {
if (!document.querySelectorAll('video')[0]) {
setInterval(function() {
document.querySelectorAll('video')[1].playbackRate = 16;
}, 100)
}
} catch (e) {}
}
setInterval(() => {
try {
var H5 = $(".h5-ext-layer").find("div")
if (H5.length != 0) {
$(".h5-ext-layer div").remove();
var btn = $(".control-left-grid .control-play-icon");
if (btn.attr("data-tip") === "播放") {
$(".h5player-dashboard").css("display", "block");
btn.click();
$(".h5player-dashboard").css("display", "none");
}
}
var adv=$('.advertise-layer').find('div').find('video');
if(adv.length>0){
adv.each(function(index,vobj){
if (vobj.duration !== vobj.currentTime) {
vobj.currentTime = 500;
}
})
}
if ($(".kui-abortlayer-play-btn").html() === "播 放") {
$(".kui-abortlayer-play-btn").click();
}
$(".information-tips").css("display", "none");
} catch (e) {}
}, 50);
}else if(video.host=='m.youku.com'){
setInterval(() => {
try {
if(!$('.x-advert').is(":hidden")){
$('video').each(function (i,vobj) {
vobj.setAttribute('src', null)
});
}
$(".x-noticeshow").remove();
} catch (e) {}
}, 550);
}else if (video.host == 'tv.sohu.com') {
setInterval(() => {
try {
let vobject=$(".x-video-adv").find('video');
vobject.each(function(index,vobj){
if (vobj.duration !=vobj.currentTime) {
vobj.currentTime = 500;
}
})
$(".x-video-adv").css("display", "none");
$(".x-player-mask").css("display", "none");
$("#player_vipTips").css("display", "none");
} catch (e) {}
}, 550);
setInterval(function() {
$(document).on('click', '.list_juji li a', function(e) {
e.preventDefault()
window.location.href = $(this).attr('href');
})
}, 1000)
}else if (video.host == 'm.tv.sohu.com' || video.host=='pad.tv.sohu.com') {
setInterval(() => {
try {
if(!$('.x-ad-panel').is(":hidden")){
$('video').each(function (i,vobj) {
vobj.playbackRate=5.5
});
}
} catch (e) {}
},550);
setInterval(function() {
$(document).on('click', '.list_juji li a', function(e) {
e.preventDefault()
window.location.href = $(this).attr('href');
})
}, 1000)
}else if(video.host=='www.mgtv.com' || video.host=='w.mgtv.com'){
setInterval(() => {
try {
if($('.as_fill_player')[0]){
$('video').each(function (i,vobj) {
vobj.currentTime = 1000;
});
}
$('.as-pause_container').css('display', 'none');
$('.as_stages-wrapper').css('display', 'none');
$('.m-agreement').remove();
} catch (e) {}
}, 550);
}else if(video.host=='m.mgtv.com'){
setInterval(() => {
try {
if(!$('.ad-time-area2').is(":hidden")){
$('video').each(function (i,vobj) {
vobj.setAttribute('src', null)
});
}
} catch (e) {}
}, 550);
}else if(video.host=='www.le.com'){
setInterval(() => {
try {
if($(".vdo_post_time")[0]){
$('video').each(function (i,vobj) {
vobj.setAttribute('src', null)
});
}
} catch (e) {}
}, 550);
}else if(video.host=='www.bilibili.com'){
setInterval(() => {
try {
$(document).on('click', '.ep-item a', function(e) {
e.preventDefault()
window.location.href = $(this).attr('href');
})
} catch (e) {}
}, 550);
}
},
initEvent:()=>{
$(".item_text").on("mouseover", () => {
$(".vip_mod_box_action").show();
});
$(".item_text").on("mouseout", () => {
$(".vip_mod_box_action").hide();
});
$(".vip_mod_box_action li").click(function(){
let k=$(this).attr('data-k');
let type=video.playerList[k].type;
let link=video.playerList[k].url + video.href;
if(type==1){
if (document.getElementById("iframe-player") == null) {
video.player.empty();
video.player.append(video.playerParse);
}
$("#iframe-player").attr("src", link);
}else{
GM_openInTab(link, false);
}
})
},
initEnv:()=>{
video.node.forEach((e,v)=>{
if (e.url ==video.host) {
video.player=$(e.node);
video.initHtml();
video.initEvent();
}
})
},
};
tools.sleep(100).then(() => {
video.initCss();
video.initEnv();
video.closeAD();
})
})();