您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
关闭哔哩哔哩弹幕,默认开启字幕太烦了
当前为
// ==UserScript== // @name 默认关闭哔哩哔哩弹幕 // @namespace http://greasyfork.icu/zh-CN/users/4330 // @version 1.0 // @description 关闭哔哩哔哩弹幕,默认开启字幕太烦了 // @author x2009again // @match http*://www.bilibili.com/* // @grant none // @run-at document-end // ==/UserScript== (function() { 'use strict'; var title=""; function closedanmuku() { var count=0; var timer = setInterval(function() { var divfordanmakuswitch=document.querySelector(".bilibili-player-video-danmaku-switch"); if(divfordanmakuswitch!=null) { var inputdanmaku= divfordanmakuswitch.firstChild; if (inputdanmaku!=null&&title!=document.querySelector(".bilibili-player-video-top-title").innerText) { inputdanmaku.click(); title=document.querySelector(".bilibili-player-video-top-title").innerText; clearInterval(timer); } else if(count<10) { count++; } else { clearInterval(timer); } } else if(count<10) { count++; } else { clearInterval(timer); } }, 100); } closedanmuku(); document.addEventListener("click",function(){closedanmuku();}); })();