Last active
December 14, 2022 02:47
-
-
Save Largo/940fe0cea7abe23b9f0342857e3d6fd8 to your computer and use it in GitHub Desktop.
Workaround for Network Error in ChatGPT
This file contains hidden or 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
I asked chatgpt for a workaround and it gave me this. you'll have to paste it into the developer console. (usually never ever do this) | |
you will then see the results in the developer console (the ones that manage to come in) | |
// Select the node that will be observed for mutations | |
const targetNode = document.body; | |
// Options for the observer (which mutations to observe) | |
const config = { childList: true, subtree: true }; | |
// Callback function to execute when mutations are observed | |
const callback = function(mutationsList) { | |
for (let mutation of mutationsList) { | |
console.log(mutation.target.innerText); | |
} | |
}; | |
// Create an observer instance linked to the callback function | |
const observer = new MutationObserver(callback); | |
// Start observing the target node for configured mutations | |
observer.observe(targetNode, config); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment