diff --git a/CHANGELOG.md b/CHANGELOG.md index e206b4b0..ebcfea3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 3.7.2 +- 新增:直播页 活动直播页自动跳转普通直播 +- 优化:播放页 网页全屏页面滚动 - 更新:首页 隐藏banner,第一排按钮弹出菜单下置 ## 3.7.1 diff --git a/src/rules/live.ts b/src/rules/live.ts index f9469506..6f901b1b 100644 --- a/src/rules/live.ts +++ b/src/rules/live.ts @@ -124,6 +124,24 @@ if (isPageLiveRoom()) { } `, }), + // 活动直播页 自动跳转普通直播 + new CheckboxItem({ + itemID: 'activity-live-auto-jump', + description: '活动直播页 自动跳转普通直播 (实验功能)', + itemFunc: () => { + const jump = () => { + if (document.querySelector('#internationalHeader')) { + if (!location.href.includes('/blanc/')) { + window.location.href = location.href.replace( + 'live.bilibili.com/', + 'live.bilibili.com/blanc/', + ) + } + } + } + document.readyState === 'complete' ? jump() : document.addEventListener('DOMContentLoaded', jump) + }, + }), ] liveGroupList.push(new Group('live-basic', '直播页 基本功能', basicItems))