Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsbrex/chatgpt-cookies
Chrome Extension to easily copy or export your ChatGPT cookies + user-agent to clipboard with one click.
https://github.com/itsbrex/chatgpt-cookies
chatgpt chatgpt-browser-extension chrome-extension
Last synced: 9 days ago
JSON representation
Chrome Extension to easily copy or export your ChatGPT cookies + user-agent to clipboard with one click.
- Host: GitHub
- URL: https://github.com/itsbrex/chatgpt-cookies
- Owner: itsbrex
- License: mit
- Created: 2022-12-11T02:05:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-10T13:51:03.000Z (12 months ago)
- Last Synced: 2024-10-28T16:13:26.809Z (23 days ago)
- Topics: chatgpt, chatgpt-browser-extension, chrome-extension
- Language: JavaScript
- Homepage: https://chrome.google.com/webstore/detail/chatgpt-cookies/nnkcnhbioochcaoeofflcljhhpceoknl
- Size: 173 MB
- Stars: 75
- Watchers: 3
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ChatGPT Cookies - Chrome Extension
[![GitHub stars](https://img.shields.io/github/stars/itsbrex/ChatGPT-Cookies?style=for-the-badge)]() [![GitHub forks](https://img.shields.io/github/forks/itsbrex/ChatGPT-Cookies?style=for-the-badge)]() [![GitHub issues](https://img.shields.io/github/issues/itsbrex/ChatGPT-Cookies?style=for-the-badge)]() [![GitHub license](https://img.shields.io/github/license/itsbrex/ChatGPT-Cookies?style=for-the-badge)]()
This Chrome Extension allows you to quickly and easily copy ChatGPT cookie values and user-agent strings to your clipboard, or export a single `.env` file with everything.
![ChatGPT-Cookies](https://socialify.git.ci/itsbrex/ChatGPT-Cookies/image?description=1&descriptionEditable=CF_CLEARANCE%0A-%0ASESSION_TOKEN%0A-%0AUSER_%20AGENT&font=Source%20Code%20Pro&logo=https%3A%2F%2Fgithub.com%2Fitsbrex%2FCopy-ChatGPT-Session-Token%2Fblob%2Fmain%2Ficons%2Ficon256x256.png%3Fraw%3Dtrue&name=1&owner=1&pattern=Solid&theme=Dark)
## BRIAN ROACH
CTO - [@Starchild.AI](https://github.com/Starchild-Music)![GitHub followers](https://img.shields.io/github/followers/itsbrex?style=social)
## Features
- 📋️ Copy individual or all values to clipboard with a single click!
- 📁 Export all values as an `.env-all.txt` file.Currently supports the following values:
- `cf_clearance`
- `__Secure-next-auth.session-token`
- `user-agent`## Demo
![chatgpt-cookies-v2-demo](chatgpt-cookies-v2-demo.gif)
## Example output
```
CF_CLEARANCE:
aDb4vZuUfhisisjsbfytfjdbndD1xktq_lcwC9ceIAo-1671161322-0-1-7662cbc0.801c6f70.12d6215e-160SESSION_TOKEN:
eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..rXK8br7nrr9e37Kr.kqTJumUk-buzxURSAHXhDcCO-YiFhEkGyHqVcvY8Uvl16iOwHO47IFCvJPoAqghb66uXGPRTbTBn9fWSH0JFktYjCO1HuQDlHPY_d_6xSpNg3Jy_mHZfr5_YQ5pyV8T3DO2TpZfzDYjSgb4be8yZm7GW7AfT3OOOus5E27p2ZxNUUTgJUmXjUZu69RNXpm4NalcQMWARTKlf0feialDMSYLWyQh6QhGZEzdpGsT5qe4Qdw07ckpMiRM8wLHLljmUpqRXas6AKNrYhdRKnSm_GrHGGCSeeyMkqZ8k0PpMURg5SOcGvblqQBCFx8edEKfAvn90l33_liIjihUorle9fMW71sYicyrYUSfz-jAzhtBTdNZRPK1xoOsrFNSDYKmLQ1qBitZxdC7QUwBOQGE42j4pUf_fdpmvxydWDhDNqbor1svo-ws-EvnHS0dfS8geUjcKzX3VgsbTgRYVLo6kbyzQnGIbSnLCvUQDsDVeMmW6BMn5sb1QZoDeZQ4VKQGVwakEcnXDp1M1SGd1rxv2MAc1KtBN292tDJOCHOmIaDImB8Z8JtawHqcySLcViBsddddfsscafsdcjsndbcksjnvlmasdkjbskjcnalscoadbuvcaugscvuahccdbchbchsdjhcdcbhdscbsjePN0oLOfQgftbr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wwGIlgbOgRIUYFH2epcMylMbYF8pO5NpOYrpSxpoU7Ed3cQTAOrnhwb1aEUlMcsYpVnRbas2NYDXwLhUt066ba0DPu0ZdZ14HpdqJ1FmbYbv-PnI-VwgfHI1vNZDQ7p1xneaxpBuQMs8EhK5wsjjx3w-6Zwvf6HkPBubT9f4hInopzf0FXSc36QWPnRiUcl9xBRhAiqTBRgwevUv0WFkXuW-PVLYicq4Ja93ZVtEXFVRXP1tpH0oTwvlAL33z2ymkJze-GNY-Gqy21147bBo6SwW64dsBbfwgshF_Dd5yFMXTLI9-2YUdkjvJjcM8oJGXlOsJ_-a53WPji09AWrQUaqAhpPwN6hW2gAICTc5YlNvNw8MZrap4Byg9z1pJaI5b0CkeQRlwKRBfr6Cey13PaxmNq2QRJm7XVILUyzjWA.K3ezZa58putln39tQLHZowUSER_AGENT:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
```> **Note:** The `CF_CLEARANCE` value is only valid for 2 hours. This extension helps you copy that value again quickly. Exploring options for a fix to address this in a future release.
## Install
### Chrome Web Store (recommended)
1. Install 👉️ [ChatGPT Cookies - Chrome Web Store](https://chrome.google.com/webstore/detail/copy-chatgpt-session-toke/nnkcnhbioochcaoeofflcljhhpceoknl)
2. Click on the extension icon in the Chrome toolbar to automatically navigate to the ChatGPT website 👉️ https://chat.openai.com/chat
3. Select one of the options to automatically copy the `SESSION_TOKEN`, `USER_AGENT`, and `CF_CLEARANCE` or all values at once to your clipboard, or download a single `.env-all` with all of them.
4. Paste the values wherever they are needed in your project, such as in the `.env` file.### Install Locally (latest features)
1. Download the code on GitHub.
2. Unzip the downloaded file.
3. In the Chrome browser, open the Extensions page (chrome://extensions/).
4. Turn on Developer mode by clicking the toggle switch in the top right corner of the page.
5. Click the `Load unpacked` button and select the directory where you unzipped the extension files.
6. The extension should now be installed and ready to use.## Bugs / Feature Requests
- For bug reports or feature requests, please [open an issue](https://github.com/itsbrex/ChatGPT-Cookies/issues).
- To view roadmap and current progress, please see the [github projects page](https://github.com/users/itsbrex/projects/4/views/1)## Extension Permissions
- `"host_permissions"` property grants the extension access to the following:
- `https://*.openai.com/*:` allows the extension to access pages within the openai.com domain **_only_**.
- `"permissions"` property grants the extension access to the following within the scope above:
- `activeTab:` allows the extension to access information on the current active tab.
- `cookies:` allows the extension to read and write cookies.
- `clipboardWrite:` allows the extension to write to the clipboard.
> More info here: [Chrome Extensions Declare permissions](https://developer.chrome.com/docs/extensions/mv3/declare_permissions/#host-permissions)
## Icon
The extension icon was created using DALL-E-2.## License
This extension is licensed under the MIT License. See the [LICENSE](https://github.com/itsbrex/Copy-ChatGPT-Session-Token/blob/master/LICENSE) file for more information.
## Acknowledgements
- Thanks OpenAI for the amazing [ChatGPT](https://openai.com/blog/chatgpt/) project
- Repo social share image made with [GitHub Socialify](https://socialify.git.ci/)
- Extension icon made with [DALL-E-2](https://openai.com/dall-e-2/)
- Chrome Web Store assets [Figma template](https://www.figma.com/community/file/1088380138639295338) from [Miki Ishiima](https://www.figma.com/@mikiishijima)