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 force-pushed the pr-704b branch 2 times, most recently from 96352e8 to deea0bc Compare November 7, 2025 18:52
@cyfung1031 cyfung1031 marked this pull request as ready for review November 7, 2025 18:52
@cyfung1031 cyfung1031 force-pushed the pr-704b branch 2 times, most recently from 4f9723b to 01bb9fa Compare November 17, 2025 09:50
@cyfung1031 cyfung1031 changed the base branch from main to release/v1.3 November 17, 2025 09:51
@cyfung1031 cyfung1031 changed the title userScripts / scripting API 调整,增强兼容性 ( 重做 #704 ) [暂定v1.3] userScripts / scripting API 调整,增强兼容性 ( 重做 #704 ) Nov 17, 2025
@cyfung1031 cyfung1031 changed the title [暂定v1.3] userScripts / scripting API 调整,增强兼容性 ( 重做 #704 ) [v1.3] userScripts / scripting API 调整,增强兼容性 ( 重做 #704 ) Nov 22, 2025
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