Greasy Fork

Greasy Fork is available in English.

默认关闭哔哩哔哩弹幕

关闭哔哩哔哩弹幕,默认开启字幕太烦了

当前为 2019-10-09 提交的版本,查看 最新版本

// ==UserScript==
// @name         默认关闭哔哩哔哩弹幕
// @namespace    http://greasyfork.icu/zh-CN/users/4330
// @version      0.1
// @description  关闭哔哩哔哩弹幕,默认开启字幕太烦了
// @author       x2009again
// @match        http*://www.bilibili.com/video/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    var timer = setInterval(function() {
        var inputdanmaku= $(".bilibili-player-video-danmaku-switch").find("input.bui-checkbox");
        if (inputdanmaku.length > 0) {
            inputdanmaku.click();
            clearInterval(timer);
        }
    }, 100);
})();