This file contains 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 made this script because the ChatGPT Team plan does not allow you to export your data like you can with a Free or Plus account. | |
// The script can be used with any type of ChatGPT account (Free, Plus, or Team). | |
// Run the script in the console while you are logged into chatgpt.com via the browser. | |
// This code has been tested to work in Chromium-based browsers (Chrome, Chromium, Brave, etc.) as of September 2024. | |
// Function to download data as a JSON file | |
function downloadJSON(filename, jsonData) { | |
const jsonString = JSON.stringify(jsonData, null, 2) // Convert data to a formatted JSON string | |
const element = document.createElement('a') |