// ==UserScript== // @name 视频解析 // @namespace https://bbs.tampermonkey.net.cn/ // @version 0.1.3 // @description 支持爱奇艺、优酷、腾讯视频、哔哩哔哩网站会员视频解析,安装后在播放页左侧边上会出现一个小可爱,鼠标放上去会自动滑出功能界面,每个按钮代表不同解析接口,解析失败可选择其他按钮试试!! // @author 张仨 // @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.bilibili.com/video/* // @match *://www.bilibili.com/anime/* // @match *://www.bilibili.com/bangumi/play/* // @match *://m.bilibili.com/* // @license MIT // ==/UserScript== /* * 接口皆从网上搜集,非商业用途,侵删!!! */ (function () { 'use strict'; var div = document.createElement("div"); if (window.top == window.self) { document.body.appendChild(div); }; div.innerHTML = `

ScriptCat

 成功之路,从脚本猫开始!

` var Interface = [ { "name": "1", "url": "https://vip.parwix.com:4433/player/?url=" }, { "name": "2", "url": "https://vip.bljiex.com/?v=" }, { "name": "3", "url": "https://www.ckplayer.vip/jiexi/?url=" }, { "name": "4", "url": "https://www.ckmov.vip/api.php?url=" }, { "name": "5", "url": "https://www.h8jx.com/jiexi.php?url=" }, { "name": "6", "url": "https://ckmov.ccyjjd.com/ckmov/?url=" }, { "name": "7", "url": "https://api.jiexi.la/?url=" }, { "name": "8", "url": "https://vip.laobandq.com/jiexi.php?url=" }, { "name": "9", "url": "https://jx.m3u8.tv/jiexi/?url=" }, { "name": "✲", "url": "https://www.playm3u8.cn/jiexi.php?url=" }, { "name": "0", "url": "https://www.pangujiexi.cc/jiexi.php?url=" }, { "name": "#", "url": "https://go.yh0523.cn/y.cy?url=" }, { "name": "♫", "url": "https://www.1717yun.com/jx/ty.php?url=" }, { "name": "✆", "url": "https://www.8090g.cn/?url=" }, { "name": "✉", "url": "https://jx.xmflv.com/?url=" } ] var box1 = document.querySelector('.box_1'); var box3 = document.querySelector('.box_3'); for (var i in Interface) { let btns = document.createElement('input'); box3.appendChild(btns); btns.type = 'button'; btns.value = Interface[i].name; } box1.addEventListener('mouseenter', () => { box1.style.left = "2px"; }) box1.addEventListener('mouseleave', () => { box1.style.left = "-170px"; }) var player_ids = [ { url: "v.qq.com", id: "#mod_player" }, { url: "www.iqiyi.com", id: "#flashbox" }, { url: "v.youku.com", id: "#ykPlayer" }, { url: "www.bilibili.com", id: "#player_module" } ] for (let t in player_ids) { if (player_ids[t].url == location.host) { var ids = document.querySelector(player_ids[t].id); } } var iframe = ` ` var inputs = document.querySelectorAll('.box_3 input'); for (let h = 0; h < inputs.length; h++) { inputs[h].addEventListener('click', () => { ids.innerHTML = iframe; var iframe_player = document.querySelector('#iframe-player'); iframe_player.src = Interface[h].url + location.href; }) } })();