Skip to content

改进Firefox和Edge/Chrome等zip下载的实现方式#277

Merged
ChinaGodMan merged 7 commits intoChinaGodMan:mainfrom
Metric640:main
Apr 2, 2026
Merged

改进Firefox和Edge/Chrome等zip下载的实现方式#277
ChinaGodMan merged 7 commits intoChinaGodMan:mainfrom
Metric640:main

Conversation

@Metric640
Copy link
Copy Markdown
Contributor

@Metric640 Metric640 commented Apr 2, 2026

变更内容

不同浏览器下,Violentmonkey 对 GM_download + Blob URL 的支持存在差异,浏览器自适应下载。

相关问题

请列出本次 PR 相关的 issue 编号(例如:#123)。

变更类型

  • 修复 Bug
  • 新功能
  • 代码优化
  • 文档更新
  • 其他(请描述)
  • QA

测试情况

请描述本次提交的变更是否经过测试,以及测试的方式和结果。

注意事项

是否有需要注意的内容或潜在问题(例如,兼容性、依赖项等)?

Metric640 and others added 6 commits April 2, 2026 14:59
1.arrayBuffer() 比 blob() 更可靠:在跨域和 CSP 受限环境下,ArrayBuffer 的获取策略更严格但更稳定,JSZip 可以完全读取二进制数据。
2.Uint8Array 是 JSZip 原生支持的类型:避免浏览器对 blob 的“不透明”包装。
不同浏览器下,Violentmonkey 对 GM_download + Blob URL 的支持存在差异,浏览器自适应下载。
@labels-and-badges labels-and-badges Bot added NO JIRA This PR does not have a Jira Ticket PR:size/M Denotes a Pull Request that changes 30-99 lines. release This PR is a release labels Apr 2, 2026
@ChinaGodBot
Copy link
Copy Markdown
Collaborator

@Metric640 你好,人民的勤务员将尽快审查合并此次请求!🚀 [自动回复,请勿跟帖]

@ChinaGodBot ChinaGodBot requested a review from ChinaGodMan April 2, 2026 12:09
Copy link
Copy Markdown
Owner

@ChinaGodMan ChinaGodMan left a comment

Choose a reason for hiding this comment

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

😎

@labels-and-badges labels-and-badges Bot added the PR:APPROVED Review is approved label Apr 2, 2026
@ChinaGodMan ChinaGodMan merged commit ffc1462 into ChinaGodMan:main Apr 2, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NO JIRA This PR does not have a Jira Ticket PR:APPROVED Review is approved PR:size/M Denotes a Pull Request that changes 30-99 lines. release This PR is a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants