Skip to content

Instantly share code, notes, and snippets.

@JohnnyWalkerDigital
Last active December 27, 2025 18:00
Show Gist options
  • Select an option

  • Save JohnnyWalkerDigital/b6bf7237fba5f8c92d13d3c90c3f6ca7 to your computer and use it in GitHub Desktop.

Select an option

Save JohnnyWalkerDigital/b6bf7237fba5f8c92d13d3c90c3f6ca7 to your computer and use it in GitHub Desktop.
GameFAQs - Text File Extractor
// Copy and paste the following into your browser console - author: proboardslol
(function() {
const file = new Blob([$(".faqtext").text()], {type: "application/text"});
const a = document.createElement("a"),
url = URL.createObjectURL(file);
a.href = url;
a.download = window.document.title + ".txt";
document.body.appendChild(a);
a.click();
})()
@JohnnyWalkerDigital
Copy link
Author

What it does:

  1. Creates a file from the element on the page with the class .faqtext
  2. Build an empty <a href=''></a> element
  3. Create a URL to the file
  4. Put the URL in the a element
  5. Click the a element

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment