Useful Webpage Styling Modifier

  • Extend the width of chat window for gemini.google.com:
1
2
3
4
5
6
7
8
const conversationContainers = document.querySelectorAll(".conversation-container");

if (conversationContainers.length > 0) {
const lastContainer = conversationContainers[conversationContainers.length - 1];
lastContainer.style.setProperty("max-width", "100%", "important");
} else {
console.warn("No elements with class 'conversation-container' found.");
}
  • chatgpt
    1
    2
    3
    4
    document.querySelectorAll('div[class*="thread-content-max-width"]').forEach(el => {
    el.style.marginInline = '0';
    el.style.paddingInline = '0';
    });