Skip to content

Commit

Permalink
chore: change default status
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jul 14, 2024
1 parent 5c1797b commit b5278ff
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

## 3.9.0

- 新增:播放页 新版评论区净化优化 适配测试
- 新增:播放页 新版评论区评论过滤 适配测试
- 新增:播放页新版评论区 净化优化 适配测试
- 新增:播放页新版评论区 评论过滤 适配测试
- 更新:对播放页/首页/热门页/频道页默认开启UP主过滤

## 3.8.2

Expand Down
3 changes: 2 additions & 1 deletion src/filters/videoFilter/pages/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,11 @@ if (isPageChannel()) {

// UI组件, UP主过滤
const uploaderItems = [
// 启用 UP主过滤
// 启用 UP主过滤, 默认开启
new CheckboxItem({
itemID: channelUploaderAction.statusKey,
description: '启用 UP主过滤 (右键单击UP主)',
defaultStatus: true,
enableFunc: async () => {
// 启用右键功能
isContextMenuUploaderEnable = true
Expand Down
3 changes: 2 additions & 1 deletion src/filters/videoFilter/pages/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,11 @@ if (isPageHomepage()) {

// UI组件, UP主过滤
const uploaderItems = [
// 启用 首页UP主过滤
// 启用 首页UP主过滤, 默认开启
new CheckboxItem({
itemID: homepageUploaderAction.statusKey,
description: '启用 UP主过滤 (右键单击UP主)',
defaultStatus: true,
enableFunc: async () => {
// 启用右键功能
isContextMenuUploaderEnable = true
Expand Down
3 changes: 2 additions & 1 deletion src/filters/videoFilter/pages/popular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,11 @@ if (isPagePopular()) {

// UI组件, UP主过滤part
const uploaderItems = [
// 启用 热门页 UP主过滤
// 启用 热门页 UP主过滤, 默认开启
new CheckboxItem({
itemID: popularUploaderAction.statusKey,
description: '启用 UP主过滤 (右键单击UP主)',
defaultStatus: true,
enableFunc: async () => {
// 启用右键功能
isContextMenuUploaderEnable = true
Expand Down
3 changes: 2 additions & 1 deletion src/filters/videoFilter/pages/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,11 @@ if (isPageVideo() || isPagePlaylist()) {

// UI组件, UP主过滤part
const uploaderItems = [
// 启用 播放页UP主过滤
// 启用 播放页UP主过滤, 默认开启
new CheckboxItem({
itemID: videoUploaderAction.statusKey,
description: '启用 UP主过滤 (右键单击UP主)',
defaultStatus: true,
enableFunc: async () => {
// 启用右键菜单功能
isContextMenuUploaderEnable = true
Expand Down
4 changes: 2 additions & 2 deletions src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1600,10 +1600,10 @@ if (isPageVideo() || isPagePlaylist()) {

// 评论区
const commentItems = [
// 禁用 新版评论区灰测
// 禁用 新版评论区
new CheckboxItem({
itemID: 'video-page-disable-next-comment-abtest',
description: '禁用 新版评论区灰测 (临时功能)\n评论区功能失效时 开启本项并刷新',
description: '禁用 新版评论区, 恢复旧版 (临时功能)',
enableFunc: async () => {
let origValue = unsafeWindow.__INITIAL_STATE__
if (origValue?.abtest) {
Expand Down

0 comments on commit b5278ff

Please sign in to comment.