Portfolio / JavaScript lane / ClearGem
EXT

ClearGem

Gemini watermark remover

JavaScriptExtension
Delivery
Source-first
Browse code, README, and release notes on GitHub.
Primary lane
JavaScript lane
The clearest adjacent context for this project inside the portfolio.
Freshness
Updated Apr 26, 2026
Latest release
No tag yet
README is the clearest project overview right now.

Preview

Using the generated project card as a clean fallback until a live capture is available.

ClearGem card

Source at github.com/SysAdminDoc/ClearGem.

README

Cached at build time, cleaned up for in-site reading, and linked back to the canonical GitHub source.

ClearGem

Version License Platform

Automatically removes visible watermarks from Google Gemini AI-generated images. Available as a Tampermonkey userscript and a Chrome/Firefox extension. Zero-click — just install and forget.

Before After
Gemini image with watermark Gemini image with watermark removed

How It Works

Gemini stamps a semi-transparent white 4-pointed star logo in the bottom-right corner of every generated image using alpha compositing:

watermarked_pixel = alpha * 255 + (1 - alpha) * original_pixel

ClearGem reverses this mathematically to reconstruct the original pixels:

original_pixel = (watermarked_pixel - alpha * 255) / (1 - alpha)

Pre-calibrated alpha maps (48x48 and 96x96) are embedded directly. No AI inpainting, no server calls, no quality loss — pixel-perfect reconstruction with 99.9% accuracy (bounded only by 8-bit quantization).

Features

  • Zero-click — images are cleaned automatically as they appear in chat
  • Download interception — Gemini's download button delivers clean images
  • Copy interception — Gemini's copy button copies clean images to clipboard
  • Auto-detection — picks 48x48 or 96x96 watermark size based on image dimensions
  • 100% client-side — nothing leaves your browser
  • Toast notifications — subtle confirmation when images are cleaned

Install

Userscript (Tampermonkey / Greasemonkey)

  1. Install Tampermonkey (or any userscript manager)
  2. Download `cleargem.user.js` from the latest release — Tampermonkey will prompt to install
  3. Navigate to gemini.google.com — active immediately

Chrome Extension

  1. Download `ClearGem-v1.0.4.zip` from the latest release and unzip
  2. Go to chrome://extensions, enable Developer mode
  3. Click Load unpacked and select the unzipped folder

Or drag the .crx file onto the extensions page.

Firefox Extension

  1. Download `ClearGem-v1.0.4.xpi` from the latest release
  2. Go to about:addons, click the gear icon, select Install Add-on From File

Compatibility

Site Userscript Extension
gemini.google.com Yes Yes
aistudio.google.com Yes Yes

Userscript works with Tampermonkey MV3 (@inject-into content). Extension is Manifest V3.

Limitations

  • Removes the visible watermark only. Does not remove SynthID — Google's invisible steganographic watermark embedded at the pixel generation level. That requires diffusion model re-processing and is a fundamentally different problem.
  • If Google changes the watermark pattern, position, or alpha values, the embedded alpha maps will need updating.

Credits

Reverse alpha blending method and calibrated watermark masks based on GeminiWatermarkTool by Allen Kuo (MIT License). Alpha map data sourced from gemini-watermark-remover.

License

MIT

Read on GitHub → github.com/SysAdminDoc/ClearGem