-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shortened Chrome instructions to not use recommended module export fo…
…r simplicity
- Loading branch information
Showing
28 changed files
with
88 additions
and
1,945 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,24 +129,18 @@ Since Google does not allow remote code, importing chatgpt.js locally is require | |
|
||
1. Save https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/chatgpt.js to a subdirectory (`lib` in this example) | ||
|
||
2. Add ES6 export statement to end of `lib/chatgpt.js` | ||
```js | ||
... | ||
export { chatgpt } | ||
``` | ||
|
||
3. In project's (V3) `manifest.json`, add `lib/chatgpt.js` as a web accessible resource | ||
2. In project's (V3) `manifest.json`, add `lib/chatgpt.js` as a web accessible resource | ||
```json | ||
"web_accessible_resources": [{ | ||
"matches": ["<all_urls>"], | ||
"resources": ["lib/chatgpt.js"] | ||
}], | ||
``` | ||
|
||
4. In scripts that need `chatgpt.js` (foreground/background alike), import it like so: | ||
3. In scripts that need `chatgpt.js` (foreground/background alike), import it like so: | ||
```js | ||
(async () => { | ||
const { chatgpt } = await import(chrome.runtime.getURL('lib/chatgpt.js')); | ||
await import(chrome.runtime.getURL('lib/chatgpt.js')); | ||
// Your code here... | ||
})(); | ||
``` | ||
|
@@ -253,51 +247,7 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3 | |
[Readme](https://docs.ddgpt.com/#readme) / | ||
[Discuss](https://github.ddgpt.com/discussions) | ||
|
||
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.googlegpt.io/images/icons/googlegpt/white/icon32.png?8652a6e"><img width=21 src="https://media.googlegpt.io/images/icons/googlegpt/black/icon32.png?8652a6e"></picture> [GoogleGPT](https://googlegpt.io) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://media.googlegpt.io/images/badges/awesome/badge.svg?699c63d" style="margin:0 0 -2px 5px"></a> | ||
|
||
> Adds AI answers to Google Search (powered by Google Gemma + GPT-4o!) | ||
<br>[Install](https://greasyfork.googlegpt.io) / | ||
[Readme](https://docs.googlegpt.io/#readme) / | ||
[Discuss](https://github.googlegpt.io/discussions) | ||
|
||
### <img width=23 src="https://media.chatgptjs.org/images/icons/platforms/thunderbird/icon32.png?313a9c5"> [ThunderAI](https://micz.it/thunderdbird-addon-thunderai/) <a href="https://addons.thunderbird.net/thunderbird/addon/thunderai/reviews" target="_blank" rel="noopener"><picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptjs.org/images/badges/5-star/blue-stars.png?0943672"><img width=92 alt="[Rated 5-stars]" src="https://media.chatgptjs.org/images/badges/5-star/yellow-stars-in-white-pill.png?0943672"></picture></a> | ||
|
||
> Use ChatGPT in Thunderbird to enhance you emails, even with a free account! | ||
<br>[Install](https://addons.thunderbird.net/thunderbird/addon/thunderai/) / | ||
[Readme](https://micz.it/thunderdbird-addon-thunderai/) / | ||
[Support](https://github.com/micz/ThunderAI/issues) | ||
|
||
<p><br> | ||
|
||
<a href="https://chatgptinfinity.com" target="_blank" rel="noopener"> | ||
<img width=555 src="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@0f48c4e/chrome/media/images/tiles/marquee-promo-tile-1400x560.png"> | ||
</a> | ||
|
||
<p><br> | ||
|
||
<a href="https://chatgptwidescreen.com" target="_blank" rel="noopener"> | ||
<img width=555 src="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@3ed0950/chrome/media/images/tiles/marquee-promo-tile-1400x560.png"> | ||
</a> | ||
|
||
<p><br> | ||
|
||
<p id="showcase-cta"> | ||
If you've made something w/ chatgpt.js you want to share, email <a href="mailto:[email protected]">[email protected]</a> or just open a <a href="https://github.com/KudoAI/chatgpt.js/pulls" target="_blank" rel="noopener">pull request</a>! | ||
</p> | ||
|
||
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7"> | ||
|
||
<div id="contributors"> | ||
|
||
## 🧠 Contributors | ||
|
||
</div> | ||
|
||
This library exists thanks to code, translations, issues & ideas from the following contributors: | ||
|
||
<div align="center"><br> | ||
|
||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/10906554?first-contrib=2023.03.15&h=47&w=47&mask=circle&maxage=7d "@adamlui")](https://github.com/adamlui) | ||
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.googlegpt.io/images/icons/googlegpt/white/icon32.03.15&h=47&w=47&mask=circle&maxage=7d "@adamlui")](https://github.com/adamlui) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/71683364?first-contrib=2023.03.16-get-functions&h=47&w=47&mask=circle&maxage=7d "@mefengl")](https://github.com/mefengl) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/131989355?first-contrib=2023.04.30-doc-translations&h=47&w=47&mask=circle&maxage=7d "@Zin6969")](https://github.com/Zin6969) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/30551844?first-contrib=2023.05.02-getlastresponse-bug-report&h=47&w=47&mask=circle&maxage=7d "@madruga8")](https://github.com/madruga8) | ||
|
@@ -316,52 +266,7 @@ This library exists thanks to code, translations, issues & ideas from the follow | |
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/4698976?first-contrib=2023.10.29-remove-outdated-mv2-preface-from-docs&h=47&w=47&mask=circle&maxage=7d "@abhinavm24")](https://github.com/abhinavm24) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/77867745?first-contrib=2023.11.4-getchatdetails-bug-report&h=47&w=47&mask=circle&maxage=7d "@deyvisml")](https://github.com/deyvisml) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/150537240?first-contrib=2023.11.15-regenerate-btn-changed-bug-email&h=47&w=47&mask=circle&maxage=7d "@philly88r")](https://github.com/philly88r) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/9730392?first-contrib=2023.12.18-get-response-from-dom-request&h=47&w=47&mask=circle&maxage=7d "@thomasgauthier")](https://github.com/thomasgauthier) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/42911524?first-contrib=2024.1.17-add-custom-gpt-support&h=47&w=47&mask=circle&maxage=7d "@pranav-bhatt")](https://github.com/pranav-bhatt) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/1441127?first-contrib=2024.1.20-chat-id-structure-updated-alert&h=47&w=47&mask=circle&maxage=7d "@gadelkareem")](https://github.com/gadelkareem) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/13976824?first-contrib=2024.01.31-aria-labels-unreliable-bug-report&h=47&w=47&mask=circle&maxage=7d "@hopana")](https://github.com/hopana) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/26219737?first-contrib=2024.2.2-data-key-message-bug-fix&h=47&w=47&mask=circle&maxage=7d "@emtry")](https://github.com/emtry) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/44357327?first-contrib=2024.2.14-msg-fetching-for-localization-fails-report&h=47&w=47&mask=circle&maxage=7d "@thedayofcondor")](https://github.com/thedayofcondor) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/111466842?first-contrib=2024.2.15-add-en-gb-locale&h=47&w=47&mask=circle&maxage=7d "@Luwa-Tech")](https://github.com/Luwa-Tech) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/61795?first-contrib=2024.5.9-update-css-selector-for-getregeneratebutton&h=47&w=47&mask=circle&maxage=7d "@micz")](https://github.com/micz) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/17583722?first-contrib=2024.5.17-chrome-starter-manifest-matches-outdated-alert&h=47&w=47&mask=circle&maxage=7d "@imranaalam")](https://github.com/imranaalam) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/50076933?first-contrib=2024.6.22-code.isidle-request&h=47&w=47&mask=circle&maxage=7d "@grayfallstown")](https://github.com/grayfallstown) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/155944537?first-contrib=2024.8.27-sidebar-update-testing&h=47&w=47&mask=circle&maxage=7d "@svan-b")](https://github.com/svan-b) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/74002352?first-contrib=2024.8.28-sidebar-update-testing&h=47&w=47&mask=circle&maxage=7d "@Jeff-Zzh")](https://github.com/Jeff-Zzh) | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/in/29110&h=47&w=47&mask=circle&maxage=7d "Dependabot")](https://github.com/dependabot) | ||
<a href="https://chatgpt.com"><picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://images.weserv.nl/?url=https://cdn.jsdelivr.net/gh/KudoAI/chatgpt.js@main/media/images/icons/platforms/chatgpt/black-on-white/icon189.png?h=46&w=46&mask=circle&maxage=7d"><img src="https://images.weserv.nl/?url=https://cdn.jsdelivr.net/gh/KudoAI/chatgpt.js@main/media/images/icons/platforms/chatgpt/white-on-black/icon189.png?h=46&w=46&mask=circle&maxage=7d" title="ChatGPT"></picture></a> | ||
<a href="https://poe.com"><picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://images.weserv.nl/?url=https://cdn.jsdelivr.net/gh/KudoAI/chatgpt.js@main/media/images/icons/platforms/poe/w-purple-blue-stripes/black-on-white/icon175.png?h=46&w=46&mask=circle&maxage=7d"><img src="https://images.weserv.nl/?url=https://cdn.jsdelivr.net/gh/KudoAI/chatgpt.js@main/media/images/icons/platforms/poe/w-purple-blue-stripes/white-on-black/icon175.png?h=46&w=46&mask=circle&maxage=7d" title="Poe"></picture></a> | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/31427850?h=51&w=51&mask=circle&maxage=7d "@ImgBotApp")](https://github.com/ImgBotApp) | ||
|
||
</div><br> | ||
|
||
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7"> | ||
|
||
<div id="partners"> | ||
|
||
## 🤝 Partners | ||
|
||
</div> | ||
|
||
**chatgpt.js** is funded in part by: | ||
|
||
<div id="partners-collage" align="center"> | ||
|
||
<picture> | ||
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptjs.org/images/logos/partners/collage/white.png?3109608"> | ||
<img width=888 src="https://media.chatgptjs.org/images/logos/partners/collage/black.png?3109608"> | ||
</picture> | ||
|
||
</div> | ||
|
||
<br> | ||
|
||
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7"> | ||
|
||
<div align="center"> | ||
|
||
**[Releases](https://github.com/KudoAI/chatgpt.js/releases)** / | ||
[Userguide](https://github.com/KudoAI/chatgpt.js/blob/v3.3.2/docs/USERGUIDE.md) / | ||
[![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/9730392?first-contrib=2023.12.3.2/docs/USERGUIDE.md) / | ||
[Discuss](https://github.com/KudoAI/chatgpt.js/discussions) / | ||
<a href="#--------------------------------------------------------------------------------english---------简体中文---------繁體中文---------日本---------한국인---------हिंदी---------नेपाली---------deutsch---------español---------français---------italiano---------nederlands---------português---------việt----">Back to top ↑</a> | ||
|
||
|
Oops, something went wrong.