ChatGPT
ChatGPT copied to clipboard
[Bug]The client is always blinking
Version
0.11
Bug description
https://user-images.githubusercontent.com/35528109/222628019-fc24e7bb-8ec3-4346-931e-412d6c6e8de2.mp4
OS
windows
Environment
No response
Yeah I had the same here
+1
same issue
same issue
same issue
I also have the same problem
me too
openai modified the page so that part of the code does not work, I will fix it in the new version.
Thanks for your respond
In the meantime if you just want to hide the other three buttons to stop the flashing open up your console and run the code below.
Keep in mind his is a super hacky way to solve this problem, but it will do until a proper fix is implemented.
// Select the buttons that you want to hide
const buttons = document.querySelectorAll('#download-markdown-button, #download-png-button, #download-pdf-button');
// Create a new MutationObserver
const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
if (mutation.addedNodes) {
mutation.addedNodes.forEach(node => {
if (node.nodeType === Node.ELEMENT_NODE && node.matches('#download-markdown-button, #download-png-button, #download-pdf-button')) {
node.style.display = 'none';
}
});
}
});
});
// Start observing the whole document for changes
observer.observe(document, { childList: true, subtree: true });
// Hide the buttons that are already in the document
buttons.forEach(button => button.style.display = 'none');
There is a main.js file in the ~/.chatgpt folder, you can put the code above to workaround this issue for now.
fix: v0.11.1