// ==UserScript==
// @name 【智狐】全网VIP视频解析无广告播放,支持B站大会员番剧、视频解析下载,全网独创自由选择自动解析接口|短视频无水印下载|淘宝、天猫、京东优惠券查询|更多功能持续更新中
// @namespace http://www.zhihupe.com/
// @version 0.48
// @author zhihu
// @description 【❤️ 视频自动解析,体会拥有VIP的感觉❤️,适配PC+移动 】功能有:1、支持B站大会员番剧,全网独创自由选择自动解析接口;2、爱奇艺、腾讯、优酷、芒果等全网VIP视频免费解析去广告(免跳出观影特方便);3.B站多P下载;抖音、西瓜视频、快手无水印下载;4.淘宝、天猫、京东优惠券查询
// @icon https://www.zhihupe.com/favicon.ico
// @match *://laisoyiba.com/*
// @match *://*.youku.com/v_*
// @match *://*.iqiyi.com/v_*
// @match *://*.iqiyi.com/w_*
// @match *://*.iqiyi.com/a_*
// @match *://v.qq.com/x/cover/*
// @match *://v.qq.com/x/page/*
// @match *://v.qq.com/tv/*
// @match *://*.mgtv.com/b/*
// @match *://*.bilibili.com/video/*
// @match *://*.bilibili.com/bangumi/play/*
// @match *://www.le.com/ptv/vplay/*
// @match *://m.v.qq.com/x/cover/*
// @match *://m.v.qq.com/x/page/*
// @match *://m.v.qq.com/x/m/play*
// @match *://m.iqiyi.com/v_*
// @match *://m.iqiyi.com/w_*
// @match *://m.iqiyi.com/a_*
// @match *://m.youku.com/alipay_video/*
// @match *://m.youku.com/video/*
// @match *://m.mgtv.com/b/*
// @match *://m.bilibili.com/video/*
// @match *://m.bilibili.com/anime/*
// @match *://m.bilibili.com/bangumi/play/*
// @match *://m.le.com/vplay_*
// @match *://item.taobao.com/*
// @match *://*detail.tmall.com/*
// @match *://*detail.tmall.hk/*
// @match *://*item.jd.com/*
// @match *://npcitem.jd.hk/*
// @match *://*.yiyaojd.com/*
// @match *://*.douyin.com/video/*
// @match *.kuaishou.com/short-video/*
// @match *.kuaishou.com/video/*
// @match *.ixigua.com/*
// @connect tool.zhihupe.com
// @connect 47.99.158.118
// @connect api.bilibili.com
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
// @grant GM_openInTab
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
// @grant GM_setClipboard
// @grant GM_download
// @grant unsafeWindow
// @run-at document-body
// @license End-User License Agreement
// @antifeature referral-link 【此提示为GreasyFork代码规范要求含有查券功能的脚本必须添加,实际使用无任何强制跳转,代码可查,请知悉】
// ==/UserScript==
(function() {
'use strict';
//最终用户许可协议 End-User License Agreement
// * Copyright (c) 2021-2022 zhihu. All Rights Reserved.
// * Proprietary and Confidential.
// * 该项目介绍、说明书、脚本代码、思路及其他相关
// 内容版权归作者所有,未经作者本人书面授权,禁
// 止任何单位或个人以任何形式、任何手段或通过任
// 何方式(净室工程、手工、图片、电子、机械、磁
// 性、化学、光学、声学或其它方式)抄袭、摘编、
// 编辑、修改、结集、出版、再版、转录、转载、爬
// 虫爬取、重制、仿制、复制、复写、复印、影印、
// 拷贝、刻录、建立镜像、粘贴、张贴、派发、录音、
// 用来创建派生作品、与其它任何资料进行合并、翻
// 译成任何电脑语言或以其他任何方式用于商业或公
// 共目的。
// * 该项目仅仅准许您善意的使用,其他任何行为都是
// 禁止的。
// * zhihu从未授权任何组织或个人使用本项目脚本
// 部分或全部代码创建作品。
var Insidehtml = "";
var Outsidehtml = "";
var selecthtml = "";
var mobhtml = "";
var PlayID = "";
var jiexi;
var playhref = window.location.href;
var host = window.location.host;
var goodid = "";
var method, action, qrname, nodeid,videoid;
const playList = [
//{
// "id": "1",
// "name": "高速/B站",
// "category": 1,
// "url": "https://jx.playerjy.com/?url=",
// "showType": 3
//},
{
"id": "9",
"name": "M3U8.TV",
"category": 1,
"url": "https://jx.m3u8.tv/jiexi/?url=",
"showType": 3
},
{
"id": "55",
"name": "纯净/B站",
"category": 1,
"url": "https://z1.m1907.cn/?jx=",
"showType": 3
},
{
"id": "2",
"name": "高速接口",
"category": 1,
"url": "https://jsap.attakids.com/?url=",
"showType": 3
},
{
"id": "3",
"name": "综合/B站",
"category": 1,
"url": "https://vip.parwix.com:4433/player/?url=",
"showType": 3
},
{
"id": "4",
"name": "OK解析",
"category": 1,
"url": "https://okjx.cc/?url=",
"showType": 3
},
{
"id": "5",
"name": "夜幕",
"category": 1,
"url": "https://www.yemu.xyz/?url=",
"showType": 3
},
{
"id": "6",
"name": "乐多资源",
"category": 1,
"url": "https://api.leduotv.com/wp-api/ifr.php?isDp=1&vid=",
"showType": 3
},
{
"id": "7",
"name": "爱豆",
"category": 1,
"url": "https://jx.aidouer.net/?url=",
"showType": 1
},
{
"id": "8",
"name": "虾米",
"category": 1,
"url": "https://jx.xmflv.com/?url=",
"showType": 1
},
{
"id": "10",
"name": "人人迷",
"category": 1,
"url": "https://jx.blbo.cc:4433/?url=",
"showType": 3
},
{
"id": "11",
"name": "全民",
"category": 1,
"url": "https://jx.blbo.cc:4433/?url=",
"showType": 3
},
{
"id": "12",
"name": "七哥",
"category": 1,
"url": "https://jx.mmkv.cn/tv.php?url=",
"showType": 3
},
{
"id": "13",
"name": "冰豆",
"category": 1,
"url": "https://api.qianqi.net/vip/?url=",
"showType": 3
},
{
"id": "14",
"name": "迪奥",
"category": 1,
"url": "https://123.1dior.cn/?url=",
"showType": 1
},
{
"id": "15",
"name": "CK",
"category": 1,
"url": "https://www.ckplayer.vip/jiexi/?url=",
"showType": 1
},
{
"id": "16",
"name": "游艺",
"category": 1,
"url": "https://api.u1o.net/?url=",
"showType": 1
},
{
"id": "17",
"name": "LE",
"category": 1,
"url": "https://lecurl.cn/?url=",
"showType": 1
},
{
"id": "18",
"name": "ckmov",
"category": 1,
"url": "https://www.ckmov.vip/api.php?url=",
"showType": 1
},
{
"id": "19",
"name": "playerjy/B站",
"category": 1,
"url": "https://jx.playerjy.com/?url=",
"showType": 3
},
{
"id": "20",
"name": "ccyjjd",
"category": 1,
"url": "https://ckmov.ccyjjd.com/ckmov/?url=",
"showType": 1
},
{
"id": "21",
"name": "爱豆",
"category": 1,
"url": "https://jx.aidouer.net/?url=",
"showType": 1
},
{
"id": "22",
"name": "诺诺",
"category": 1,
"url": "https://www.ckmov.com/?url=",
"showType": 1
},
{
"id": "23",
"name": "H8",
"category": 1,
"url": "https://www.h8jx.com/jiexi.php?url=",
"showType": 1
},
{
"id": "24",
"name": "BL",
"category": 1,
"url": "https://vip.bljiex.com/?v=",
"showType": 1
},
{
"id": "25",
"name": "解析la",
"category": 1,
"url": "https://api.jiexi.la/?url=",
"showType": 1
},
{
"id": "26",
"name": "MUTV",
"category": 1,
"url": "https://jiexi.janan.net/jiexi/?url=",
"showType": 1
},
{
"id": "27",
"name": "MAO",
"category": 1,
"url": "https://www.mtosz.com/m3u8.php?url=",
"showType": 1
},
{
"id": "28",
"name": "老板",
"category": 1,
"url": "https://vip.laobandq.com/jiexi.php?url=",
"showType": 1
},
{
"id": "29",
"name": "盘古",
"category": 1,
"url": "https://www.pangujiexi.cc/jiexi.php?url=",
"showType": 1
},
{
"id": "30",
"name": "盖世",
"category": 1,
"url": "https://www.gai4.com/?url=",
"showType": 1
},
{
"id": "31",
"name": "小蒋",
"category": 1,
"url": "https://www.kpezp.cn/jlexi.php?url=",
"showType": 1
},
{
"id": "32",
"name": "YiTV",
"category": 1,
"url": "https://jiexi.us/?url=",
"showType": 1
},
{
"id": "33",
"name": "星空",
"category": 1,
"url": "http://60jx.com/?url=",
"showType": 1
},
{
"id": "34",
"name": "0523",
"category": 1,
"url": "https://go.yh0523.cn/y.cy?url=",
"showType": 1
},
{
"id": "35",
"name": "17云",
"category": 1,
"url": "https://www.1717yun.com/jx/ty.php?url=",
"showType": 1
},
{
"id": "36",
"name": "4K",
"category": 1,
"url": "https://jx.4kdv.com/?url=",
"showType": 1
},
{
"id": "37",
"name": "云析",
"category": 1,
"url": "https://jx.yparse.com/index.php?url=",
"showType": 1
},
{
"id": "38",
"name": "8090",
"category": 1,
"url": "https://www.8090g.cn/?url=",
"showType": 1
},
{
"id": "39",
"name": "江湖",
"category": 1,
"url": "https://api.jhdyw.vip/?url=",
"showType": 1
},
{
"id": "40",
"name": "诺讯",
"category": 1,
"url": "https://www.nxflv.com/?url=",
"showType": 1
},
{
"id": "41",
"name": "PM",
"category": 1,
"url": "https://www.playm3u8.cn/jiexi.php?url=",
"showType": 1
},
{
"id": "42",
"name": "奇米",
"category": 1,
"url": "https://qimihe.com/?url=",
"showType": 1
},
{
"id": "43",
"name": "思云",
"category": 1,
"url": "https://jx.ap2p.cn/?url=",
"showType": 1
},
{
"id": "44",
"name": "听乐",
"category": 1,
"url": "https://jx.dj6u.com/?url=",
"showType": 1
},
{
"id": "45",
"name": "aijx",
"category": 1,
"url": "https://jiexi.t7g.cn/?url=",
"showType": 1
},
{
"id": "46",
"name": "52",
"category": 1,
"url": "https://vip.52jiexi.top/?url=",
"showType": 1
},
{
"id": "47",
"name": "黑米",
"category": 1,
"url": "https://www.myxin.top/jx/api/?url=",
"showType": 1
},
{
"id": "48",
"name": "豪华啦",
"category": 1,
"url": "https://api.lhh.la/vip/?url=",
"showType": 1
},
{
"id": "49",
"name": "凉城",
"category": 1,
"url": "https://jx.mw0.cc/?url=",
"showType": 1
},
{
"id": "50",
"name": "33t",
"category": 1,
"url": "https://www.33tn.cn/?url=",
"showType": 1
},
{
"id": "51",
"name": "180",
"category": 1,
"url": "https://jx.000180.top/jx/?url=",
"showType": 1
},
{
"id": "52",
"name": "无名",
"category": 1,
"url": "https://www.administratorw.com/video.php?url=",
"showType": 1
},
{
"id": "53",
"name": "黑云",
"category": 1,
"url": "https://jiexi.380k.com/?url=",
"showType": 1
},
{
"id": "54",
"name": "九八",
"category": 1,
"url": "https://jx.youyitv.com/?url=",
"showType": 1
},
{
"id": "56",
"name": "综合线路",
"category": 2,
"url": "https://laisoyiba.com/mov/s/?sv=3&url=",
"showType": 1
},
{
"id": "57",
"name": "纯净/B站",
"category": 2,
"url": "https://z1.m1907.cn/?jx=",
"showType": 1
},
{
"id": "58",
"name": "高速接口",
"category": 2,
"url": "https://jsap.attakids.com/?url=",
"showType": 1
},
{
"id": "59",
"name": "综合/B站1",
"category": 2,
"url": "https://vip.parwix.com:4433/player/?url=",
"showType": 1
},
{
"id": "60",
"name": "OK解析",
"category": 2,
"url": "https://okjx.cc/?url=",
"showType": 1
},
{
"id": "61",
"name": "夜幕",
"category": 2,
"url": "https://www.yemu.xyz/?url=",
"showType": 1
},
{
"id": "62",
"name": "虾米",
"category": 2,
"url": "https://jx.xmflv.com/?url=",
"showType": 1
},
{
"id": "63",
"name": "全民",
"category": 2,
"url": "https://jx.quanmingjiexi.com/?url=",
"showType": 1
},
];
function Toast(msg, duration = 3000) {
var m = document.createElement('div');
m.innerHTML = msg;
m.setAttribute('id','msg');
m.style.cssText = "max-width:60%;min-width: 150px;padding:0 14px;min-height: 40px;color: rgb(255, 255, 255);line-height: 40px;text-align: center;border-radius: 4px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: rgba(0, 0, 0,.7);font-size: 16px;";
document.body.appendChild(m);
setTimeout(() => {
var d = 0.5;
m.style.webkitTransition = '-webkit-transform ' + d + 's ease-in, opacity ' + d + 's ease-in';
m.style.opacity = '0';
setTimeout(() => { document.body.removeChild(document.querySelector("#msg")) }, d * 1000);
}, duration);
}
function GMsetValue(name, Value) {
localStorage.setItem(name, Value);
}
function GMgetValue(name) {
let StorageValue = localStorage.getItem(name);
return StorageValue;
}
function GMdeleteValue(name) {
localStorage.removeItem(name);
}
function GMaddStyle(css) {
var addStyle = document.createElement('style');
addStyle.textContent = css;
var doc = document.head || document.documentElement;
doc.appendChild(addStyle);
};
function GMaddScript(js) {
let script = document.createElement('script');
script.src = js;
var docu = document.head || document.documentElement;
docu.appendChild(script);
};
function GMaddlink(linkcss) {
let mylink = document.createElement('link');
mylink.href = linkcss;
mylink.rel = 'stylesheet';
var docl = document.head || document.documentElement;
docl.appendChild(mylink);
};
function GMopenInTab(url, open_in_background) {
if (typeof GM_openInTab === "function") {
GM_openInTab(url, open_in_background);
} else {
GM.openInTab(url, open_in_background);
}
};
function Addjs() {
GMaddScript("https://www.layuicdn.com/layui/layui.js");
GMaddlink("https://www.layuicdn.com/layui/css/layui.css");
}
switch (host) {
case 'v.qq.com':
PlayID = "#mod_player";
Addjs();
addbtn();
GMsetValue("playwork","1")
console.log('已进入腾讯');
setInterval(function() {
let e = document.querySelector("#mask_layer");
if (e != null) e.parentNode.removeChild(e);
let f = document.querySelector(".mod_vip_popup");
if (f != null) f.parentNode.removeChild(f);
},
100);
break;
case 'v.youku.com':
Addjs();
PlayID = "#player";
addbtn();
console.log('已进入优酷')
break;
case 'www.iqiyi.com':
Addjs();
PlayID = "#flashbox";
addbtn();
GMsetValue("playwork","1")
console.log('已进入爱奇艺')
break;
case 'www.mgtv.com':
Addjs();
PlayID = "#mgtv-player-wrap";
addbtn();
GMsetValue("playwork","1")
console.log('已进入芒果TV')
break;
case 'www.bilibili.com':
Addjs();
PlayID = "#player_module";
if (playhref.indexOf("www.bilibili.com/bangumi/play") != -1) {
addbtn();
GMsetValue("playwork","1")
}
var Bv = null;
var pathname = window.location.pathname;
if (pathname.indexOf("/medialist/play/watchlater/") != -1) {
Bv = pathname.replace("/medialist/play/watchlater/","").replace("/","");
}else{
Bv = pathname.replace("/video/","").replace("/","");
}
console.log(Bv)
if(Bv!=null){
Getaid(Bv);
}
console.log('已进入bilibili')
break;
case 'www.le.com':
Addjs();
PlayID = "#le_playbox";
addbtn();
GMsetValue("playwork","1")
console.log('已进入乐视TV')
break;
case 'laisoyiba.com':
setInterval(function() {
let e = document.querySelector(".jconfirm-scrollpane");
if (e != null) e.parentNode.removeChild(e);
},
100);
break;
case 'm.v.qq.com':
PlayID = "#player";
addmobbtn();
GMsetValue("playwork","1")
setInterval(function() {
let e = document.querySelector("#vipPosterContent");
if (e != null) e.parentNode.removeChild(e);
let f = document.querySelector(".at-app-banner");
if (f != null) e.parentNode.removeChild(f);
},
100);
console.log('已进入手机腾讯');
break;
case 'm.youku.com':
PlayID = "#player";
setInterval(function() {
let e = document.querySelector(".callEnd_box");
if (e != null) e.parentNode.removeChild(e);
},
100);
addmobbtn();
console.log('已进入手机优酷');
break;
case 'm.iqiyi.com':
PlayID = ".m-video-player-wrap";
addmobbtn();
GMsetValue("playwork","1")
console.log('已进入手机爱奇艺');
break;
case 'm.mgtv.com':
PlayID = ".video-area";
setInterval(function() {
let e = document.querySelector(".mg-down-btn");
if (e != null) e.parentNode.removeChild(e);
let f = document.querySelector(".ad-fixed-bar");
if (f != null) e.parentNode.removeChild(f);
},
100);
addmobbtn();
GMsetValue("playwork","1")
console.log('已进入手机芒果TV');
break;
case 'm.bilibili.com':
PlayID = "#bofqi";
if (playhref.indexOf("m.bilibili.com/bangumi/play") != -1) {
addmobbtn();
GMsetValue("playwork","1")
}
console.log('已进入手机bilibili');
break;
case 'm.le.com':
PlayID = "#j-player";
setInterval(function() {
document.querySelector("#j-player").style.display = "block";
let e = document.querySelector("#j-vipLook");
if (e != null) e.parentNode.removeChild(e);
let f = document.querySelector(".daoliu1");
if (f != null) f.parentNode.removeChild(f);
},
100);
addmobbtn();
GMsetValue("playwork","1")
console.log('已进入手机乐视TV');
break;
case 'item.taobao.com':
qrname = "淘宝";
nodeid = "#J_PromoPrice";
goodid = Getgoodid("id");
method = "taobao";
action = "getlink";
Getcoupon(goodid);
console.log(goodid);
console.log('已进入淘宝');
break;
case 'detail.tmall.com':
qrname = "淘宝";
nodeid = "#J_PromoPrice";
goodid = Getgoodid("id");
method = "taobao";
action = "getlink";
Getcoupon(goodid);
console.log(goodid);
console.log('已进入天猫');
break;
case 'item.yiyaojd.com':
qrname = "京东";
nodeid = "#choose-attrs";
goodid = geturlid(playhref);
method = "jd";
action = "getdetails";
Getcoupon(goodid);
console.log(goodid) ;
console.log('已进入京东医药');
break;
case 'item.jd.com':
qrname = "京东";
nodeid = "#choose-attrs";
goodid = geturlid(playhref);
method = "jd";
action = "getdetails";
Getcoupon(goodid);
console.log(goodid);
console.log('已进入京东');
break;
case 'npcitem.jd.hk':
qrname = "京东";
nodeid = "#choose-attrs";
goodid = geturlid(playhref);
method = "jd";
action = "getdetails";
Getcoupon(goodid);
console.log(goodid);
console.log('已进入京东国际');
break;
case 'www.douyin.com':
console.log('已进入抖音') ;
nodeid =".xg-right-grid"
videoid = geturlid(playhref);
douyinbtn(videoid);
console.log(geturlid(playhref))
break;
case 'www.kuaishou.com':
console.log('已进入快手') ;
nodeid =".right"
videoid = geturlid(playhref);
kuaishoubtn(videoid);
console.log(geturlid(playhref))
break;
case 'www.ixigua.com':
console.log('已进入西瓜视频') ;
nodeid =".video_action"
videoid = geturlid(playhref);
window.onload=function() {
xiguabtn(videoid);
}
GMsetValue("playwork","1")
console.log(geturlid(playhref))
break;
}
if (GMgetValue("playwork") == 1) {
setInterval(function() {
var workurl = window.location.href;
if (playhref != workurl) {
console.log('网址改变了');
playhref = workurl;
window.location.reload()
}
},
500);
}
function CheckAutoplay() {
if (GMgetValue("AutoPlay") == 1) {
autoplay();
Toast('2秒后自动解析视频',2000);
}
}
function sleep(time) {
return new Promise(resolve => setTimeout(resolve, time));
}
function Playlist() {
for (let i = 0; i < playList.length; i++) {
if (playList[i].category == 1) {
Insidehtml += "" + playList[i].name + "";
selecthtml += ""
if (playList[i].showType == 3) {
mobhtml += "" + playList[i].name + "";
}
} else {
Outsidehtml += "" + playList[i].name + "";
}
}
console.log(mobhtml);
}
async function addmobbtn() {
await sleep(1000);
CheckAutoplay();
Playlist();
var offautohtml = '关闭自动解析'
var onautohtml = '开启自动解析
'
var autohtml;
if (GMgetValue("AutoPlay") == 1) {
autohtml = offautohtml
} else {
autohtml = onautohtml
}
var mainhtml = '
解析接口列表
*开启自动解析后,最后一次选择的接口即自动解析默认接口
*本脚本仅学习使用,解析接口收集于网络,版权问题联系接口制作者,请勿相信解析接口显示的任何广告
微信扫描上方二维码
关注我
从此不迷路
微信扫描上方二维码
关注我
从此不迷路
微信扫描上方二维码
关注我
从此不迷路
手机' + qrname + '扫码领取
'+videourl+'