Skip to content

Commit a93cdcb

Browse files
authored
feat: add Bilibili_No_Autoplay
1 parent ba0258b commit a93cdcb

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const m = new MutationObserver(() => {
2+
const e = document.querySelector('.bpx-player-ending-related-item-cancel');
3+
if (e && getComputedStyle(e).display !== 'none') {
4+
e.click();
5+
}
6+
});
7+
8+
m.observe(document.body, { subtree: true, childList: true });

Bilibili_No_Autoplay/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Bilibili No Autoplay
2+
3+
禁用B站视频播放完后自动下一集
4+
5+
[【点击安装】](https://userscript.firefoxcn.net/js/Bilibili_No_Autoplay.user.js)
6+
7+
author: 泷涯

Bilibili_No_Autoplay/meta.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: Bilibili No Autoplay
2+
version: 1
3+
description: 禁用B站视频播放完后自动下一集
4+
include:
5+
- https://www.bilibili.com/*
6+
author: ShuangYa
7+
namespace: http://blog.sylingd.com

0 commit comments

Comments
 (0)