ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[Bug]The client is always blinking

Open LvShuaiChao opened this issue 2 years ago • 11 comments

Version

0.11

Bug description

https://user-images.githubusercontent.com/35528109/222628019-fc24e7bb-8ec3-4346-931e-412d6c6e8de2.mp4

OS

windows

Environment

No response

LvShuaiChao avatar Mar 03 '23 03:03 LvShuaiChao

Yeah I had the same here

NimuthuGanegoda avatar Mar 03 '23 04:03 NimuthuGanegoda

+1

ttimasdf avatar Mar 03 '23 06:03 ttimasdf

same issue

yolomoth avatar Mar 03 '23 06:03 yolomoth

same issue

xiaop1 avatar Mar 03 '23 06:03 xiaop1

same issue

zempty-zhaoxuan avatar Mar 03 '23 07:03 zempty-zhaoxuan

I also have the same problem

mqEpiphany avatar Mar 03 '23 08:03 mqEpiphany

me too

loveaeen avatar Mar 03 '23 09:03 loveaeen

openai modified the page so that part of the code does not work, I will fix it in the new version.

lencx avatar Mar 03 '23 11:03 lencx

Thanks for your respond

NimuthuGanegoda avatar Mar 03 '23 12:03 NimuthuGanegoda

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');

dimitri-vs avatar Mar 03 '23 13:03 dimitri-vs

There is a main.js file in the ~/.chatgpt folder, you can put the code above to workaround this issue for now.

image

horidream avatar Mar 03 '23 17:03 horidream

fix: v0.11.1

lencx avatar Mar 04 '23 08:03 lencx