After the recent UI changes, the title of the Chat is not shown in the Browser window title anymore. This was especially helpful when having several Tabs with chats, would be nice to have this back and probably not too much effort. It would also be nice to have the title of the app appear in the window title as well.
1 Like
come back, Browser window title, i need you ![]()
Hello,
Welcome to the Forum!
Thank you for your feedback, we have shared it with the concerned team.
Thanks. Meanwhile anyone missing the chat and app titles in the window title can help themselves by using a user script like this (via an extension like Tampermonkey)
// ==UserScript==
// @name Prepend Page Title for AI Studio (Dynamic & Live)
// @namespace http://tampermonkey.net/
// @version 0.6
// @description Captures the initial page title, then watches for the 'page-title' element to keep the document title in sync.
// @author G
// @match *://aistudio.google.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// --- 1. Capture the initial page title as soon as the script runs ---
const initialPageTitle = document.title;
console.log("AI Studio Title Script: Captured initial page title: '" + initialPageTitle + "'");
// A function that finds the element and updates the title if necessary.
const updateTitle = () => {
const pageTitleElement = document.getElementsByClassName('page-title')[0];
// --- 2. If the 'page-title' element EXISTS ---
if (pageTitleElement) {
const pageTitleText = pageTitleElement.textContent.trim();
if (pageTitleText) {
// Construct the new title using the CAPTURED initial title as the base
const newTitle = pageTitleText + ' | ' + initialPageTitle;
// Only update the DOM if the title is actually different
if (document.title !== newTitle) {
document.title = newTitle;
console.log("AI Studio Title Script: Title updated to -> '" + newTitle + "'");
}
}
// --- 3. If the 'page-title' element does NOT exist ---
} else {
// Revert to the original title if it was changed
if (document.title !== initialPageTitle) {
document.title = initialPageTitle;
console.log("AI Studio Title Script: 'page-title' element not found. Reverting to initial title.");
}
}
};
// --- 4. MutationObserver Setup ---
// This observer will call our updateTitle function whenever the page structure or text changes.
const observer = new MutationObserver(updateTitle);
// Run the function once at the start.
updateTitle();
// Start observing the entire body for any changes.
console.log("AI Studio Title Script: Starting MutationObserver to watch for title changes.");
observer.observe(document.body, {
childList: true, // watches for elements being added or removed
subtree: true, // watches all descendants, not just direct children
characterData: true // watches for changes to text content
});
})();

