Skip to content

Conversation

@cyfung1031
Copy link
Collaborator

@cyfung1031 cyfung1031 commented Nov 7, 2025

概述 Descriptions

之前 @early-start 的代码修改,导致 #704 的修改被倒回去了
现在重做 #704

历史原因,scripting.RegisteredContentScript 的设计不是用来做 自订脚本 用途,不支持动态代码。
它只支持url 网址,,而不支持 code 代码
这个PR做了在网址取 flags 的处理,因此不需要 code

但相反 chrome 不支持网址参数,因此还是用 userScripts API 做注入

已测试过能在 Firefox & Chrome 顺利执行

变更内容 Changes

截图 Screenshots

@cyfung1031 cyfung1031 marked this pull request as draft November 7, 2025 18:25
@cyfung1031 cyfung1031 marked this pull request as ready for review November 7, 2025 18:52
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.

1 participant