@kudoai/chatgpt.js 2.9.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -51
- package/chatgpt.js +105 -106
- package/dist/chatgpt.min.js +3 -3
- package/docs/README.md +74 -51
- package/docs/USERGUIDE.md +81 -54
- package/package.json +7 -6
- package/starters/chrome/LICENSE.md +2 -2
- package/starters/chrome/docs/README.md +5 -5
- package/starters/chrome/docs/SECURITY.md +2 -2
- package/starters/chrome/extension/lib/chatgpt.js +105 -106
- package/starters/chrome/extension/manifest.json +1 -1
- package/starters/chrome/extension/popup/index.html +1 -1
- package/starters/docs/README.md +2 -2
- package/starters/greasemonkey/LICENSE.md +2 -2
- package/starters/greasemonkey/chatgpt.js-greasemonkey-starter.user.js +4 -4
- package/starters/greasemonkey/docs/SECURITY.md +2 -2
- package/starters/media/images/icons/tampermonkey-icon28.png +0 -0
- package/starters/media/images/icons/violentmonkey-icon100.png +0 -0
package/README.md
CHANGED
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
[](https://github.com/KudoAI/chatgpt.js/stargazers)
|
|
46
46
|
[](https://github.com/KudoAI/chatgpt.js/blob/main/LICENSE.md)
|
|
47
47
|
[](https://github.com/KudoAI/chatgpt.js/commits/main)
|
|
48
|
-
|
|
48
|
+

|
|
49
|
+
[](https://github.com/KudoAI/chatgpt.js/tree/v3.0.0/dist/chatgpt.min.js)
|
|
49
50
|
[](https://www.codefactor.io/repository/github/kudoai/chatgpt.js)
|
|
50
51
|
[](https://sonarcloud.io/component_measures?metric=new_vulnerabilities&id=kudoai_chatgpt.js)
|
|
51
52
|
[](https://github.com/sindresorhus/awesome-chatgpt#javascript)
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
|
|
63
64
|
</div>
|
|
64
65
|
|
|
65
|
-
<span style="color: white">chatgpt.js</span> is a <span style="color: white">powerful</span> JavaScript library that allows for <span style="color: white">super easy</span> interaction w/ the ChatGPT DOM.
|
|
66
|
+
<span style="color: white"><b>chatgpt.js</b></span> is a <span style="color: white">powerful</span> JavaScript library that allows for <span style="color: white">super easy</span> interaction w/ the ChatGPT DOM.
|
|
66
67
|
|
|
67
68
|
- Feature-rich
|
|
68
69
|
- Object-oriented
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
|
|
84
85
|
```js
|
|
85
86
|
(async () => {
|
|
86
|
-
await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@
|
|
87
|
+
await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.0.0/dist/chatgpt.min.js');
|
|
87
88
|
// Your code here...
|
|
88
89
|
})();
|
|
89
90
|
```
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
|
|
93
94
|
```js
|
|
94
95
|
var xhr = new XMLHttpRequest();
|
|
95
|
-
xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@
|
|
96
|
+
xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.0.0/dist/chatgpt.min.js');
|
|
96
97
|
xhr.onload = function () {
|
|
97
98
|
if (xhr.status === 200) {
|
|
98
99
|
var chatgptJS = document.createElement('script');
|
|
@@ -108,19 +109,19 @@ function yourCode() {
|
|
|
108
109
|
}
|
|
109
110
|
```
|
|
110
111
|
|
|
111
|
-
### <img style="margin: 0 2px -0.065rem 0" height=17 src="https://
|
|
112
|
+
### <img style="margin: 0 2px -0.065rem 0" height=17 src="https://media.chatgptjs.org/images/icons/platforms/tampermonkey/icon28.png?a3e53bf7"><img style="margin: 0 2px -0.035rem 1px" height=17.5 src="https://media.chatgptjs.org/images/icons/platforms/violentmonkey/icon25.png?a3e53bf7"> Greasemonkey:
|
|
112
113
|
|
|
113
114
|
> **Note** _To use a starter template: [kudoai/chatgpt.js-greasemonkey-starter](https://github.com/KudoAI/chatgpt.js-greasemonkey-starter)_
|
|
114
115
|
|
|
115
116
|
```js
|
|
116
117
|
...
|
|
117
|
-
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@
|
|
118
|
+
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.0.0/dist/chatgpt.min.js
|
|
118
119
|
// ==/UserScript==
|
|
119
120
|
|
|
120
121
|
// Your code here...
|
|
121
122
|
```
|
|
122
123
|
|
|
123
|
-
### <img style="margin: 0 2px -1px 0" height=16 src="https://
|
|
124
|
+
### <img style="margin: 0 2px -1px 0" height=16 src="https://media.chatgptjs.org/images/icons/platforms/chrome/icon16.png?8c852fa5"> Chrome:
|
|
124
125
|
|
|
125
126
|
> **Note** _To use a starter template: [kudoai/chatgpt.js-chrome-starter](https://github.com/KudoAI/chatgpt.js-chrome-starter)_
|
|
126
127
|
|
|
@@ -189,7 +190,7 @@ chatgpt.get('reply', 'last');
|
|
|
189
190
|
|
|
190
191
|
Each call equally fetches the last response. If you think it works, it probably will... so just type it!
|
|
191
192
|
|
|
192
|
-
If it didn't, check out the extended [userguide](https://github.com/KudoAI/chatgpt.js/blob/
|
|
193
|
+
If it didn't, check out the extended [userguide](https://github.com/KudoAI/chatgpt.js/blob/v3.0.0/docs/USERGUIDE.md), or simply submit an [issue](https://github.com/KudoAI/chatgpt.js/issues) or [PR](https://github.com/KudoAI/chatgpt.js/pulls) and it will be integrated, ezpz!
|
|
193
194
|
|
|
194
195
|
<img height=8px width="100%" src="https://media.chatgptjs.org/images/separators/gradient-aqua.png?78210a7">
|
|
195
196
|
|
|
@@ -203,58 +204,79 @@ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3
|
|
|
203
204
|
|
|
204
205
|
#
|
|
205
206
|
|
|
206
|
-
### <
|
|
207
|
+
### <img src="https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png" width=20> [AmazonGPT](https://amazongpt.kudoai.com)
|
|
208
|
+
|
|
209
|
+
> Add AI to Amazon shopping.
|
|
210
|
+
<br>[Install](https://greasyfork.org/scripts/500663-amazongpt) /
|
|
211
|
+
[Readme](https://amazongpt.kudoai.com/#readme) /
|
|
212
|
+
[Discuss](https://amazongpt.kudoai.com/discussions)
|
|
213
|
+
|
|
214
|
+
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.autoclearchatgpt.com/images/icons/openai/white/icon48.png?cece513"><img width=21 src="https://media.autoclearchatgpt.com/images/icons/openai/black/icon48.png?cece513"></picture> [Autoclear ChatGPT History](https://autoclearchatgpt.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://media.autoclearchatgpt.com/images/badges/awesome/badge.svg?2c0d9fc" style="margin:0 0 -2px 5px"></a>
|
|
207
215
|
|
|
208
216
|
> Auto-clear your ChatGPT query history for maximum privacy.
|
|
209
217
|
<br>[Install](https://docs.autoclearchatgpt.com/#-installation) /
|
|
210
218
|
[Readme](https://docs.autoclearchatgpt.com/#readme) /
|
|
211
219
|
[Discuss](https://github.autoclearchatgpt.com/discussions)
|
|
212
220
|
|
|
213
|
-
### <img src="https://media.bravegpt.com/images/icons/bravegpt/icon48.png"
|
|
221
|
+
### <img width=24 src="https://media.bravegpt.com/images/icons/bravegpt/icon48.png?0a9e287"> [BraveGPT](https://bravegpt.com) <a href="https://www.producthunt.com/posts/bravegpt?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-bravegpt" target="_blank" rel="noopener"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=385630&theme=light" style="width: 112px; height: 24px; margin:0 0 -4px 5px;" width="112" height="24" /></a>
|
|
214
222
|
|
|
215
|
-
>
|
|
223
|
+
> Adds AI answers to Brave Search (powered by GPT-4o!)
|
|
216
224
|
<br>[Install](https://docs.bravegpt.com/#-installation) /
|
|
217
225
|
[Readme](https://docs.bravegpt.com/#readme) /
|
|
218
226
|
[Discuss](https://github.bravegpt.com/discussions)
|
|
219
227
|
|
|
220
|
-
### <picture><source media="(prefers-color-scheme: dark)" srcset="https://
|
|
228
|
+
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptautocontinue.com/images/icons/openai/white/icon48.png?7bbd222"><img width=21 src="https://media.chatgptautocontinue.com/images/icons/openai/black/icon48.png?7bbd222"></picture> [ChatGPT Auto-Continue ⏩](https://chatgptautocontinue.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://media.chatgptautocontinue.com/images/badges/awesome/badge.svg?3c80c0c" style="margin:0 0 -3px 3px"></a>
|
|
221
229
|
|
|
222
230
|
> Automatically continue generating multiple ChatGPT responses.
|
|
223
231
|
<br>[Install](https://docs.chatgptautocontinue.com/#-installation) /
|
|
224
232
|
[Readme](https://docs.chatgptautocontinue.com/#readme) /
|
|
225
233
|
[Discuss](https://github.chatgptautocontinue.com/discussions)
|
|
226
234
|
|
|
227
|
-
### <picture><source media="(prefers-color-scheme: dark)" srcset="https://
|
|
235
|
+
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-talk@eb7f285/assets/images/icons/openai/white/icon64.png"><img width=21 src="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-talk@eb7f285/assets/images/icons/openai/black/icon64.png"></picture> [ChatGPT Auto-Talk 📣](https://github.com/adamlui/chatgpt-auto-talk)
|
|
236
|
+
|
|
237
|
+
> Auto-play ChatGPT responses.
|
|
238
|
+
<br>[Install](https://greasyfork.org/scripts/500940-chatgpt-auto-talk) /
|
|
239
|
+
[Readme](https://github.com/adamlui/chatgpt-auto-talk#readme) /
|
|
240
|
+
[Discuss](https://github.com/adamlui/chatgpt-auto-talk/discussions)
|
|
241
|
+
|
|
242
|
+
### <picture><source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://media.chatgptautorefresh.com/images/icons/openai/white/icon48.png?a45cf1e"><img width=21 src="https://media.chatgptautorefresh.com/images/icons/openai/black/icon48.png?a45cf1e"></picture> [ChatGPT Auto Refresh ↻](https://chatgptautorefresh.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://media.chatgptautorefresh.com/images/badges/awesome/badge.svg?1080f44" style="margin:0 0 -2px 5px"></a>
|
|
228
243
|
|
|
229
244
|
> Keeps ChatGPT sessions fresh to eliminate network errors + Cloudflare checks.
|
|
230
245
|
<br>[Install](https://docs.chatgptautorefresh.com/#-installation) /
|
|
231
246
|
[Readme](https://docs.chatgptautorefresh.com/#readme) /
|
|
232
247
|
[Discuss](https://github.chatgptautorefresh.com/discussions)
|
|
233
248
|
|
|
234
|
-
### <img src="https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png"
|
|
249
|
+
### <img width=23 src="https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302"> [DuckDuckGPT](https://duckduckgpt.com) <a href="https://www.producthunt.com/posts/duckduckgpt?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-duckduckgpt" target="_blank" rel="noopener"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=379261&theme=light" style="width: 112px; height: 24px; margin:0 0 -4px 5px;" width="112" height="24" /></a>
|
|
235
250
|
|
|
236
|
-
>
|
|
251
|
+
> Adds AI answers to DuckDuckGo (powered by GPT-4o!)
|
|
237
252
|
<br>[Install](https://docs.ddgpt.com/#-installation) /
|
|
238
253
|
[Readme](https://docs.ddgpt.com/#readme) /
|
|
239
254
|
[Discuss](https://github.ddgpt.com/discussions)
|
|
240
255
|
|
|
241
|
-
### <picture><source media="(prefers-color-scheme: dark)" srcset="https://media.googlegpt.io/images/icons/googlegpt/white/icon32.png"><img width=
|
|
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>
|
|
242
257
|
|
|
243
|
-
>
|
|
244
|
-
<br>[Install](https://greasyfork.
|
|
258
|
+
> Adds AI answers to Google Search (powered by Google Gemma + GPT-4o!)
|
|
259
|
+
<br>[Install](https://greasyfork.googlegpt.io) /
|
|
245
260
|
[Readme](https://docs.googlegpt.io/#readme) /
|
|
246
261
|
[Discuss](https://github.googlegpt.io/discussions)
|
|
247
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"><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
|
+
|
|
248
270
|
<p><br>
|
|
249
271
|
|
|
250
272
|
<a href="https://chatgptinfinity.com" target="_blank" rel="noopener">
|
|
251
|
-
<img width=555 src="https://
|
|
273
|
+
<img width=555 src="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-infinity@0f48c4e/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
|
|
252
274
|
</a>
|
|
253
275
|
|
|
254
276
|
<p><br>
|
|
255
277
|
|
|
256
278
|
<a href="https://chatgptwidescreen.com" target="_blank" rel="noopener">
|
|
257
|
-
<img width=555 src="https://
|
|
279
|
+
<img width=555 src="https://cdn.jsdelivr.net/gh/adamlui/chatgpt-widescreen@3ed0950/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
|
|
258
280
|
</a>
|
|
259
281
|
|
|
260
282
|
<p><br>
|
|
@@ -275,36 +297,37 @@ This library exists thanks to code, translations, issues & ideas from the follow
|
|
|
275
297
|
|
|
276
298
|
<div align="center"><br>
|
|
277
299
|
|
|
278
|
-
[](https://github.com/adamlui)
|
|
301
|
+
[](https://github.com/mefengl)
|
|
302
|
+
[](https://github.com/Zin6969)
|
|
303
|
+
[](https://github.com/madruga8)
|
|
304
|
+
[](https://github.com/XiaoYingYo)
|
|
305
|
+
[](https://github.com/AliAlSarre)
|
|
306
|
+
[](https://github.com/madkarmaa)
|
|
307
|
+
[](https://github.com/wamoyo)
|
|
308
|
+
[](https://github.com/meiraleal)
|
|
309
|
+
[](https://github.com/eltociear)
|
|
310
|
+
[](https://github.com/Rojojun)
|
|
311
|
+
[](https://github.com/iamnishantgaharwar)
|
|
312
|
+
[](https://github.com/hakimel)
|
|
313
|
+
[](https://github.com/omahs)
|
|
314
|
+
[](https://www.linkedin.com/in/najam-ul-arfeen-khan/)
|
|
315
|
+
[](https://github.com/iambijayd)
|
|
316
|
+
[](https://github.com/abhinavm24)
|
|
317
|
+
[](https://github.com/deyvisml)
|
|
318
|
+
[](https://github.com/philly88r)
|
|
319
|
+
[](https://github.com/thomasgauthier)
|
|
320
|
+
[](https://github.com/pranav-bhatt)
|
|
321
|
+
[](https://github.com/hopana)
|
|
322
|
+
[](https://github.com/emtry)
|
|
323
|
+
[](https://github.com/thedayofcondor)
|
|
324
|
+
[](https://github.com/Luwa-Tech)
|
|
325
|
+
[](https://github.com/micz)
|
|
326
|
+
[](https://github.com/imranaalam)
|
|
327
|
+
[](https://github.com/grayfallstown)
|
|
328
|
+
[](https://github.com/dependabot)
|
|
329
|
+
<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>
|
|
330
|
+
<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>
|
|
308
331
|
[](https://github.com/ImgBotApp)
|
|
309
332
|
|
|
310
333
|
</div><br>
|
|
@@ -335,7 +358,7 @@ This library exists thanks to code, translations, issues & ideas from the follow
|
|
|
335
358
|
<div align="center">
|
|
336
359
|
|
|
337
360
|
**[Releases](https://github.com/KudoAI/chatgpt.js/releases)** /
|
|
338
|
-
[Userguide](https://github.com/KudoAI/chatgpt.js/blob/
|
|
361
|
+
[Userguide](https://github.com/KudoAI/chatgpt.js/blob/v3.0.0/docs/USERGUIDE.md) /
|
|
339
362
|
[Discuss](https://github.com/KudoAI/chatgpt.js/discussions) /
|
|
340
363
|
<a href="#--------------------------------------------------------------------------------english---------简体中文---------繁體中文---------日本---------한국인---------हिंदी---------नेपाली---------deutsch---------español---------français---------italiano---------nederlands---------português---------việt----">Back to top ↑</a>
|
|
341
364
|
|