switch off bilibili bullet screen automatically
// ==UserScript==
// @name bilibili自动关闭弹幕
// @namespace somethingsomething
// @version 0.2
// @description switch off bilibili bullet screen automatically
// @description:cn bilibili自动关闭弹幕
// @author megablue
// @match *://*.bilibili.com/video/*
// ==/UserScript==
(function() {
'use strict';
function disable_danmu() {
var target = document.querySelector("input[class='bui-switch-input']")
if(target && target.checked){
target.click();
}
else if(!target){
setTimeout(disable_danmu, 500);
}
}
disable_danmu()
})();