checkUserScriptsAvailable 兼容 Vivaldi#859
Merged
CodFrm merged 5 commits intoscriptscat:mainfrom Oct 23, 2025
Hidden character warning
The head ref may contain hidden characters: "pr-\u517c\u5bb9-11"
Merged
Conversation
CodFrm
reviewed
Oct 19, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
这个 PR 增强了 checkUserScriptsAvailable 函数以兼容 Vivaldi 浏览器的 UserScripts API 权限检测问题。Vivaldi 浏览器在处理 MV3 UserScripts API 权限时存在不一致行为,需要通过实际注册/注销测试来验证 API 可用性。
主要变更:
- 改进了 UserScripts API 可用性检测逻辑,增加注册/注销测试以应对权限检测不准确的浏览器
- 统一了代码注释中的繁简体字符(將→则、裡→里、嘗試→尝试等)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
变更内容
截图