Skip to content

Instantly share code, notes, and snippets.

@amaider
Created July 14, 2024 09:15
Show Gist options
  • Save amaider/efd98a4ec9af8d24a3cba4440151d649 to your computer and use it in GitHub Desktop.
Save amaider/efd98a4ec9af8d24a3cba4440151d649 to your computer and use it in GitHub Desktop.
ChatGPT Bookmark to open chatgpt.com and expands the chatboxes on document.click and every 10 secs
javascript: (
function () {
if (!window.location.href.includes('https://chatgpt.com/')) {
window.open('https://chatgpt.com/');
}
document.onclick = expandChatbox;
setInterval(expandChatbox, 10000);
function expandChatbox() {
let arr = document.getElementsByClassName('text-base');
for (let e of arr) {
e.setAttribute('style', 'max-width: 100% !important; padding-left: 20px !important; padding-right: 20px !important')
}
}
}
)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment