Userscript: Google Gemini Tab Renamer
Share this page | Read it later using CloudBreak Wallabag
Use with Tampermonkey or a compatible userscript manager.
Known issue: if the chat name isn’t on the screen, it uses the name of the first chat instead. It turns out Gemini doesn’t even know the name of the chat on the screen until scrolling down to it in the history (check the top of the screen to see what I mean). I’m opting to ignore the issue until Google improves the situation.
// ==UserScript==
// @name Google Gemini Tab Renamer
// @namespace https://benjaminoakes.com/
// @version 1.0
// @description Sets tab title to the title of the selected chat
// @author Benjamin Oakes
// @license CC0-1.0
// @match https://gemini.google.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function syncTitle() {
const targetElement = document.querySelector('.conversation-title');
if (targetElement && targetElement.innerText.trim().length > 0) {
const newTitle = targetElement.innerText.trim();
if (document.title !== newTitle) {
document.title = newTitle;
}
}
}
setInterval(syncTitle, 1000);
})();