Skip to content

Instantly share code, notes, and snippets.

@shinshin86
Created December 9, 2022 12:54
Show Gist options
  • Save shinshin86/c48155f0adfdfd8e935b2615bc8e66b2 to your computer and use it in GitHub Desktop.
Save shinshin86/c48155f0adfdfd8e935b2615bc8e66b2 to your computer and use it in GitHub Desktop.
Script for displaying the conversing with ChatGPT in the console log in QA format.
// USAGE: After conversing with ChatGPT, run this code on the Chrome developer console.
const textList = []
document.querySelectorAll('.text-base').forEach((t, i) => {
textList.push(`${i % 2 === 0 ? "Q:" : "A:"} ${t.textContent}`)
})
console.log(textList.join('\n'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment