我想弄一个b站的去弹幕和宽屏的脚本,模拟点击类似如下// ==UserScript==// @name 一键B站开关弹幕(Alt)// @namespace http://tampermonkey.net/// @version 0.2// @description try to take over the world!// @author You// @match *://*.bilibili.com/*// ==/UserScript==setTimeout(function(){ document.querySelector('.bilibili-player-video-btn-widescreen').click(); document.querySelector('.bui-checkbox').click();},1000);但是我放在猴子里面只有宽屏的有效,而弹幕的却无效,但是我在网页的console那里测试却又是可以的,这是为什么呢?
添加回答
举报
0/150
提交
取消