Skip to content

Instantly share code, notes, and snippets.

@FelikZ
Last active July 28, 2026 11:41
Show Gist options
  • Select an option

  • Save FelikZ/1f159245958b2fa922f4d7840313e7f5 to your computer and use it in GitHub Desktop.

Select an option

Save FelikZ/1f159245958b2fa922f4d7840313e7f5 to your computer and use it in GitHub Desktop.
Disable HDR emojis in Google Chat
// ==UserScript==
// @name Disable HDR Emojis in Google Chat
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Clamp custom emoji brightness to disable HDR/bloom effects in Google Chat.
// @author Alexey Shevchenko
// @match https://chat.google.com/*
// @grant GM_addStyle
// ==/UserScript==
(function () {
'use strict';
// Custom emoji images sometimes have a brightness filter applied that produces
// an HDR/bloom effect. Clamping brightness to 1 disables that effect.
GM_addStyle(`
img[data-shortcode^=':'][data-shortcode$=':'][src*='/api/get_custom_emoji_image?'],
img[alt^=':hdr-'][src*='/api/get_custom_emoji_image?'] {
filter: brightness(1) !important;
}
`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment