哔哩哔哩B站播放结束自动跳过充电鸣谢

b站(bilibili)自动跳过充电鸣谢

// ==UserScript==
// @name         哔哩哔哩B站播放结束自动跳过充电鸣谢
// @namespace    https://greasyfork.org/zh-CN/scripts
// @version      0.0.1
// @description  b站(bilibili)自动跳过充电鸣谢
// @author       cooper1x
// @match        *://*.bilibili.com/video/*
// @icon         https://www.bilibili.com/favicon.ico?v=1
// @grant        none
// @license      cooper1x
// ==/UserScript==

(function () {
  const bv = document.querySelector('bwp-video') || document.querySelector('video');
  if (bv) {
    bv.onended = () => {
      setTimeout(() => {
        document.querySelector('.bilibili-player-electric-panel-jump').click()
      }, 100)
    }
  }
})();