@@ -129,24 +129,18 @@ Since Google does not allow remote code, importing chatgpt.js locally is require
129129
1301301 . Save https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/chatgpt.js to a subdirectory (` lib ` in this example)
131131
132- 2 . Add ES6 export statement to end of ` lib/chatgpt.js `
133- ``` js
134- ...
135- export { chatgpt }
136- ```
137-
138- 3 . In project's (V3) ` manifest.json ` , add ` lib/chatgpt.js ` as a web accessible resource
132+ 2 . In project's (V3) ` manifest.json ` , add ` lib/chatgpt.js ` as a web accessible resource
139133``` json
140134 "web_accessible_resources" : [{
141135 "matches" : [" <all_urls>" ],
142136 "resources" : [" lib/chatgpt.js" ]
143137 }],
144138```
145139
146- 4 . In scripts that need ` chatgpt.js ` (foreground/background alike), import it like so:
140+ 3 . In scripts that need ` chatgpt.js ` (foreground/background alike), import it like so:
147141``` js
148142(async () => {
149- const { chatgpt } = await import (chrome .runtime .getURL (' lib/chatgpt.js' ));
143+ await import (chrome .runtime .getURL (' lib/chatgpt.js' ));
150144 // Your code here...
151145})();
152146```
@@ -253,51 +247,7 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
253247[ Readme] ( https://docs.ddgpt.com/#readme ) /
254248[ Discuss] ( https://github.ddgpt.com/discussions )
255249
256- ### <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 >
257-
258- > Adds AI answers to Google Search (powered by Google Gemma + GPT-4o!)
259- <br> [ Install] ( https://greasyfork.googlegpt.io ) /
260- [ Readme] ( https://docs.googlegpt.io/#readme ) /
261- [ Discuss] ( https://github.googlegpt.io/discussions )
262-
263- ### <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 >
264-
265- > Use ChatGPT in Thunderbird to enhance you emails, even with a free account!
266- <br> [ Install] ( https://addons.thunderbird.net/thunderbird/addon/thunderai/ ) /
267- [ Readme] ( https://micz.it/thunderdbird-addon-thunderai/ ) /
268- [ Support] ( https://github.com/micz/ThunderAI/issues )
269-
270- <p ><br >
271-
272- <a href =" https://chatgptinfinity.com " target =" _blank " rel =" noopener " >
273- <img width=555 src="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@0f48c4e/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
274- </a >
275-
276- <p ><br >
277-
278- <a href =" https://chatgptwidescreen.com " target =" _blank " rel =" noopener " >
279- <img width=555 src="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@3ed0950/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
280- </a >
281-
282- <p ><br >
283-
284- <p id =" showcase-cta " >
285- 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 >!
286- </p >
287-
288- <img height =8px width =" 100% " src =" https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7 " >
289-
290- <div id =" contributors " >
291-
292- ## 🧠 Contributors
293-
294- </div >
295-
296- This library exists thanks to code, translations, issues & ideas from the following contributors:
297-
298- <div align =" center " ><br >
299-
300- [ ![ ] ( 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 )
250+ ### <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 )
301251[ ![ ] ( 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 )
302252[ ![ ] ( 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 )
303253[ ![ ] ( 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
316266[ ![ ] ( 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 )
317267[ ![ ] ( 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 )
318268[ ![ ] ( 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 )
319- [ ![ ] ( 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 )
320- [ ![ ] ( 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 )
321- [ ![ ] ( 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 )
322- [ ![ ] ( 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 )
323- [ ![ ] ( 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 )
324- [ ![ ] ( 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 )
325- [ ![ ] ( 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 )
326- [ ![ ] ( 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 )
327- [ ![ ] ( 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 )
328- [ ![ ] ( 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 )
329- [ ![ ] ( 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 )
330- [ ![ ] ( 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 )
331- [ ![ ] ( https://images.weserv.nl/?url=https://avatars.githubusercontent.com/in/29110&h=47&w=47&mask=circle&maxage=7d " Dependabot ")] ( https://github.com/dependabot )
332- <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 >
333- <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 >
334- [ ![ ] ( https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/31427850?h=51&w=51&mask=circle&maxage=7d " @ImgBotApp ")] ( https://github.com/ImgBotApp )
335-
336- </div ><br >
337-
338- <img height =8px width =" 100% " src =" https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7 " >
339-
340- <div id =" partners " >
341-
342- ## 🤝 Partners
343-
344- </div >
345-
346- ** chatgpt.js** is funded in part by:
347-
348- <div id =" partners-collage " align =" center " >
349-
350- <picture >
351- <source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptjs.org/images/logos/partners/collage/white.png?3109608">
352- <img width=888 src="https://media.chatgptjs.org/images/logos/partners/collage/black.png?3109608">
353- </picture >
354-
355- </div >
356-
357- <br >
358-
359- <img height =8px width =" 100% " src =" https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7 " >
360-
361- <div align =" center " >
362-
363- ** [ Releases] ( https://github.com/KudoAI/chatgpt.js/releases ) ** /
364- [ Userguide] ( https://github.com/KudoAI/chatgpt.js/blob/v3.3.2/docs/USERGUIDE.md ) /
269+ [ ![ ] ( https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/9730392?first-contrib=2023.12.3.2/docs/USERGUIDE.md ) /
365270[ Discuss] ( https://github.com/KudoAI/chatgpt.js/discussions ) /
366271<a href =" #--------------------------------------------------------------------------------english---------简体中文---------繁體中文---------日本---------한국인---------हिंदी---------नेपाली---------deutsch---------español---------français---------italiano---------nederlands---------português---------việt---- " >Back to top ↑</a >
367272
0 commit comments