v1.0.1

GargantuaX/gemini-watermark-removerv1.0.1Mar 19, 2026by GargantuaX

AI Summary

Adds in-page preview replacement and resolves CORS issues for userscripts.

Key Highlights

  • Added in-page Gemini preview replacement.
  • Routed preview fetching via `GM_xmlhttpRequest` to avoid CORS failures.
  • Added `Processing...` overlay with fail-open behavior.
  • Hardened overlay lifecycle cleanup.

New Features

  • In-page preview replacement
  • CORS handling improvement
  • Processing overlay UX
  • Lifecycle management

Full Release Notes

# Changelog / 更新日志

## 1.0.1 - 2026-03-19

### Userscript / 油猴脚本

- Added in-page Gemini preview replacement so page images can be processed before manual download.
- Routed preview fetching through `GM_xmlhttpRequest` when available, avoiding fallback CORS failures in userscript sandboxes.
- Added a restrained `Processing...` overlay during preview processing and made failures fail-open so the original image remains visible.
- Hardened overlay lifecycle cleanup to avoid stale fade callbacks removing a new processing state.

- 新增 Gemini 页面内预览图替换链路,页面图片现在可以在手动下载前先完成去水印处理。
- 预览图抓取在可用时优先走 `GM_xmlhttpRequest`,避免 userscript 沙箱里回退到普通 `fetch` 后触发 CORS 失败。
- 预览图处理期间新增克制的 `Processing...` 遮罩,处理失败时保持原图可见,不会把页面图片替换成空白状态。
- 加固了处理中遮罩的生命周期,避免旧的淡出回调误删新一轮处理状态。

### Extension / 扩展

- Kept page-image replacement behavior aligned with the userscript preview pipeline and processing-state UX.
- 保持页面内图片替换行为与 userscript 预览处理链路、处理中体验一致。

### Quality / 质量

- Added regression tests for userscript version sync and processing overlay lifecycle edge cases.
- Verified release build with full automated test coverage and production bundle generation.
- 新增 userscript 版本同步测试,以及处理中遮罩生命周期边界测试。
- 已完成完整自动化测试与生产构建验证。