Skip to content

A chrome extension that allows you to save history of your ChatGPT theads, share them, or Use them as macros

Notifications You must be signed in to change notification settings

fire17/auto-chatgpt-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A chrome extension (+Server) that allows you to save history of your ChatGPT theads, share them, or Use them as macros The server is hosted on Vercel and allows new users to register and login using OAuth, with their google and github accounts

:This repo was generated using chatGPT and is actively maintained by it:

:The current dir of the project: # all combined, show me the project folder structure tree with all the files in it, for both the server and the extension client

server/
  ├── requirements.txt
  └── server.py
  └── templates/
      └── thread.html
extension/
  ├── background.js
  ├── content.js
  ├── icon.png
  ├── manifest.json
  └── popup/
      ├── popup.html
      └── popup.js

:The following prompts are used: """ There is a website that gives access to an amazing ai chatbot via a chat interface. It's really good but its UX lacks a couple of things, primarily, each session with the ai is a "Thread" with a certian life time. Until the give full user history management I would like to make a free opensource solution to make somethings better. Write me a python server and a chrome extension that will help me do that. The extension will allow me to export the chat contents, save them locally as an .md file, or sync them to my user history (on the server). The server should store, and sync users data with the client of the extension. Each "Thread" gets an id. The server should have a route that for a given thread id (in the url) it will return a static html page that will show a representation of the chat. This will be used by the extension that adds a Share button to the current thread or another one from the history. This share button will open a new tab, with the server domain url, followed by /share/{thread_id}. When a user shares a thread, he can set if its publicly available, or only private to him when he logs in . The server should manage all the necessary data. Use Redis for the db. The extension also has the ability to turn one or several user prompts into macros. The extension should This is a platform and should allow new users to register. include the latest OAuth, google and github easy signup and login. """

""" The following is is an copy of the html of the one short conversation between me and the ai, in it i wrote two prompts, the first being "Hi there", the ai responded with "Hello! How can I help you today?". Then I sent the ai "I'm trying to get your formatting" and the ai responded "I'm sorry, but I'm not sure what you mean by "formatting." Could you provide some more context or clarify your question?".
Please take into consideration this formatting, the chrome extension should have permissions to the site chat.openai.com/* and be able to recognize, identify and extract each speaker's messages. Change the chrome extension to do this correctly. Here is the html of a conversation:

<title>New Chat</title><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-086fa7e25c92f264.js" defer=""></script><script src="/_next/static/chunks/framework-7a789ee31d2a7534.js" defer=""></script><script src="/_next/static/chunks/main-149b337e061b4d04.js" defer=""></script><script src="/_next/static/chunks/pages/_app-013c8db8b575a037.js" defer=""></script><script src="/_next/static/chunks/dde4e452-3591ea0c0fd388f8.js" defer=""></script><script src="/_next/static/chunks/2802bd5f-a31531b9d6706608.js" defer=""></script><script src="/_next/static/chunks/68a27ff6-21204d8ed6fd05d7.js" defer=""></script><script src="/_next/static/chunks/424-7f7835d330adbaab.js" defer=""></script><script src="/_next/static/chunks/456-fb63acd10a7bd622.js" defer=""></script><script src="/_next/static/chunks/361-032f8620609ea5a4.js" defer=""></script><script src="/_next/static/chunks/762-8aea3fcf561f76bb.js" defer=""></script><script src="/_next/static/chunks/659-30d1b01f86993ec6.js" defer=""></script><script src="/_next/static/chunks/711-afad5219ff586aea.js" defer=""></script><script src="/_next/static/chunks/650-8ad13284b7eecf5b.js" defer=""></script><script src="/_next/static/chunks/114-f5449310e425fcd5.js" defer=""></script><script src="/_next/static/chunks/pages/chat/%5B%5B...chatId%5D%5D-1fbb0e91be942d1a.js" defer=""></script><script src="/_next/static/dJLQ8GCLXOkuJcE5WNSfD/_buildManifest.js" defer=""></script><script src="/_next/static/dJLQ8GCLXOkuJcE5WNSfD/_ssgManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.5"></style><style data-emotion="react-scroll-to-bottom--css-bwvql" data-s=""></style>
<script>!function(){try{var d=document.documentElement,c=d.classList;c.remove('light','dark');var e=localStorage.getItem('theme');if('system'===e||(!e&&true)){var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);if(m.media!==t||m.matches){d.style.colorScheme = 'dark';c.add('dark')}else{d.style.colorScheme = 'light';c.add('light')}}else if(e){c.add(e|| '')}if(e==='light'||e==='dark')d.style.colorScheme=e}catch(e){}}()</script>
Open sidebar

New Chat

Tami Bar
Hi there

Hello! How can I help you today?

Tami Bar
I'm trying to get your formatting

I'm sorry, but I'm not sure what you mean by "formatting." Could you provide some more context or clarify your question?

ShareRegenerate response
<textarea tabindex="0" data-id="request-:r0:-1" rows="1" placeholder="" class="m-0 w-full resize-none border-0 bg-transparent p-0 pr-7 focus:ring-0 focus-visible:ring-0 dark:bg-transparent" style="max-height: 200px; height: 24px; overflow-y: hidden;"></textarea>
ChatGPT Dec 15 Version. Free Research Preview. Our goal is to make AI systems more natural and safe to interact with. Your feedback will help us improve.
<script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":{"id":"user-bFE3SMbbAoBgpqCnEOyRtkPi","name":"Tami Bar","email":"fire17@gmail.com","image":"https://lh3.googleusercontent.com/a/AEdFTp7B7f154drwaM4SXJBz8W1zZaFhqC8cOr20nONn1x4=s96-c","picture":"https://lh3.googleusercontent.com/a/AEdFTp7B7f154drwaM4SXJBz8W1zZaFhqC8cOr20nONn1x4=s96-c","groups":["labs"],"features":[]},"accessToken":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik1UaEVOVUpHTkVNMVFURTRNMEZCTWpkQ05UZzVNRFUxUlRVd1FVSkRNRU13UmtGRVFrRXpSZyJ9.eyJodHRwczovL2FwaS5vcGVuYWkuY29tL3Byb2ZpbGUiOnsiZW1haWwiOiJmaXJlMTdAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImdlb2lwX2NvdW50cnkiOiJJTCJ9LCJodHRwczovL2FwaS5vcGVuYWkuY29tL2F1dGgiOnsidXNlcl9pZCI6InVzZXItYkZFM1NNYmJBb0JncHFDbkVPeVJ0a1BpIn0sImlzcyI6Imh0dHBzOi8vYXV0aDAub3BlbmFpLmNvbS8iLCJzdWIiOiJnb29nbGUtb2F1dGgyfDExNjUxMjkxMjY1ODA1MDc5Nzk5MCIsImF1ZCI6WyJodHRwczovL2FwaS5vcGVuYWkuY29tL3YxIiwiaHR0cHM6Ly9vcGVuYWkuYXV0aDAuY29tL3VzZXJpbmZvIl0sImlhdCI6MTY3MTM2MzAwNywiZXhwIjoxNjcxOTY3ODA3LCJhenAiOiJUZEpJY2JlMTZXb1RIdE45NW55eXdoNUU0eU9vNkl0RyIsInNjb3BlIjoib3BlbmlkIHByb2ZpbGUgZW1haWwgbW9kZWwucmVhZCBtb2RlbC5yZXF1ZXN0IG9yZ2FuaXphdGlvbi5yZWFkIG9mZmxpbmVfYWNjZXNzIn0.BAlhiU2xOlVUnxiNzftp-92VsrURiThRxVrZJHoM90WyQrkL7TnNPXRe4paJNxPWHFHIgGGnxQ68y1MP5IYnrh7wAfTWZ1hE8I3Nvss6V23Iv6tArEfQ6vTchyjrrgYMrNDBBdWkkD7mUmUkTrzDYOaaYWi3P1LCl8EdDPVUtwZ1fkc2uR6fxQ7K8TiUUY3YmoAWyclrTkolBaQyqGmho26phZQ1a7SRH2dPco4yWE3IQdNp-DdeFfhdYMm7OEZnIY7_QPVHmVCQIEcTvFnjhQIoIqH0IWCiWKp71c60yOMfHS0QRWqKmhwlytoJ_2ZAJypSZey_uInVDbvrtVQbng","paletteFeatures":[],"features":[],"pages":[{"id":"chat","name":"ChatGPT","href":"/chat","theme":{"icon":"globe","color":"#10A37F"},"description":"Chat with GPT"}],"serviceStatus":{},"initialData":{"thread":{"root":{"id":"root","children":[],"parentId":"","type":"root","message":{"id":"c0510c47-b1c0-4dc8-aab4-07827d639958","role":"unknown","content":{"content_type":"text","parts":[]}}}},"currentLeafId":"root","threadId":null,"title":"New Chat"}},"__N_SSP":true},"page":"/chat/[[...chatId]]","query":{},"buildId":"dJLQ8GCLXOkuJcE5WNSfD","isFallback":false,"gssp":true,"scriptLoader":[]}</script><script>(function(){var js = "window['__CF$cv$params']={r:'77bbe0a029099159',m:'jiSrCqf6fo75HxcgOoqTEg8N26ru0tJ1lyBs8uFByEI-1671408230-0-AXyAks4OyghpCw/UK0+Zs0+5smGwFrmmGiFuBZ2TM4neiwiGT4uxsla75t3mf0UvFUqHRIj7OQIEcpJ4KWZughTb15cVB9jmC3ObhVC6ZCuV5c/iGNRqtDKbipmVLYV30w==',s:[0xffc7c6b738,0xce274737b7],u:'/cdn-cgi/challenge-platform/h/g'};var now=Date.now()/1000,offset=14400,ts=''+(Math.floor(now)-Math.floor(now%offset)),_cpo=document.createElement('script');_cpo.nonce='',_cpo.src='/cdn-cgi/challenge-platform/h/g/scripts/alpha/invisible.js?ts='+ts,document.getElementsByTagName('head')[0].appendChild(_cpo);";var _0xh = document.createElement('iframe');_0xh.height = 1;_0xh.width = 1;_0xh.style.position = 'absolute';_0xh.style.top = 0;_0xh.style.left = 0;_0xh.style.border = 'none';_0xh.style.visibility = 'hidden';document.body.appendChild(_0xh);function handler() {var _0xi = _0xh.contentDocument || _0xh.contentWindow.document;if (_0xi) {var _0xj = _0xi.createElement('script');_0xj.nonce = '';_0xj.innerHTML = js;_0xi.getElementsByTagName('head')[0].appendChild(_0xj);}}if (document.readyState !== 'loading') {handler();} else if (window.addEventListener) {document.addEventListener('DOMContentLoaded', handler);} else {var prev = document.onreadystatechange || function () {};document.onreadystatechange = function (e) {prev(e);if (document.readyState !== 'loading') {document.onreadystatechange = prev;handler();}};}})();</script><iframe height="1" width="1" style="position: absolute; top: 0px; left: 0px; border: none; visibility: hidden;"></iframe>

<script type="text/javascript" src="chrome-extension://mcbhhiafbiafmggccdcpgfldcaeipopg/inject.js"></script>
"""

About

A chrome extension that allows you to save history of your ChatGPT theads, share them, or Use them as macros

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published