How to install
You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.
You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
You will need to install an extension such as Tampermonkey or Userscripts to install this script.
You will need to install a user script manager extension to install this script.
OK
How to install
You will need to install an extension such as Stylus to install this script.
You will need to install an extension such as Stylus to install this script.
You will need to install an extension such as Stylus to install this script.
You will need to install a user style manager extension to install this script.
You will need to install a user style manager extension to install this script.
OK
// ==UserScript==
// @name 斗鱼视频默认Html5
// @namespace coreredhat
// @version 0.1
// @description 斗鱼录播视频默认用H5
// @author space
// @match https://v.douyu.com/*
// @grant unsafeWindow
// @note 改自《自动切换斗鱼 H5 beta 播放器》,只改了一下引用的地址
// @note 原作者地址:https://greasyfork.org/zh-CN/scripts/39742-自动切换斗鱼-h5-beta-播放器
// ==/UserScript==
(function() {
'use strict';
var id = setInterval(() => {
if (unsafeWindow.__player !== undefined) {
console.log('完成!');
unsafeWindow.__player.switchPlayer(true);
clearInterval(id);
}
}, 100);
})();