fix: 修复镜像排版/图片/背景问题,保留原站动态壁纸 - #13
Merged
Merged
Conversation
mkaaad
commented
Aug 14, 2026
Member
- 清洗前解压 gzip 压缩的 CSS/JS(原站下发 gzip 字节, 之前被 UTF-8 读写损坏导致样式全丢、白屏)
- 同源绝对 URL(srcset/src/og:image/inline style/CSS/JS/JSON) 统一改写为镜像本地路径,修复 CSP 拦截造成的封面破图
- 新增可选配置 extraOrigins/extraAssets/alwaysFetch, 适配独立图床、外站壁纸视频、sitemap 外页面,后续友链 PR 按需声明
- 动态壁纸视频镜像到本地,
- 音乐组件误写的页面地址图片转透明占位图
- 校验脚本覆盖新配置字段,坏配置在 PR 阶段即被拒绝
- 增量抓取 wget 失败时输出警告,避免静默部署旧缓存
- 清洗前解压 gzip 压缩的 CSS/JS(原站下发 gzip 字节, 之前被 UTF-8 读写损坏导致样式全丢、白屏) - 同源绝对 URL(srcset/src/og:image/inline style/CSS/JS/JSON) 统一改写为镜像本地路径,修复 CSP 拦截造成的封面破图 - 新增可选配置 extraOrigins/extraAssets/alwaysFetch, 适配独立图床、外站壁纸视频、sitemap 外页面,后续友链 PR 按需声明 - 动态壁纸视频镜像到本地,<video> 与主题配置保持原样 - 音乐组件误写的页面地址图片转透明占位图 - 校验脚本覆盖新配置字段,坏配置在 PR 阶段即被拒绝 - 增量抓取 wget 失败时输出警告,避免静默部署旧缓存
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.