您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
跳过bilibili充电鸣谢,自动连续播放
// ==UserScript== // @name 跳过bilibili充电鸣谢 // @namespace 怒火无边 // @version 4.0 // @description 跳过bilibili充电鸣谢,自动连续播放 // @author 怒火无边 // @match https://www.bilibili.com/video/* // @grant GM_log // @grant GM_addStyle // @grant GM_setValue // @grant GM_getValue // @grant GM_xmlhttpRequest // @grant GM_deleteValue // @license MIT License // ==/UserScript== (function() { var myVar; function myFunction() { myVar = setTimeout(function func(){ console.log("东哥牛A"); if(document.getElementsByTagName('bwp-video').length>0){ console.log("东哥牛B") document.getElementsByTagName('bwp-video')[0].onended=function(){ if(document.getElementsByClassName('bilibili-player-video-btn-next')[0]){ document.getElementsByClassName('bilibili-player-video-btn-next')[0].click() } if(document.getElementsByClassName('bpx-player-ctrl-next')[0]){ document.getElementsByClassName('bpx-player-ctrl-next')[0].click() } } } if(document.getElementsByTagName('video').length>0){ console.log("东哥牛C") document.getElementsByTagName('video')[0].onended=function(){ if(document.getElementsByClassName('bilibili-player-video-btn-next')[0]){ document.getElementsByClassName('bilibili-player-video-btn-next')[0].click() } if(document.getElementsByClassName('bpx-player-ctrl-next')[0]){ document.getElementsByClassName('bpx-player-ctrl-next')[0].click() } } } }, 5000); } myFunction(); })();