Created
July 14, 2024 09:15
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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