Greasy Fork is available in English.

自动切换斗鱼 H5 beta 播放器

省去右键切换的过程

// ==UserScript==
// @name         自动切换斗鱼 H5 beta 播放器
// @namespace    http://imspace.cn/
// @version      0.1
// @description  省去右键切换的过程
// @author       space
// @match        https://www.douyu.com/*
// @grant        unsafeWindow
// ==/UserScript==

(function() {
    'use strict';
    var id = setInterval(() => {
        if (unsafeWindow.__player !== undefined) {
            console.log('切换官方H5播放器成功');
            unsafeWindow.__player.switchPlayer(true);
            clearInterval(id);
        }
    }, 100);
    setTimeout(() => {
        clearInterval(id);
        console.error('自动切换到斗鱼官方H5播放器失败 原因: 超时(10秒)');
    }, 10 * 1000);
})();