// ==UserScript== // @name 默认关闭哔哩哔哩弹幕 // @namespace https://greasyfork.org/zh-CN/users/4330 // @version 2.0 // @description 关闭哔哩哔哩弹幕,默认开启字幕太烦了 // @author x2009again // @match http*://www.bilibili.com/* // @grant none // @run-at document-end // @downloadURL none // ==/UserScript== (function() { 'use strict'; var autochangurl=0; var maxcount=30; function closedanmuku(count) { window.timer = setInterval(function() { var divfordanmakuswitch=document.querySelector(".bilibili-player-video-danmaku-switch"); if(divfordanmakuswitch!=null) { var inputdanmaku= divfordanmakuswitch.firstChild; if (inputdanmaku!=null&&inputdanmaku.click!=null){ if(autochangurl==1) { autochangurl=0; clearInterval(window.timer); } else { inputdanmaku.click(); clearInterval(window.timer); } } else if(count