Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]The client is always blinking #541

Closed
LvShuaiChao opened this issue Mar 3, 2023 · 12 comments
Closed

[Bug]The client is always blinking #541

LvShuaiChao opened this issue Mar 3, 2023 · 12 comments
Labels
bug Something isn't working

Comments

@LvShuaiChao
Copy link

Version

0.11

Bug description

bandicam.2023-03-03.11-56-05-152.mp4

OS

windows

Environment

No response

@LvShuaiChao LvShuaiChao added the bug Something isn't working label Mar 3, 2023
@NimuthuGanegoda
Copy link

Yeah I had the same here

@ttimasdf
Copy link

ttimasdf commented Mar 3, 2023

+1

@ttimasdf ttimasdf mentioned this issue Mar 3, 2023
@yolomoth
Copy link

yolomoth commented Mar 3, 2023

same issue

2 similar comments
@xiaop1
Copy link

xiaop1 commented Mar 3, 2023

same issue

@zempty-zhaoxuan
Copy link

same issue

@mqEpiphany
Copy link

I also have the same problem

@loveaeen
Copy link

loveaeen commented Mar 3, 2023

me too

@lencx
Copy link
Owner

lencx commented Mar 3, 2023

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

@NimuthuGanegoda
Copy link

Thanks for your respond

@dimitri-vs
Copy link

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

@horidream
Copy link

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

image

@lencx
Copy link
Owner

lencx commented Mar 4, 2023

fix: v0.11.1

@lencx lencx closed this as completed Mar 4, 2023
SsomsakTH pushed a commit to SsomsakTH/ChatGPT that referenced this issue Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests