Skip to content

Instantly share code, notes, and snippets.

@palaniraja
Last active June 7, 2026 01:18
Show Gist options
  • Select an option

  • Save palaniraja/f847780486eb990f5c7c5116390a73c0 to your computer and use it in GitHub Desktop.

Select an option

Save palaniraja/f847780486eb990f5c7c5116390a73c0 to your computer and use it in GitHub Desktop.
gemini ublock origin rules
! gemini without custom font and make it bit reasonable
! Force the main conversation view to use the full screen width
gemini.google.com##.conversation-container, main, .mes-content:style(max-width: 100% !important; width: 100% !important;)
! Remove the fading mask effect on wide tables or code blocks
gemini.google.com##.table-content, .table-block:style(mask-image: none !important; -webkit-mask-image: none !important;)
! Allow elements inside the message layout to stretch completely
gemini.google.com##.table-block, split-layout:style(max-width: 100% !important; width: 100% !important;)
! --- Reset Gemini Font Stack to Clean Standard Fonts ---
gemini.google.com##body, html, .message-content, .conversation-container:style(font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;)
! --- Clean Up Broken Material Icon Typography ---
gemini.google.com##.material-symbols-outlined, mat-icon:style(font-family: monospace !important; font-size: 11px !important; letter-spacing: -0.5px; background: rgba(0,0,0,0.05); padding: 2px 4px; border-radius: 4px; text-transform: uppercase; font-weight: bold; font-style: normal;)
! Target Gemini website and swap material icon elements with native system fonts or single unicode characters
gemini.google.com##[data-mat-icon-name]:style(font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; font-size: 14px !important; letter-spacing: normal !important; text-transform: none !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;)
! Hide the underlying broken text node values inside the element if necessary, or clean up spacing
gemini.google.com##[data-mat-icon-name]::before:style(font-weight: bold !important; font-style: normal !important;)
! Map specific data attributes to clean, lightweight fallback characters
gemini.google.com##[data-mat-icon-name="side_nav"]::before:style(content: "โ˜ฐ " !important;)
gemini.google.com##[data-mat-icon-name="gemini_chat"]::before:style(content: "๐Ÿ’ฌ " !important;)
gemini.google.com##[data-mat-icon-name="library"]::before:style(content: "๐Ÿ“š " !important;)
gemini.google.com##[data-mat-icon-name="add_2"]::before:style(content: "โž• " !important;)
gemini.google.com##[data-mat-icon-name="plus"]::before:style(content: "โž• " !important;)
gemini.google.com##[data-mat-icon-name="settings"]::before:style(content: "โš™๏ธ " !important;)
gemini.google.com##[data-mat-icon-name="spark"]::before:style(content: "โœจ " !important;)
gemini.google.com##[data-mat-icon-name="more_vert"]::before:style(content: "โ‹ฎ " !important;)
gemini.google.com##[data-mat-icon-name="more_horiz"]::before:style(content: "โ‹ฏ " !important;)
gemini.google.com##[data-mat-icon-name="keyboard_arrow_down"]::before:style(content: "โ–ผ " !important;)
gemini.google.com##[data-mat-icon-name="expand_content"]::before:style(content: "โ†™โ†— " !important;)
gemini.google.com##[data-mat-icon-name="mic"]::before:style(content: "๐ŸŽค " !important;)
gemini.google.com##[data-mat-icon-name="thumb_up"]::before:style(content: "๐Ÿ‘ " !important;)
gemini.google.com##[data-mat-icon-name="thumb_down"]::before:style(content: "๐Ÿ‘Ž " !important;)
gemini.google.com##[data-mat-icon-name="refresh"]::before:style(content: "๐Ÿ”„ " !important;)
gemini.google.com##[data-mat-icon-name="copy"]::before:style(content: "๐Ÿ“‹ " !important;)
gemini.google.com##[data-mat-icon-name="arrow_circle_down"]::before:style(content: "โฌ " !important;)
gemini.google.com##[data-mat-icon-name="arrow_upward"]::before:style(content: "โ–ฒ " !important;)
gemini.google.com##[data-mat-icon-name="image_create"]::before:style(content: "๐Ÿ–ผ๏ธ " !important;)
gemini.google.com##[data-mat-icon-name="search"]::before:style(content: "๐Ÿ” " !important;)
! Fix model menu popovers and basic interactive icons
gemini.google.com##[data-mat-icon-name="arrow_drop_down"]::before:style(content: " โ–พ" !important;)
gemini.google.com##[data-mat-icon-name="check"]::before:style(content: "โœ“ " !important;)
gemini.google.com##[data-mat-icon-name="experimental_google_spark"]::before:style(content: "โœจ " !important;)
gemini.google.com##[data-mat-icon-name="open_in_new"]::before:style(content: " โ†—" !important;)
gemini.google.com##[data-mat-icon-name="extension"]::before:style(content: "๐Ÿงฉ " !important;)
gemini.google.com##[data-mat-icon-name="delete"]::before:style(content: "๐Ÿ—‘๏ธ " !important;)
gemini.google.com##[data-mat-icon-name="edit"]::before:style(content: "โœ๏ธ " !important;)
gemini.google.com##[data-mat-icon-name="info"]::before:style(content: "โ„น๏ธ " !important;)
gemini.google.com##[data-mat-icon-name="help"]::before:style(content: "โ“ " !important;)
! If the original text (like "settings") is still bleeding through behind the emoji, hide the original inner text element
gemini.google.com##[data-mat-icon-name]:style(color: transparent !important; width: 1.5em !important; height: 1.5em !important; overflow: hidden !important; position: relative !important;)
gemini.google.com##[data-mat-icon-name]::before:style(color: initial !important; position: absolute !important; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment