/* * @Since: 2020-04-11 16:42:44 * @Author: shy * @Email: yushuibo@ebupt.com / hengchen2005@gmail.com * @Version: v1.0 * @Description: - */ // ==UserScript== // @name 视频解析助手 // @namespace https://github.com/yushuibo/media // @version 1.0.1 // @icon // @description 解析各大视频网站视频,支持优酷,爱奇艺,乐视,腾讯视频,土豆,芒果TV,bilibili,PPTV,暴风,音悦台 // @author yushuibo // @license MIT // @supportURL https://github.com/yushuibo/media // @match *://v.youku.com/v_* // @match *://m.youku.com/v* // @match *://m.youku.com/a* // @match *://*.iqiyi.com/v_* // @match *://*.iqiyi.com/w_* // @match *://*.iqiyi.com/a_* // @match *://*.iqiyi.com/dianying/* // @match *://*.le.com/ptv/vplay/* // @match *v.qq.com/x/cover/* // @match *v.qq.com/x/page/* // @match *v.qq.com/play* // @match *://*.tudou.com/listplay/* // @match *://*.tudou.com/albumplay/* // @match *://*.tudou.com/programs/view/* // @match *://*.mgtv.com/b/* // @match *://film.sohu.com/album/* // @match *://tv.sohu.com/* // @match *://*.bilibili.com/video/* // @match *://*.bilibili.com/anime/* // @match *://*.bilibili.com/bangumi/play/* // @match *://vip.pptv.com/show/* // @match *://v.pptv.com/show/* // @match *://*.baofeng.com/play/* // @match *://vip.1905.com/play/* // @require https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js // @run-at document-idle // @grant unsafeWindow // @grant GM_addStyle // @downloadURL none // ==/UserScript== (function() { 'use strict'; GM_addStyle(` .h-icon-play { color: #d926b5; fill: #d926b5; height: 80px; width: 80px; position: fixed; z-index: 99999; top: 10px; left: 0; cursor: pointer; } .h-ol { position: fixed; top: 70px; left: 20px; z-index: 99999; counter-reset: li; list-style: none; font-size: 14px; padding: 0; margin-bottom: 4em; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); display: none; } .h-ol a { position: relative; display: block; padding: 3px 10px 3px 2em; margin: 0.5em 0; background: #ddd; color: #444; text-decoration: none; border-radius: 0.3em; transition: all 0.3s ease-out; } .h-ol a:hover { background: #eee; color: #ff6f5c; transition: all 0.3s ease-out; } .h-ol a::before { content: counter(li); counter-increment: li; position: absolute; left: -1.2em; top: 50%; margin-top: -0.9em; background: #87ceeb; height: 1.5em; width: 1.5em; line-height: 1.5em; border: 0.1em solid #fff; text-align: center; font-weight: bold; border-radius: 1.5em; }`); let api = [ 'http://api.aaaak.pw/q/?url=', 'http://jx.598110.com/?url=', 'http://vip.jlsprh.com/?url=', 'http://jx.618ge.com/?url=', 'http://jx.du2.cc/?url=', 'https://z1.m1907.cn//?jx=', 'https: //vip.hackmg.com/jx/index.php?url=', 'http://2gty.com/apiurl/yun.php?url=' ]; let main = { showButton: function() { if (location.host.match(/youku|iqiyi|le|qq|tudou|mgtv|sohu|acfun|bilibili|pptv|baofeng/ig)) { let mainButton = '
'; let apiList = '