Skip to content

checkUserScriptsAvailable 兼容 Vivaldi#859

Merged
CodFrm merged 5 commits intoscriptscat:mainfrom
cyfung1031:pr-兼容-11
Oct 23, 2025

Hidden character warning

The head ref may contain hidden characters: "pr-\u517c\u5bb9-11"
Merged

checkUserScriptsAvailable 兼容 Vivaldi#859
CodFrm merged 5 commits intoscriptscat:mainfrom
cyfung1031:pr-兼容-11

Conversation

@cyfung1031
Copy link
Copy Markdown
Collaborator

概述

变更内容

截图

@cyfung1031 cyfung1031 marked this pull request as draft October 19, 2025 04:49
Comment thread src/pkg/utils/utils.ts Outdated
@cyfung1031 cyfung1031 marked this pull request as ready for review October 19, 2025 17:30
@CodFrm CodFrm requested a review from Copilot October 23, 2025 01:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

这个 PR 增强了 checkUserScriptsAvailable 函数以兼容 Vivaldi 浏览器的 UserScripts API 权限检测问题。Vivaldi 浏览器在处理 MV3 UserScripts API 权限时存在不一致行为,需要通过实际注册/注销测试来验证 API 可用性。

主要变更:

  • 改进了 UserScripts API 可用性检测逻辑,增加注册/注销测试以应对权限检测不准确的浏览器
  • 统一了代码注释中的繁简体字符(將→则、裡→里、嘗試→尝试等)

Comment thread src/pkg/utils/utils.ts Outdated
Comment thread src/pkg/utils/utils.ts
Comment thread src/pkg/utils/utils.ts Outdated
Comment thread src/pkg/utils/utils.ts Outdated
CodFrm and others added 3 commits October 23, 2025 09:45
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@CodFrm CodFrm merged commit 014d62d into scriptscat:main Oct 23, 2025
1 of 2 checks passed
cyfung1031 added a commit to cyfung1031/scriptcat that referenced this pull request Nov 2, 2025
* checkUserScriptsAvailable 兼容 Vivaldi

* checkUserScriptsAvailable 兼容 Vivaldi

* Update src/pkg/utils/utils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/pkg/utils/utils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* 扩充->扩展

---------

Co-authored-by: wangyizhi <i@xloli.top>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: 王一之 <yz@ggnb.top>
@cyfung1031 cyfung1031 deleted the pr-兼容-11 branch December 21, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants