// ==UserScript== // @name 个人视频解析 // @version 2.8 // @description 支持B站、腾讯视频、爱奇艺、优酷、土豆、芒果TV、搜狐视频、乐视视频、PPTV、风行、哔哩哔哩等,支持多个解析接口切换,界面简洁,脚本仅限学习,请大家支持正版。 // @author skyseek // @foo 此脚本为修改版,原脚本页面:https://greasyfork.org/zh-CN/scripts/406849 原作者:sign 此修改版做简洁处理和兼容性修改。 // @namespace https://greasyfork.org/zh-CN/scripts/424086 // @require https://cdn.bootcss.com/jquery/3.5.1/jquery.min.js // @match *://v.qq.com/x/cover/* // @match *://v.qq.com/x/page/* // @match *://m.qq.com/* // @match *://www.iqiyi.com/v* // @match *://m.iqiyi.com/* // @match *://v.youku.com/v_show/* // @match *://m.youku.com/* // @match *://www.mgtv.com/b/* // @match *://tv.sohu.com/v/* // @match *://film.sohu.com/album/* // @match *://www.le.com/ptv/vplay/* // @match *://v.pptv.com/show/* // @match *://vip.pptv.com/show/* // @match *://www.fun.tv/vplay/* // @match *://www.acfun.cn/v/* // @match *://www.bilibili.com/video/* // @match *://www.bilibili.com/anime/* // @match *://www.bilibili.com/bangumi/play/* // @match *://m.bilibili.com/* // @match *://vip.1905.com/play/* // @match *://www.56.com/* // @match *://www.wxtv.net/* // @match *://www.eggvod.cn/* // @license GPL License // @grant unsafeWindow // @grant GM_openInTab // @grant GM.openInTab // @grant GM_getValue // @grant GM.getValue // @grant GM_setValue // @grant GM.setValue // @grant GM_xmlhttpRequest // @grant GM.xmlHttpRequest // @grant GM_registerMenuCommand // @connect iqiyi.com // @connect mgtv.com // @connect pl.hd.sohu.com // @downloadURL none // ==/UserScript== (function () { 'use strict'; var $ = $ || window.$; var host = location.host; var parseInterfaceList = []; var selectedInterfaceList = []; var originalInterfaceList = [ //以下为B站解析线路:如果不满意接口速度可以适当替换或删除 //-------------------------------------------------------------------------------------- {name: "线路一",type: "1",url: "https://jx.yaohuaxuan.com/?url="}, { name: "线路二", type: "1", url: "https://www.5igen.com/dmplayer/player/?url=" }, //-------------------------------------------------------------------------------------- //bilibili播放器 //-------------------------------------------------------------------------------------- {name: "线路三",type: "1",url: "https://vip.parwix.com:4433/player/?url="}, {name: "线路四",type: "1",url: "https://z1.m1907.cn/?jx="}, //-------------------------------------------------------------------------------------- //以下为爱优腾等全网视频解析线路:如果不满意接口速度可以适当替换或删除 //-------------------------------------------------------------------------------------- {name: "线路一",type: "2",url: "https://www.h8jx.com/jiexi.php?url="}, { name: "线路二", type: "2", url: "https://z1.m1907.cn/?jx=" }, //-------------------------------------------------------------------------------------- //bilibili播放器 //-------------------------------------------------------------------------------------- { name: "线路三", type: "2", url: "https://vip.bljiex.com/?v=" }, {name: "线路四", type: "2", url: "https://jx.parwix.com:4433/player/?url="}, // 新接口 {name: "线路五", type: "2", url: "https://17kyun.com/api.php?url="}, //-------------------------------------------------------------------------------------- ];; function innerParse(url) {$("#iframe-player").attr("src", url);} 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 GMgetValue(name, value) {if (typeof GM_getValue === "function") {return GM_getValue(name, value);} else { return GM.getValue(name, value);} } function GMsetValue(name, value) {if (typeof GM_setValue === "function") { GM_setValue(name, value);} else {GM.setValue(name, value); } } function GMxmlhttpRequest(obj) {if (typeof GM_xmlhttpRequest === "function") {GM_xmlhttpRequest(obj); } else {GM.xmlhttpRequest(obj);} } function css(css) { var myStyle = document.createElement('style');myStyle.textContent = css;var doc = document.head || document.documentElement;doc.appendChild(myStyle); } var node = ""; var player_nodes = [ { url:"v.qq.com", node:"#mod_player"}, { url:"www.iqiyi.com", node:"#flashbox"}, { url:"v.youku.com", node:"#ykPlayer"}, { url:"www.mgtv.com", node:"#mgtv-player-wrap container"}, { url:"tv.sohu.com", node:"#player"}, { url:"film.sohu.com", node:"#playerWrap"}, { url:"www.le.com", node:"#le_playbox"}, { url:"v.pptv.com", node:"#pptv_playpage_box"}, { url:"vip.pptv.com", node:".w-video"}, { url:"www.fun.tv", node:"#html-video-player-layout"}, { url:"www.acfun.cn", node:"#player"}, { url:"www.bilibili.com", node:"#player_module"}, { url:"vip.1905.com", node:"#player"}, { url:"www.56.com", node:"#play_player"} ]; for(var i in player_nodes) {if (player_nodes[i].url == host) { node = player_nodes[i].node;}} var videoPlayer = $("
"); var innerList = []; var innerli = ""; var innerlis = ""; originalInterfaceList.forEach((item, index) => { if (item.type == "1") { innerList.push(item); innerli += "