ChatGPT
ChatGPT copied to clipboard
[Bug] The export button will dance 😭 (有图有真相)
Version
latest
Bug description
OS
macOS 13.2.1 (22D68)
Environment
No response
me too
我也是
me too
俺也一样
Edition = Windows 11 Home Single Language
Version = 22H2
Installed on = 16 Feb 2023
OS build = 22621.1265
Experience = Windows Feature Experience Pack 1000.22638.1000.0
me too os : windows 11
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');
EDIT: Updated the code above to make the "fix" persist between change.
the same bug os:win10
控制台输入[dimitri-vs]的代码,是有效的,就是每次打开都要输入一下,麻烦一点,希望作者尽快fix
same on Windows 10
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');
EDIT: Updated the code above to make the "fix" persist between change.
This worked great as a stop-gap so I could continue using the app while we wait for a fix. Thank you!
ref: #541
https://github.com/lencx/ChatGPT/releases/tag/v0.11.1
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');
EDIT: Updated the code above to make the "fix" persist between change.
This worked great as a stop-gap so I could continue using the app while we wait for a fix. Thank you!
thanks @MicrowaveJak