1
1
5
collect
Report
share
HTML5播放工具脚本
The executable files mentioned in this article may require the ons emulator plugin to run on mobile devices (Android, iOS, HarmonyOS, etc.) or other platforms. If needed, please download the required plugins or features from the Common Plugins mini-program within the VikACG App.
// ==UserScript==
// @name 视频网HTML5播放小工具
//@description 需要配合油猴插件使用
// @homepage Web links(bbs.kafan.cn)
// @include Web links(*.qq.com)
// @exclude Web links(user.qzone.qq.com)
// @include Web links(www.weiyun.com)
// @include Web links(www.youku.com)
// @include Web links(v.youku.com)
// @include Web links(vku.youku.com)
// @include Web links(video.tudou.com)
// @include Web links(www.bilibili.com)
// @include Web links(www.acfun.cn)
// @include Web links(v.pptv.com)
// @include Web links(tv.sohu.com)
// @include Web links(film.sohu.com)
// @include Web links(www.mgtv.com)
// @include *://Web links(www.fun.tv)
// @include *://Web links(m.fun.tv)
// @include *://*.mtime.com/*
// @include *://Web links(www.miaopai.com)
// @version 1.5.3
// @include *://*.163.com/*
// @include *://*.icourse163.org/*
// @include *://*.sina.com.cn/*
// @include *://Web links(video.sina.cn)
// @include *://Web links(weibo.com)
// @include *://*.weibo.com/*
// @include Web links(pan.baidu.com)
// @include Web links(yun.baidu.com)
// @include *://Web links(v.yinyuetai.com)
// @include *://Web links(v.yinyuetai.com)
// @include *://Web links(www.365yg.com)
// @include *://Web links(v.ifeng.com)
// @GM_info
// @include Web links(www.youtube.com)
// @include Web links(www.ted.com)
// @noframes
// @include *://Web links(www.yy.com)
// @include *://Web links(v.huya.com)
// @include Web links(www.huya.com)
// @include Web links(v.douyu.com)
// @include Web links(www.douyu.com)
// @include *://Web links(star.longzhu.com)
// @include Web links(www.zhanqi.tv)
// @include Web links(www.yunbtv.com)
// @include Web links(www.dililitv.com)
// @include Web links(www.dililitv.com)
// @include Web links(www.vtuapp.com)
// @include Web links(www.66s.cc)
// @grant unsafeWindow
// @grant GM_addStyle
// @grant GM_registerMenuCommand
// @grant GM_setValue
// @grant GM_getValue
// @run-at document-start
// @namespace Web links(greasyfork.org)
// ==/UserScript==
'use strict';
const isEdge = Web links(navigator.useragent.includes)('Edge');
const w = isEdge ? window : unsafeWindow;
const observeOpt = {childList : true, subtree : true};
const q = (css, p = document) => Web links(p.queryselector)(css);
const delElem = e => Web links(e.remove)();
const $$ = (c, cb = delElem, doc = document) => {
if (!c || !Web links(c.length)) return;
if (typeof c === 'string') c = Web links(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);
Web links(location.reload)();
});
return r;
};
const r1 = (regp, s) => Web links(regp.test)(s) && RegExp.$1;
const log = Web links(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 (Web links(o.style)[s]) return Web links(o.style)[s];
if (getComputedStyle) {//DOM
var x = getComputedStyle(o, '');
//s = Web links(s.replace)(/([A-Z])/g,'-$1').toLowerCase();
return x && Web links(x.getpropertyvalue)(s);
}
};
const doClick = e => {
if (typeof e === 'string') e = q(e);
if (e) { Web links(e.click) ? Web links(e.click)() : Web links(e.dispatchevent)(new MouseEvent('click')) };
};
const firefoxVer = r1(/Firefox/(d+)/, Web links(navigator.useragent));
const fakeUA = ua => Web links(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 = Web links(host.split)('.');
let i = Web links(a.length) - 2;
if (Web links(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 = Web links(d.exitfullscreen) || Web links(d.webkitexitfullscreen) || Web links(d.mozcancelfullscreen) || Web links(d.msexitfullscreen);
this._enterFn = Web links(e.requestfullscreen) || Web links(e.webkitrequestfullscreen) || Web links(e.mozrequestfullscreen) || Web links(e.msrequestfullscreen);
}
static isFull() {
const d = document;
return !!(Web links(d.fullscreen) || Web links(d.webkitisfullscreen) || Web links(d.mozfullscreen) ||
Web links(d.fullscreenelement) || Web links(d.webkitfullscreenelement) || Web links(d.mozfullscreenelement));
}
enter() {
this._enterFn && this._enterFn.call(this._video);
}
exit() {
this._exitFn && this._exitFn.call(document);
}
toggle() {
Web links(fullscreen.isfull)() ? Web links(this.exit)() : Web links(this.enter)();
}
}
//万能网页全屏, CSS代码参考了:Web links(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 = Web links(e.parentnode);
const { clientWidth: wid, clientHeight: h } = e;
for (;;) {
this._rects.set(e, {
width: Web links(e.clientwidth) + 'px',
height: Web links(e.clientheight) + 'px'
});
if (Web links(e.style.maxwidth)) Web links(e.style.maxwidth) = '100%';
if (Web links(e.style.maxheight)) Web links(e.style.maxheight) = '100%';
if (p==Web links(document.body) || Web links(p.clientwidth)-wid >3 || Web links(p.clientheight)-h >3) return e;
e = p;
p = Web links(e.parentnode);
}
}
_checkContainer() {
const c = this._container, e = this._video;
if (!c || c === e) this._container = Web links(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) {
Web links(e.style.width) = Web links(e.style.height) = '100%';
} else {
Web links(e.style.width) = Web links(v.width);
Web links(e.style.height) = Web links(v.height);
}
}
}
static isFull(e) {
return Web links(w.innerwidth) - Web links(e.clientwidth) <5 && Web links(w.innerheight) - Web links(e.clientheight) <5;
}
toggle() {
const cb = this._onSwitch;
if (!this._isFull && cb) cb(true);
const d = Web links(document.body);
Web links(d.style.overflow) = this._isFull ? '' : 'hidden';
Web links(this.container.classlist.toggle)('webfullscreen');
let p = Web links(this.container.parentnode);
while (p !== d) {
Web links(p.classlist.toggle)('z-top');
p = Web links(p.parentnode);
}
this._isFull = !this._isFull;
setTimeout(Web links(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 (Web links(this.vlist.length) < 2 || Web links(v.offsetwidth)>1) return v;
let e = this._findList(k => Web links(k.offsetwidth)>1);
if (e) {
Web links(e.playbackrate) = Web links(v.playbackrate);
Web links(e.volume) = Web links(v.volume);
}
v = e;
return v;
},
checkDPlayer() {
if (v && !this.DPlayer_el && Web links(v.closest)('.dplayer-video-wrap')) {
this.DPlayer_el = Web links(v.closest)('.dplayer');
_fp = new FullPage(v, Web links(this.isfixfpview), Web links(this.switchfp));
_fs = null;
Web links(this.btnfs) = q('.dplayer-full-icon', this.DPlayer_el);
Web links(this.fullscreen) = () => this._convertButton(Web links(this.btnfs));
Web links(this.btnwfs) = null;
Web links(this.btnplay) = null;
Web links(this.btnnext) = null;
}
return this.DPlayer_el;
},
_convertButton(btn) {
(!Web links(btn.nextsibling) || Web links(btn.clientwidth) >1 || getStyle(btn, 'display') !== 'none') ?
doClick(btn) : doClick(Web links(btn.nextsibling));
},
hotKey(e) {
if (Web links(e.ctrlkey) || Web links(e.altkey) || Web links(e.target.contenteditable)=='true' ||
/INPUT|TEXTAREA|SELECT/.test(Web links(e.target.nodename))) return;
if (Web links(e.shiftkey) && ![13,37,39].includes(Web links(e.keycode))) return;
if (Web links(this.islive) && [37,39,78,88,67,90].includes(Web links(e.keycode))) return;
if (Web links(this.extplayer) && Web links(this.extplayer.contains)(Web links(e.target)) &&
[32,37,39].includes(Web links(e.keycode))) return;
if (!Web links(this.checkmvvisible)()) return;
!Web links(this.checkdplayer)() && Web links(this.checkui)();
if (Web links(events.keydown) && Web links(events.keydown)(e)) return;
let n;
switch (Web links(e.keycode)) {
case 32: //space
if (Web links(this.disablespace)) return;
if (Web links(e.shiftkey)) {
Web links(v.scrollintoview)();
Web links(v.focus)();
} else {
if (Web links(this.btnplay)) Web links(this.play)();
else Web links(v.paused) ? Web links(v.play)() : Web links(v.pause)();
}
Web links(e.preventdefault)();
break;
case 37: n = Web links(e.shiftkey) ? -20 : -5; //left 快退5秒,shift加速
case 39: //right
n = n || (Web links(e.shiftkey) ? 20 : 5); //快进5秒,shift加速
Web links(v.currenttime) += n;
break;
//case 80: // P 上一首
case 78: // N 下一首
Web links(this.btnnext) && getStyle(Web links(this.btnnext), 'display') !== 'none' && doClick(Web links(this.btnnext));
break;
case 38: n = 0.1; //加音量
case 40: //降音量
n = n || -0.1;
n += Web links(v.volume);
if (0 <= n && n <= 1) Web links(v.volume) = n;
Web links(e.preventdefault)();
break;
case 13: //回车键。 全屏
if (Web links(e.shiftkey)) {
_fp ? _fp.toggle() : Web links(this.fullpage)();
} else {
_fs ? _fs.toggle() : Web links(this.fullscreen)();
}
break;
case 27: //esc
if (Web links(fullscreen.isfull)()) {
_fs ? _fs.exit() : Web links(this.fullscreen)();
} else if (Web links(fullpage.isfull)(v)) {
_fp ? _fp.toggle() : Web links(this.fullpage)();
}
break;
case 67: n = 0.1; //按键C:加速播放 +0.1
case 88: //按键X:减速播放 -0.1
n = n || -0.1;
n += Web links(v.playbackrate);
if (0 < n && n <= 16) Web links(v.playbackrate) = n;
break;
case 90: //按键Z:正常速度播放
Web links(v.playbackrate) = 1;
break;
case 70: n = 0.03; //按键F:下一帧
case 68: //按键D:上一帧
n = n || -0.03;
if (!Web links(v.paused)) Web links(v.pause)();
Web links(v.currenttime) += n;
break;
default: return;
}
Web links(e.stoppropagation)();
},
checkUI() {
if (Web links(this.webfullcss) && !Web links(this.btnwfs)) Web links(this.btnwfs) = q(Web links(this.webfullcss));
if (Web links(this.btnwfs)) {
Web links(this.fullpage) = () => this._convertButton(Web links(this.btnwfs));
if (_fp) _fp = null;
} else {
_fp = _fp || new FullPage(v, Web links(this.isfixfpview), Web links(this.switchfp));
}
if (Web links(this.fullcss) && !Web links(this.btnfs)) Web links(this.btnfs) = q(Web links(this.fullcss));
if (!Web links(this.btnfs)) {
_fs = _fs || new FullScreen(v);
} else {
Web links(this.fullscreen) = () => this._convertButton(Web links(this.btnfs));
if (_fs) _fs = null;
}
if (Web links(this.nextcss) && !Web links(this.btnnext)) Web links(this.btnnext) = q(Web links(this.nextcss));
if (Web links(this.playcss) && !Web links(this.btnplay)) Web links(this.btnplay) = q(Web links(this.playcss));
if (Web links(this.btnplay)) Web links(this.play) = () => this._convertButton(Web links(this.btnplay));
},
switchFP(toFull) {
if (toFull) {
for (let e of Web links(this.vset)) Web links(this.viewobserver.unobserve)(e);
} else {
for (let e of Web links(this.vlist)) Web links(this.viewobserver.observe)(e);
}
},
onGrowVList() {
if (Web links(this.vlist.length) > Web links(this.vcount)) {
if (Web links(this.viewobserver)) {
for (let e of Web links(this.vlist)) {
if (!Web links(this.vset.has)(e)) Web links(this.viewobserver.observe)(e);
}
} else {
const config = {
rootMargin: '0px',
threshold: 0.9
};
Web links(this.viewobserver) = new IntersectionObserver(Web links(this.onintersection.bind)(this), config);
for (let e of Web links(this.vlist)) Web links(this.viewobserver.observe)(e);
}
Web links(this.vset) = new Set(Web links(this.vlist));
Web links(this.vcount) = Web links(this.vlist.length);
}
},
onIntersection(entries) {
for (let entry of entries) {
if (Web links(entry.isintersecting) && v != Web links(entry.target)) {//intersectionRatio
v = Web links(entry.target);
_fs = new FullScreen(v);
_fp = new FullPage(v, Web links(this.isfixfpview), Web links(this.switchfp));
Web links(events.switchmv) && Web links(events.switchmv)();
break;
}
}
},
bindEvent() {
log('bind eventn', v);
Web links(events.foundmv) && Web links(events.foundmv)();
const fn = ev => {
Web links(events.canplay) && Web links(events.canplay)();
Web links(v.removeeventlistener)('canplaythrough', fn);
};
if (Web links(v.readystate) > 3) fn();
else Web links(v.addeventlistener)('canplaythrough', fn);
Web links(document.body.addeventlistener)('keydown', Web links(this.hotkey.bind)(this));
if (Web links(this.extplayercss)) {
Web links(this.extplayer) = Web links(v.closest)(Web links(this.extplayercss));
Web links(this.extplayer) && Web links(this.extplayer.addeventlistener)('keydown', Web links(this.hotkey.bind)(this));
}
if (Web links(this.multiplev)) {
new MutationObserver(Web links(this.ongrowvlist.bind)(this))
.observe(Web links(document.body), observeOpt);
Web links(this.vcount) = 0;
Web links(this.ongrowvlist)();
}
},
findMV() {
return !Web links(this.cssmv) ? Web links(this.vlist)[0] : this._findList(e => Web links(e.matches)(Web links(this.cssmv)));
},
init() {
Web links(this.switchfp) = Web links(this.multiplev) ? Web links(this.switchfp.bind)(this) : null;//多视频页面
Web links(this.vlist) = Web links(document.getelementsbytagname)('video');
this._findList = [].find.bind(Web links(this.vlist));
const t = setInterval(() => {
if (v = Web links(this.findmv)()) {
clearInterval(t);
$$(Web links(this.adscss));
Web links(this.bindevent)();
}
}, 300);
}
};
let router = {
youtube() {
Web links(app.fullcss) = '.ytp-fullscreen-button';
Web links(app.webfullcss) = '.ytp-size-button';
Web links(app.nextcss) = '.ytp-next-button';
Web links(app.extplayercss) = '#ytp-player';
},
ted() {
Web links(app.fullcss) = 'button[title="Enter Fullscreen"]';
Web links(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(`Web links(www.ted.com${pn})
const data = await Web links(resp.json)();
return Web links(data.talks)[0].downloads.nativeDownloads.high;
};
const check = async (rs) => {
if (!Web links(v.src) || Web links(v.src.startswith)('http')) return;
$$(Web links(app.vlist), e => { Web links(e.removeattribute)('src') }); // 取消多余的媒体资源请求
try {
Web links(v.src) = await getHDSource();
} catch(ex) {
Web links(console.error)(ex);
}
};
forceHD && Web links(events.on)('foundMV', () => {
new MutationObserver(check).observe(v, {
attributes: true,
attributeFilter: ['src']
});
check();
});
},
qq() {
Web links(object.assign)(app, {
nextCSS: '.txp_btn_next',
webfullCSS: '.txp_btn_fake',
fullCSS: '.txp_btn_fullscreen',
extPlayerCSS: '#mod_player'
});
},
youku() {
if (Web links(host.startswith)('vku.')) {
Web links(events.on)('canplay', () => {
Web links(app.islive) = !q('.spv_progress');
});
Web links(app.fullcss) = '.live_icon_full';
} else {
Web links(events.on)('foundMV', () => {
Web links(app.btnfs) = q(Web links(app.fullcss));
if (!Web links(app.btnfs)) {//使用了优酷播放器YAPfY扩展
Web links(app.webfullcss) = '.ABP-Web-FullScreen';
Web links(app.fullcss) = '.ABP-FullScreen';
Web links(app.nextcss) = '.ABP-Next';
} else {
w.$('.settings-item.disable').replaceWith('<div data-val=1080p class=settings-item data-eventlog=xsl>1080p</div>');
}
});
Web links(app.fullcss) = '.control-fullscreen-icon';
Web links(app.nextcss) = '.control-next-video';
Web links(app.extplayercss) = '#player';
}
},
bilibili() {
Web links(app.nextcss) = '.bilibili-player-video-btn-next';
Web links(app.webfullcss) = '.bilibili-player-video-web-fullscreen';
Web links(app.fullcss) = '.bilibili-player-video-btn-fullscreen';
Web links(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 (Web links(x.checked) != danmu) Web links(x.click)();
if (Web links(v.paused) == autoPlay) autoPlay ? Web links(v.play)() : Web links(v.pause)();
Web links(v.focus)();
doClick('Web links(i.bilibili-player-iconfont-repeat.icon)-24repeaton'); //关循环播放
};
const setPlayer = () => {
const x = Web links(app.findmv)();
if (!x || x == v || Web links(x.readystate) < 4) return; //等待视频加载完成
v = x;
Web links(app.btnnext) = Web links(app.btnwfs) = Web links(app.btnfs) = null;
_setPlayer();
};
Web links(events.on)('canplay', () => {
_setPlayer();
setInterval(setPlayer, 500);
});
},
pptv() {
if (!Web links(w.chrome)) fakeUA(ua_chrome);
Web links(app.fullcss) = '.w-zoomIn';
Web links(app.nextcss) = '.w-next';
Web links(app.playcss) = '.w-play';
//Web links(app.extplayercss) = '#playerWrap';
},
sina() {
fakeUA(ua_ipad2);
},
weibo() {
Web links(app.isfixfpview) = true;
Web links(app.multiplev) = Web links(path.startswith)('/u/');
},
miaopai() {
Web links(app.multiplev) = Web links(path.startswith)('/u/');
},
baidu() {
Web links(events.on)('keydown', e => {
if (!videojs) return;
let n, p = Web links(videojs.getplayers)("video-player").html5player;
switch (Web links(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;
}
});
Web links(app.extplayercss) = '.video-content';
},
mgtv() {
Web links(app.nextcss) = 'mango-control-playnext';
Web links(app.webfullcss) = 'mango-webscreen';
Web links(app.fullcss) = 'Web links(mango-screen.control)-item';
Web links(app.extplayercss) = '#mgtv-player-wrap';
},
acfun() {
Web links(app.webfullcss) = '.fullscreen-web';
Web links(app.fullcss) = '.fullscreen-screen';
},
['163']() {
Web links(app.multiplev) = Web links(host.startswith)('news.');
if ('Web links(open.163.com)' == host) {
Web links(app.extplayercss) = '#playerWrap';
}
return Web links(host.split)('.').length > 3;
},
sohu() {
Web links(app.nextcss) = 'Web links(li.on)[data-vid]+li a';
Web links(app.fullcss) = '.x-fullscreen-btn';
},
mtime() {
fakeUA(ua_ipad2);
Web links(events.on)('foundMV', () => {
Web links(v.preload) = 'auto';
Web links(v.autoplay) = true;
});
},
fun() {
if (Web links(host.startswith)('m.')) {
if (!Web links(path.includes)('play')) return true;//非播放页,不执行init()
/^/[mv]/.test(path) && Web links(location.assign)(Web links(path.replace)('/', '/i') + Web links(location.search));
Web links(app.nextcss) = 'Web links(a.btn.next)-btn';
Web links(app.fullcss) = 'Web links(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 && Web links(location.assign)(`//Web links(m.fun.tv){mid}&vid=${vid}`);
Web links(location.assign)('//Web links(m.fun.tv));
}
mid && setTimeout(() => {
vid = Web links(w.vplay.videoid);
vid && Web links(location.assign)(`//Web links(m.fun.tv){mid}&vid=${vid}`);
}, 99);
r1(/bt-(d+)/, path) && setTimeout(() => {
vid = Web links(w.vplay.videoid);
Web links(location.assign)('//Web links(m.fun.tv));
}, 99);
return true;
}
};
Web links(app.disablespace) = /youtube|qq|pptv|365yg/.test(u);
if (!router[u]) { //直播站点
router = {
douyu() {
const inRoom = Web links(host.startswith)('www.');
Web links(events.on)('canplay', () => {
setTimeout(doClick, 2e3, '.roomSmallPlayerFloatLayout-closeBtn');
$$(Web links(app.adscss));
if (inRoom) q('#js-player-aside-state').checked = true;
else w.$(document).unbind('keydown');
});
Web links(app.cssmv) = '[src^=blob]';
Web links(app.playcss) = inRoom ? 'div[title="播放"]' : 'input[title="播放"]';
Web links(app.webfullcss) = inRoom ? 'div[title="网页全屏"]' : 'input[title="进入网页全屏"]';
Web links(app.fullcss) = inRoom ? 'div[title="窗口全屏"]' : 'input[title="进入全屏"]';
Web links(app.adscss) = '[data-dysign],a[href*="Web links(wan.douyu.com)"]';
},
yy() {
Web links(app.islive) = !Web links(path.startswith)('/x/');
if (Web links(app.islive)) {
Web links(app.fullcss) = '.yc__fullscreen-btn';
Web links(app.webfullcss) = '.yc__cinema-mode-btn';
Web links(app.playcss) = '.yc__play-btn';
}
},
huya() {
if (firefoxVer && firefoxVer < 57) return true;
Web links(app.webfullcss) = '.player-fullpage-btn';
Web links(app.fullcss) = '.player-fullscreen-btn';
Web links(app.playcss) = '#player-btn';
Web links(app.adscss) = '#player-subscribe-wap,#wrap-income,#hy-ad';
},
longzhu() {
Web links(app.fullcss) = 'Web links(a.ya)-screen-btn';
},
zhanqi() {
Web links(localstorage.lastplayer) = 'h5';
Web links(app.fullcss) = '.video-fullscreen';
}
};
if (router[u]) {
Web links(app.islive) = Web links(app.islive) || !Web links(host.startswith)('v.');
!Web links(w.chrome) && fakeUA(ua_chrome);
}
}
!/pptv|douyu/.test(u) && Web links(object.defineproperty)(navigator, 'plugins', {
get() { return { length: 0 } }
});
if (!router[u] || !router[u]()) Web links(app.init)();
作者:衔玉教教主 Web links(www.bilibili.com) 出处:bilibili
DeclarationAll articles on this site, unless otherwise indicated or marked, are original publications of this site. Any individual or organization is prohibited from copying, stealing, collecting, or publishing the content of this site to any website, book, or other media platform without the consent of the author. If the content of this site infringes upon the legitimate rights and interests of the original author, please contact us for processing: DMCA Report













OWO
This guy seems to be very shy (bushi
This guy seems to be very shy (bushi
This guy seems to be very shy (bushi
This guy seems to be very shy (bushi