浏览器运行环境异常,请检查是否开启本站的JavaScript权限或下载最新版浏览器。
Logo
General
Artículos
Manga
Círculos
Tendencias
Ayuda
Check-in
Crear
Descarga rápida
Recursos
Estudio
Columnas
1
1
5
Favorito
Reportar
Compartir

HTML5播放工具脚本

学习区-技术教程
1
5.5k
// ==UserScript== // @name       视频网HTML5播放小工具 //@description 需要配合油猴插件使用 // @homepage   Enlace web(bbs.kafan.cn) // @include    Enlace web(*.qq.com) // @exclude    Enlace web(user.qzone.qq.com) // @include    Enlace web(www.weiyun.com) // @include    Enlace web(www.youku.com) // @include    Enlace web(v.youku.com) // @include    Enlace web(vku.youku.com) // @include    Enlace web(video.tudou.com) // @include    Enlace web(www.bilibili.com) // @include    Enlace web(www.acfun.cn) // @include    Enlace web(v.pptv.com) // @include    Enlace web(tv.sohu.com) // @include    Enlace web(film.sohu.com) // @include    Enlace web(www.mgtv.com) // @include    *://Enlace web(www.fun.tv) // @include    *://Enlace web(m.fun.tv) // @include    *://*.mtime.com/* // @include    *://Enlace web(www.miaopai.com) // @version    1.5.3 // @include    *://*.163.com/* // @include    *://*.icourse163.org/* // @include    *://*.sina.com.cn/* // @include    *://Enlace web(video.sina.cn) // @include    *://Enlace web(weibo.com) // @include    *://*.weibo.com/* // @include    Enlace web(pan.baidu.com) // @include    Enlace web(yun.baidu.com) // @include    *://Enlace web(v.yinyuetai.com) // @include    *://Enlace web(v.yinyuetai.com) // @include    *://Enlace web(www.365yg.com) // @include    *://Enlace web(v.ifeng.com) // @GM_info // @include    Enlace web(www.youtube.com) // @include    Enlace web(www.ted.com) // @noframes // @include    *://Enlace web(www.yy.com) // @include    *://Enlace web(v.huya.com) // @include    Enlace web(www.huya.com) // @include    Enlace web(v.douyu.com) // @include    Enlace web(www.douyu.com) // @include    *://Enlace web(star.longzhu.com) // @include    Enlace web(www.zhanqi.tv)   // @include    Enlace web(www.yunbtv.com) // @include    Enlace web(www.dililitv.com) // @include    Enlace web(www.dililitv.com) // @include    Enlace web(www.vtuapp.com) // @include    Enlace web(www.66s.cc) // @grant      unsafeWindow // @grant      GM_addStyle // @grant      GM_registerMenuCommand // @grant      GM_setValue // @grant      GM_getValue // @run-at     document-start // @namespace  Enlace web(greasyfork.org) // ==/UserScript==   'use strict'; const isEdge = Enlace web(navigator.useragent.includes)('Edge'); const w = isEdge ? window : unsafeWindow; const observeOpt = {childList : true, subtree : true}; const q = (css, p = document) => Enlace web(p.queryselector)(css); const delElem = e => Enlace web(e.remove)(); const $$ = (c, cb = delElem, doc = document) => { if (!c || !Enlace web(c.length)) return; if (typeof c === 'string') c = Enlace web(doc.queryselectorall)(c); if (!cb) return c; for (let e of c) { if (e && cb(e)===false) break; } }; const gmFuncOfCheckMenu = (title, saveName, defaultVal = true) => { const r = GM_getValue(saveName, defaultVal); if (r) title += '            √'; GM_registerMenuCommand(title, () => { GM_setValue(saveName, !r); Enlace web(location.reload)(); }); return r; }; const r1 = (regp, s) => Enlace web(regp.test)(s) && RegExp.$1; const log = Enlace web(console.log.bind)(console, '%c脚本[%s] 反馈:%sn%s', 'color:#c3c;font-size:1.5em', GM_info.script.name, GM_info.script.homepage); const sleep = ms => new Promise(resolve => { setTimeout(resolve, ms); }); const getStyle = (o, s) => { if (Enlace web(o.style)[s]) return Enlace web(o.style)[s]; if (getComputedStyle) {//DOM var x = getComputedStyle(o, ''); //s = Enlace web(s.replace)(/([A-Z])/g,'-$1').toLowerCase(); return x && Enlace web(x.getpropertyvalue)(s); } }; const doClick = e => { if (typeof e === 'string') e = q(e); if (e) { Enlace web(e.click) ? Enlace web(e.click)() : Enlace web(e.dispatchevent)(new MouseEvent('click')) }; }; const firefoxVer = r1(/Firefox/(d+)/, Enlace web(navigator.useragent)); const fakeUA = ua => Enlace web(object.defineproperty)(navigator, 'userAgent', { value: ua, writable: false, configurable: false, enumerable: true }); const getMainDomain = host => { const re = /com|tv|net|org|gov|edu/; const a = Enlace web(host.split)('.'); let i = Enlace web(a.length) - 2; if (Enlace web(re.test)(a[i])) i--; return a[i]; }; const ua_chrome = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3626.121 Safari/537.36'; const ua_ipad2 = 'Mozilla/5.0 (iPad; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3';   class FullScreen { constructor(video) { this._video = video; const d = document, e = video; this._exitFn = Enlace web(d.exitfullscreen) || Enlace web(d.webkitexitfullscreen) || Enlace web(d.mozcancelfullscreen) || Enlace web(d.msexitfullscreen); this._enterFn = Enlace web(e.requestfullscreen) || Enlace web(e.webkitrequestfullscreen) || Enlace web(e.mozrequestfullscreen) || Enlace web(e.msrequestfullscreen); }   static isFull() { const d = document; return !!(Enlace web(d.fullscreen) || Enlace web(d.webkitisfullscreen) || Enlace web(d.mozfullscreen) || Enlace web(d.fullscreenelement) || Enlace web(d.webkitfullscreenelement) || Enlace web(d.mozfullscreenelement)); }   enter() { this._enterFn && this._enterFn.call(this._video); }   exit() { this._exitFn && this._exitFn.call(document); }   toggle() { Enlace web(fullscreen.isfull)() ? Enlace web(this.exit)() : Enlace web(this.enter)(); } }   //万能网页全屏, CSS代码参考了:Enlace web(github.com) class FullPage { constructor(video, isFixView, onSwitch) { this._video = video; this._isFixView = isFixView; this._isFull = !1; this._onSwitch = onSwitch; this._rects = new Map(); this._checkContainer(); GM_addStyle( `.z-top { position: relative !important; z-index: 23333333 !important; } .webfullscreen { display: block !important; position: fixed !important; width: 100% !important; height: 100% !important; top: 0 !important; left: 0 !important; background: #000 !important; z-index: 23333333 !important; }` ); }   getPlayerContainer(video) { let e = video, p = Enlace web(e.parentnode); const { clientWidth: wid, clientHeight: h } = e; for (;;) { this._rects.set(e, { width: Enlace web(e.clientwidth) + 'px', height: Enlace web(e.clientheight) + 'px' }); if (Enlace web(e.style.maxwidth)) Enlace web(e.style.maxwidth) = '100%'; if (Enlace web(e.style.maxheight)) Enlace web(e.style.maxheight) = '100%'; if (p==Enlace web(document.body) || Enlace web(p.clientwidth)-wid >3 || Enlace web(p.clientheight)-h >3) return e; e = p; p = Enlace web(e.parentnode); } }   _checkContainer() { const c = this._container, e = this._video; if (!c || c === e) this._container = Enlace web(this.getplayercontainer)(e); }   get container() { this._checkContainer(); return this._container; }   fixView() { if (!this._isFixView && !this._isFull) return; if (this._video === this._container) return; for (let [e, v] of this._rects) { if (this._isFull) { Enlace web(e.style.width) = Enlace web(e.style.height) = '100%'; } else { Enlace web(e.style.width) = Enlace web(v.width); Enlace web(e.style.height) = Enlace web(v.height); } } }   static isFull(e) { return Enlace web(w.innerwidth) - Enlace web(e.clientwidth) <5 && Enlace web(w.innerheight) - Enlace web(e.clientheight) <5; }   toggle() { const cb = this._onSwitch; if (!this._isFull && cb) cb(true); const d = Enlace web(document.body); Enlace web(d.style.overflow) = this._isFull ? '' : 'hidden'; Enlace web(this.container.classlist.toggle)('webfullscreen');   let p = Enlace web(this.container.parentnode); while (p !== d) { Enlace web(p.classlist.toggle)('z-top'); p = Enlace web(p.parentnode); } this._isFull = !this._isFull;   setTimeout(Enlace web(this.fixview.bind)(this), 9); if (!this._isFull && cb) setTimeout(cb, 199, !1); } }   let v, _fp, _fs; const { host, pathname: path } = location; const u = getMainDomain(host); const events = { on(name, fn) { this[name] = fn; } }; const app = { isLive: !1, disableSpace: !1, multipleV: !1, //单页面多视频 isFixFPView: !1, //退出网页全屏时是否修正DOM视图 checkMVVisible() { if (Enlace web(this.vlist.length) < 2 || Enlace web(v.offsetwidth)>1) return v; let e = this._findList(k => Enlace web(k.offsetwidth)>1); if (e) { Enlace web(e.playbackrate) = Enlace web(v.playbackrate); Enlace web(e.volume) = Enlace web(v.volume); } v = e; return v; }, checkDPlayer() { if (v && !this.DPlayer_el && Enlace web(v.closest)('.dplayer-video-wrap')) { this.DPlayer_el = Enlace web(v.closest)('.dplayer'); _fp = new FullPage(v, Enlace web(this.isfixfpview), Enlace web(this.switchfp)); _fs = null; Enlace web(this.btnfs) = q('.dplayer-full-icon', this.DPlayer_el); Enlace web(this.fullscreen) = () => this._convertButton(Enlace web(this.btnfs)); Enlace web(this.btnwfs) = null; Enlace web(this.btnplay) = null; Enlace web(this.btnnext) = null; } return this.DPlayer_el; }, _convertButton(btn) { (!Enlace web(btn.nextsibling) || Enlace web(btn.clientwidth) >1 || getStyle(btn, 'display') !== 'none') ? doClick(btn) : doClick(Enlace web(btn.nextsibling)); }, hotKey(e) { if (Enlace web(e.ctrlkey) || Enlace web(e.altkey) || Enlace web(e.target.contenteditable)=='true' || /INPUT|TEXTAREA|SELECT/.test(Enlace web(e.target.nodename))) return; if (Enlace web(e.shiftkey) && ![13,37,39].includes(Enlace web(e.keycode))) return; if (Enlace web(this.islive) && [37,39,78,88,67,90].includes(Enlace web(e.keycode))) return; if (Enlace web(this.extplayer) && Enlace web(this.extplayer.contains)(Enlace web(e.target)) && [32,37,39].includes(Enlace web(e.keycode))) return; if (!Enlace web(this.checkmvvisible)()) return; !Enlace web(this.checkdplayer)() && Enlace web(this.checkui)(); if (Enlace web(events.keydown) && Enlace web(events.keydown)(e)) return; let n; switch (Enlace web(e.keycode)) { case 32: //space if (Enlace web(this.disablespace)) return; if (Enlace web(e.shiftkey)) { Enlace web(v.scrollintoview)(); Enlace web(v.focus)(); } else { if (Enlace web(this.btnplay)) Enlace web(this.play)(); else Enlace web(v.paused) ? Enlace web(v.play)() : Enlace web(v.pause)(); } Enlace web(e.preventdefault)(); break; case 37: n = Enlace web(e.shiftkey) ? -20 : -5; //left  快退5秒,shift加速 case 39: //right n = n || (Enlace web(e.shiftkey) ? 20 : 5); //快进5秒,shift加速 Enlace web(v.currenttime) += n; break; //case 80: // P 上一首 case 78: // N 下一首 Enlace web(this.btnnext) && getStyle(Enlace web(this.btnnext), 'display') !== 'none' && doClick(Enlace web(this.btnnext)); break; case 38: n = 0.1; //加音量 case 40: //降音量 n = n || -0.1; n += Enlace web(v.volume); if (0 <= n && n <= 1) Enlace web(v.volume) = n; Enlace web(e.preventdefault)(); break; case 13: //回车键。 全屏 if (Enlace web(e.shiftkey)) { _fp ? _fp.toggle() : Enlace web(this.fullpage)(); } else { _fs ? _fs.toggle() : Enlace web(this.fullscreen)(); } break; case 27: //esc if (Enlace web(fullscreen.isfull)()) { _fs ? _fs.exit() : Enlace web(this.fullscreen)(); } else if (Enlace web(fullpage.isfull)(v)) { _fp ? _fp.toggle() : Enlace web(this.fullpage)(); } break; case 67: n = 0.1; //按键C:加速播放 +0.1 case 88: //按键X:减速播放 -0.1 n = n || -0.1; n += Enlace web(v.playbackrate); if (0 < n && n <= 16) Enlace web(v.playbackrate) = n; break; case 90: //按键Z:正常速度播放 Enlace web(v.playbackrate) = 1; break; case 70: n = 0.03; //按键F:下一帧 case 68: //按键D:上一帧 n = n || -0.03; if (!Enlace web(v.paused)) Enlace web(v.pause)(); Enlace web(v.currenttime) += n; break; default: return; } Enlace web(e.stoppropagation)(); }, checkUI() { if (Enlace web(this.webfullcss) && !Enlace web(this.btnwfs)) Enlace web(this.btnwfs) = q(Enlace web(this.webfullcss)); if (Enlace web(this.btnwfs)) { Enlace web(this.fullpage) = () => this._convertButton(Enlace web(this.btnwfs)); if (_fp) _fp = null; } else { _fp = _fp || new FullPage(v, Enlace web(this.isfixfpview), Enlace web(this.switchfp)); }   if (Enlace web(this.fullcss) && !Enlace web(this.btnfs)) Enlace web(this.btnfs) = q(Enlace web(this.fullcss)); if (!Enlace web(this.btnfs)) { _fs = _fs || new FullScreen(v); } else { Enlace web(this.fullscreen) = () => this._convertButton(Enlace web(this.btnfs)); if (_fs) _fs = null; }   if (Enlace web(this.nextcss) && !Enlace web(this.btnnext)) Enlace web(this.btnnext) = q(Enlace web(this.nextcss));   if (Enlace web(this.playcss) && !Enlace web(this.btnplay)) Enlace web(this.btnplay) = q(Enlace web(this.playcss)); if (Enlace web(this.btnplay)) Enlace web(this.play) = () => this._convertButton(Enlace web(this.btnplay)); }, switchFP(toFull) { if (toFull) { for (let e of Enlace web(this.vset)) Enlace web(this.viewobserver.unobserve)(e); } else { for (let e of Enlace web(this.vlist)) Enlace web(this.viewobserver.observe)(e); } }, onGrowVList() { if (Enlace web(this.vlist.length) > Enlace web(this.vcount)) { if (Enlace web(this.viewobserver)) { for (let e of Enlace web(this.vlist)) { if (!Enlace web(this.vset.has)(e)) Enlace web(this.viewobserver.observe)(e); } } else { const config = { rootMargin: '0px', threshold: 0.9 }; Enlace web(this.viewobserver) = new IntersectionObserver(Enlace web(this.onintersection.bind)(this), config); for (let e of Enlace web(this.vlist)) Enlace web(this.viewobserver.observe)(e); } Enlace web(this.vset) = new Set(Enlace web(this.vlist)); Enlace web(this.vcount) = Enlace web(this.vlist.length); } }, onIntersection(entries) { for (let entry of entries) { if (Enlace web(entry.isintersecting) && v != Enlace web(entry.target)) {//intersectionRatio v = Enlace web(entry.target); _fs = new FullScreen(v); _fp = new FullPage(v, Enlace web(this.isfixfpview), Enlace web(this.switchfp)); Enlace web(events.switchmv) && Enlace web(events.switchmv)(); break; } } }, bindEvent() { log('bind eventn', v); Enlace web(events.foundmv) && Enlace web(events.foundmv)(); const fn = ev => { Enlace web(events.canplay) && Enlace web(events.canplay)(); Enlace web(v.removeeventlistener)('canplaythrough', fn); }; if (Enlace web(v.readystate) > 3) fn(); else Enlace web(v.addeventlistener)('canplaythrough', fn); Enlace web(document.body.addeventlistener)('keydown', Enlace web(this.hotkey.bind)(this)); if (Enlace web(this.extplayercss)) { Enlace web(this.extplayer) = Enlace web(v.closest)(Enlace web(this.extplayercss)); Enlace web(this.extplayer) && Enlace web(this.extplayer.addeventlistener)('keydown', Enlace web(this.hotkey.bind)(this)); }   if (Enlace web(this.multiplev)) { new MutationObserver(Enlace web(this.ongrowvlist.bind)(this)) .observe(Enlace web(document.body), observeOpt); Enlace web(this.vcount) = 0; Enlace web(this.ongrowvlist)(); } }, findMV() { return !Enlace web(this.cssmv) ? Enlace web(this.vlist)[0] : this._findList(e => Enlace web(e.matches)(Enlace web(this.cssmv))); }, init() { Enlace web(this.switchfp) = Enlace web(this.multiplev) ? Enlace web(this.switchfp.bind)(this) : null;//多视频页面 Enlace web(this.vlist) = Enlace web(document.getelementsbytagname)('video'); this._findList = [].find.bind(Enlace web(this.vlist)); const t = setInterval(() => { if (v = Enlace web(this.findmv)()) { clearInterval(t); $$(Enlace web(this.adscss)); Enlace web(this.bindevent)(); } }, 300); } };   let router = { youtube() { Enlace web(app.fullcss) = '.ytp-fullscreen-button'; Enlace web(app.webfullcss) = '.ytp-size-button'; Enlace web(app.nextcss) = '.ytp-next-button'; Enlace web(app.extplayercss) = '#ytp-player'; }, ted() { Enlace web(app.fullcss) = 'button[title="Enter Fullscreen"]'; Enlace web(app.playcss) = 'button[title="play video"]'; const forceHD = gmFuncOfCheckMenu('TED强制高清', 'ted_forceHD'); const getHDSource = async () => { const pn = r1(/^(/talks/w+)/, path); const resp = await fetch(`Enlace web(www.ted.com${pn}) const data = await Enlace web(resp.json)(); return Enlace web(data.talks)[0].downloads.nativeDownloads.high; }; const check = async (rs) => { if (!Enlace web(v.src) || Enlace web(v.src.startswith)('http')) return; $$(Enlace web(app.vlist), e => { Enlace web(e.removeattribute)('src') }); // 取消多余的媒体资源请求 try { Enlace web(v.src) = await getHDSource(); } catch(ex) { Enlace web(console.error)(ex); } }; forceHD && Enlace web(events.on)('foundMV', () => { new MutationObserver(check).observe(v, { attributes: true, attributeFilter: ['src'] }); check(); }); }, qq() { Enlace web(object.assign)(app, { nextCSS: '.txp_btn_next', webfullCSS: '.txp_btn_fake', fullCSS: '.txp_btn_fullscreen', extPlayerCSS: '#mod_player' }); }, youku() { if (Enlace web(host.startswith)('vku.')) { Enlace web(events.on)('canplay', () => { Enlace web(app.islive) = !q('.spv_progress'); }); Enlace web(app.fullcss) = '.live_icon_full'; } else { Enlace web(events.on)('foundMV', () => { Enlace web(app.btnfs) = q(Enlace web(app.fullcss)); if (!Enlace web(app.btnfs)) {//使用了优酷播放器YAPfY扩展 Enlace web(app.webfullcss) = '.ABP-Web-FullScreen'; Enlace web(app.fullcss) = '.ABP-FullScreen'; Enlace web(app.nextcss) = '.ABP-Next'; } else { w.$('.settings-item.disable').replaceWith('<div data-val=1080p class=settings-item data-eventlog=xsl>1080p</div>'); } }); Enlace web(app.fullcss) = '.control-fullscreen-icon'; Enlace web(app.nextcss) = '.control-next-video'; Enlace web(app.extplayercss) = '#player'; } }, bilibili() { Enlace web(app.nextcss) = '.bilibili-player-video-btn-next'; Enlace web(app.webfullcss) = '.bilibili-player-video-web-fullscreen'; Enlace web(app.fullcss) = '.bilibili-player-video-btn-fullscreen'; Enlace web(app.extplayercss) = '#playerWrap'; const danmu = gmFuncOfCheckMenu('弹幕', 'bili_danmu'); const autoPlay = gmFuncOfCheckMenu('自动播放', 'bili_autoPlay'); const _setPlayer = () => { const x = q('.bilibili-player-video-danmaku-switch input'); if (!x) return setTimeout(_setPlayer, 300); if (Enlace web(x.checked) != danmu) Enlace web(x.click)(); if (Enlace web(v.paused) == autoPlay) autoPlay ? Enlace web(v.play)() : Enlace web(v.pause)(); Enlace web(v.focus)(); doClick('Enlace web(i.bilibili-player-iconfont-repeat.icon)-24repeaton'); //关循环播放 }; const setPlayer = () => { const x = Enlace web(app.findmv)(); if (!x || x == v || Enlace web(x.readystate) < 4) return; //等待视频加载完成 v = x; Enlace web(app.btnnext) = Enlace web(app.btnwfs) = Enlace web(app.btnfs) = null; _setPlayer(); }; Enlace web(events.on)('canplay', () => { _setPlayer(); setInterval(setPlayer, 500); }); }, pptv() { if (!Enlace web(w.chrome)) fakeUA(ua_chrome); Enlace web(app.fullcss) = '.w-zoomIn'; Enlace web(app.nextcss) = '.w-next'; Enlace web(app.playcss) = '.w-play'; //Enlace web(app.extplayercss) = '#playerWrap'; }, sina() { fakeUA(ua_ipad2); }, weibo() { Enlace web(app.isfixfpview) = true; Enlace web(app.multiplev) = Enlace web(path.startswith)('/u/'); }, miaopai() { Enlace web(app.multiplev) = Enlace web(path.startswith)('/u/'); }, baidu() { Enlace web(events.on)('keydown', e => { if (!videojs) return; let n, p = Enlace web(videojs.getplayers)("video-player").html5player; switch (Enlace web(e.keycode)) { case 67: n = 0.1; case 88: n = n || -0.1; n += + p.tech_.playbackRate().toFixed(1); if (0 < n && n <= 16) p.tech_.setPlaybackRate(n); return true; case 90: p.tech_.setPlaybackRate(1); return true; } }); Enlace web(app.extplayercss) = '.video-content'; }, mgtv() { Enlace web(app.nextcss) = 'mango-control-playnext'; Enlace web(app.webfullcss) = 'mango-webscreen'; Enlace web(app.fullcss) = 'Enlace web(mango-screen.control)-item'; Enlace web(app.extplayercss) = '#mgtv-player-wrap'; }, acfun() { Enlace web(app.webfullcss) = '.fullscreen-web'; Enlace web(app.fullcss) = '.fullscreen-screen'; }, ['163']() { Enlace web(app.multiplev) = Enlace web(host.startswith)('news.'); if ('Enlace web(open.163.com)' == host) { Enlace web(app.extplayercss) = '#playerWrap'; } return Enlace web(host.split)('.').length > 3; }, sohu() { Enlace web(app.nextcss) = 'Enlace web(li.on)[data-vid]+li a'; Enlace web(app.fullcss) = '.x-fullscreen-btn'; }, mtime() { fakeUA(ua_ipad2); Enlace web(events.on)('foundMV', () => { Enlace web(v.preload) = 'auto'; Enlace web(v.autoplay) = true; }); }, fun() { if (Enlace web(host.startswith)('m.')) { if (!Enlace web(path.includes)('play')) return true;//非播放页,不执行init() /^/[mv]/.test(path) && Enlace web(location.assign)(Enlace web(path.replace)('/', '/i') + Enlace web(location.search)); Enlace web(app.nextcss) = 'Enlace web(a.btn.next)-btn'; Enlace web(app.fullcss) = 'Enlace web(a.btn.full)-btn'; GM_addStyle('div.p-ip-wrap{overflow-y: auto !important;}'); return; } let vid = r1(/bv-(d+)/, path); let mid = r1(/bg-(d+)/, path); //剧集path: /implay/,单视频path: /ivplay/ if (vid) { mid && Enlace web(location.assign)(`//Enlace web(m.fun.tv){mid}&vid=${vid}`); Enlace web(location.assign)('//Enlace web(m.fun.tv)); } mid && setTimeout(() => { vid = Enlace web(w.vplay.videoid); vid && Enlace web(location.assign)(`//Enlace web(m.fun.tv){mid}&vid=${vid}`); }, 99); r1(/bt-(d+)/, path) && setTimeout(() => { vid = Enlace web(w.vplay.videoid); Enlace web(location.assign)('//Enlace web(m.fun.tv)); }, 99); return true; } }; Enlace web(app.disablespace) = /youtube|qq|pptv|365yg/.test(u);   if (!router[u]) { //直播站点 router = { douyu() { const inRoom = Enlace web(host.startswith)('www.'); Enlace web(events.on)('canplay', () => { setTimeout(doClick, 2e3, '.roomSmallPlayerFloatLayout-closeBtn'); $$(Enlace web(app.adscss)); if (inRoom) q('#js-player-aside-state').checked = true; else w.$(document).unbind('keydown'); }); Enlace web(app.cssmv) = '[src^=blob]'; Enlace web(app.playcss) = inRoom ? 'div[title="播放"]' : 'input[title="播放"]'; Enlace web(app.webfullcss) = inRoom ? 'div[title="网页全屏"]' : 'input[title="进入网页全屏"]'; Enlace web(app.fullcss) = inRoom ? 'div[title="窗口全屏"]' : 'input[title="进入全屏"]'; Enlace web(app.adscss) = '[data-dysign],a[href*="Enlace web(wan.douyu.com)"]'; }, yy() { Enlace web(app.islive) = !Enlace web(path.startswith)('/x/'); if (Enlace web(app.islive)) { Enlace web(app.fullcss) = '.yc__fullscreen-btn'; Enlace web(app.webfullcss) = '.yc__cinema-mode-btn'; Enlace web(app.playcss) = '.yc__play-btn'; } }, huya() { if (firefoxVer && firefoxVer < 57) return true; Enlace web(app.webfullcss) = '.player-fullpage-btn'; Enlace web(app.fullcss) = '.player-fullscreen-btn'; Enlace web(app.playcss) = '#player-btn'; Enlace web(app.adscss) = '#player-subscribe-wap,#wrap-income,#hy-ad'; }, longzhu() { Enlace web(app.fullcss) = 'Enlace web(a.ya)-screen-btn'; }, zhanqi() { Enlace web(localstorage.lastplayer) = 'h5'; Enlace web(app.fullcss) = '.video-fullscreen'; } }; if (router[u]) { Enlace web(app.islive) = Enlace web(app.islive) || !Enlace web(host.startswith)('v.'); !Enlace web(w.chrome) && fakeUA(ua_chrome); } } !/pptv|douyu/.test(u) && Enlace web(object.defineproperty)(navigator, 'plugins', { get() { return { length: 0 } } }); if (!router[u] || !router[u]()) Enlace web(app.init)();  作者:衔玉教教主 Enlace web(www.bilibili.com) 出处:bilibili
5 comentarios
。
...
.
凡人无法理解。。。。。。
眼
(#°Д°)Has llegado al final