Git Product home page Git Product logo

copygpt's Introduction

copyGPT

This is a small JavaScript Chrome bookmarklet for copying ChatGPT transcripts to your clipboard with some light Markdown formatting. It works on both desktop and mobile Chrome.

ChatGPT is an incredible demonstration of a large language model. But, as of Dec 11, 2022, it makes copying transcripts really hard, especially on mobile. This simple bookmarklet provides a workaround until ChatGPT introduces a "copy transcript" feature.

I designed this against Google Chrome, though it may work with other browsers.

This is similar to jcubic/chat-gpt, which lets you download the transcript as HTML. The main difference is that copyGPT converts the transcript to Markdown and copies it to your clipboard.

Features

  • Simple, transparent JS bookmarklet for copying ChatGPT transcripts as Markdown.
    • Handles code blocks.
  • Support for both desktop and mobile Chrome.

Known Issues

  • Fragile: This relies on the current DOM structure of ChatGPT. Changes to the structure may break this bookmarklet. Updates will be reflected but will require manual reinstallation (i.e., updating the URL field of the bookmark with the new JS).

Installation

  • Copy the JavaScript from copyGPT-markdown.js.
  • On a computer:
  • On mobile:
    • If you have Chrome Sync enabled:
      • The bookmark created on your computer will sync to your mobile device if you've configured Chrome Sync.
    • Otherwise: follow the relevant Android, iPhone, or iPad instructions to:
      • Visit any site on mobile and create a new bookmark.
      • Edit the bookmark to change the name to copyGPT and paste the JavaScript into the URL field.
      • (As far as I can tell, manually creating a bookmark isn't possible on mobile Chrome. This is a workaround.)

Usage

Use ChatGPT in the usual way. When you have a transcript you'd like to copy on desktop or mobile Chrome:

  • Stay on the ChatGPT tab.
  • Enter copyGPT in the Chrome address bar.
  • Select the copyGPT suggestion. This executes the JavaScript against the ChatGPT page.
  • Done! The transcript is copied to your clipboard. Paste it in your favourite note-taking tool.

Demo

This demonstrates both installation and usage:

copyGPT.demo.mov

Contributing

Pull requests and issues welcome!

Note: as far as I can tell, mobile Chrome has a limit of 5000 characters on the URL field. To maintain compatibility with mobile Chrome, change requests which cause the bookmarklet to exceed this limit will be rejected.

copygpt's People

Contributors

fraser avatar

Stargazers

Oskar Austegard avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.