@kudoai/chatgpt.js 3.6.2 → 3.7.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 +31 -7
- package/chatgpt.js +1036 -1033
- package/dist/chatgpt.min.js +76 -18
- package/docs/README.md +25 -8
- package/docs/USERGUIDE.md +63 -3
- package/package.json +8 -8
- package/starters/chrome/extension/components/icons.js +1 -1
- package/starters/chrome/extension/components/modals.js +8 -5
- package/starters/chrome/extension/content.js +8 -6
- package/starters/chrome/extension/lib/chatgpt.js +1036 -1033
- package/starters/chrome/extension/lib/dom.js +6 -6
- package/starters/chrome/extension/lib/settings.js +2 -2
- package/starters/chrome/extension/manifest.json +1 -1
- package/starters/chrome/extension/popup/controller.js +66 -74
- package/starters/chrome/extension/popup/index.html +1 -6
- package/starters/chrome/extension/popup/style.css +33 -34
- package/starters/chrome/extension/service-worker.js +12 -11
- package/starters/greasemonkey/chatgpt.js-greasemonkey-starter.user.js +2 -2
package/README.md
CHANGED
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
<img src="https://img.shields.io/github/stars/KudoAI/chatgpt.js?label=Stars&color=af68ff&logo=github&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
50
50
|
<a href="https://github.com/KudoAI/chatgpt.js/blob/main/LICENSE.md">
|
|
51
51
|
<img src="https://img.shields.io/badge/License-MIT-green.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
52
|
-
<a href="https://github.com/KudoAI/chatgpt.js/tree/v3.
|
|
53
|
-
<img src="https://img.shields.io/github/size/KudoAI/chatgpt.js/dist/chatgpt.min.js?branch=v3.
|
|
52
|
+
<a href="https://github.com/KudoAI/chatgpt.js/tree/v3.7.0/dist/chatgpt.min.js">
|
|
53
|
+
<img src="https://img.shields.io/github/size/KudoAI/chatgpt.js/dist/chatgpt.min.js?branch=v3.7.0&label=Minified%20Size&logo=databricks&logoColor=white&labelColor=464646&color=ff69b4&style=for-the-badge"></a>
|
|
54
54
|
<a href="https://www.codefactor.io/repository/github/kudoai/chatgpt.js">
|
|
55
55
|
<img src="https://img.shields.io/codefactor/grade/github/kudoai/chatgpt.js?label=Code+Quality&logo=codefactor&logoColor=white&labelColor=464646&color=1acc6c&style=for-the-badge"></a>
|
|
56
56
|
<a href="https://sonarcloud.io/component_measures?metric=new_vulnerabilities&id=kudoai_chatgpt.js">
|
|
@@ -81,6 +81,23 @@
|
|
|
81
81
|
|
|
82
82
|
<img height=8px width="100%" src="https://assets.chatgptjs.org/images/separators/gradient-aqua.png?v=e638eac">
|
|
83
83
|
|
|
84
|
+
<div id="golden-sponsors" align="center">
|
|
85
|
+
<br>
|
|
86
|
+
|
|
87
|
+
### Golden Sponsor:
|
|
88
|
+
|
|
89
|
+
<a href="https://www.burncloud.com/893.html">
|
|
90
|
+
<picture>
|
|
91
|
+
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptjs.org/images/logos/partners/burncloud/with-description/white.png?v=610795b">
|
|
92
|
+
<img width=685 src="https://assets.chatgptjs.org/images/logos/partners/burncloud/with-description/black.png?v=610795b">
|
|
93
|
+
</picture>
|
|
94
|
+
</a>
|
|
95
|
+
<br><br><br>
|
|
96
|
+
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<img height=8px width="100%" src="https://assets.chatgptjs.org/images/separators/gradient-aqua.png?v=e638eac">
|
|
100
|
+
|
|
84
101
|
<div id="importing">
|
|
85
102
|
|
|
86
103
|
## ⚡ Importing the library
|
|
@@ -94,7 +111,7 @@
|
|
|
94
111
|
|
|
95
112
|
```js
|
|
96
113
|
(async () => {
|
|
97
|
-
await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.
|
|
114
|
+
await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.7.0/dist/chatgpt.min.js');
|
|
98
115
|
// Your code here...
|
|
99
116
|
})();
|
|
100
117
|
```
|
|
@@ -103,7 +120,7 @@
|
|
|
103
120
|
|
|
104
121
|
```js
|
|
105
122
|
var xhr = new XMLHttpRequest();
|
|
106
|
-
xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.
|
|
123
|
+
xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.7.0/dist/chatgpt.min.js');
|
|
107
124
|
xhr.onload = function () {
|
|
108
125
|
if (xhr.status === 200) {
|
|
109
126
|
var chatgptJS = document.createElement('script');
|
|
@@ -126,7 +143,7 @@ function yourCode() {
|
|
|
126
143
|
|
|
127
144
|
```js
|
|
128
145
|
...
|
|
129
|
-
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.
|
|
146
|
+
// @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.7.0/dist/chatgpt.min.js
|
|
130
147
|
// ==/UserScript==
|
|
131
148
|
|
|
132
149
|
// Your code here...
|
|
@@ -196,7 +213,7 @@ chatgpt.get('reply', 'last');
|
|
|
196
213
|
|
|
197
214
|
Each call equally fetches the last response. If you think it works, it probably will... so just type it!
|
|
198
215
|
|
|
199
|
-
If it didn't, check out the extended [userguide](https://github.com/KudoAI/chatgpt.js/blob/v3.
|
|
216
|
+
If it didn't, check out the extended [userguide](https://github.com/KudoAI/chatgpt.js/blob/v3.7.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!
|
|
200
217
|
|
|
201
218
|
<img height=8px width="100%" src="https://assets.chatgptjs.org/images/separators/gradient-aqua.png?v=e638eac">
|
|
202
219
|
|
|
@@ -417,6 +434,13 @@ This library exists thanks to code, translations, issues & ideas from the follow
|
|
|
417
434
|
<img width=255 src="https://assets.chatgptjs.org/images/logos/partners/microsoft/black.png?v=e638eac">
|
|
418
435
|
</picture>
|
|
419
436
|
</a>
|
|
437
|
+
|
|
438
|
+
<a href="https://www.burncloud.com/893.html">
|
|
439
|
+
<picture>
|
|
440
|
+
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://assets.chatgptjs.org/images/logos/partners/burncloud/with-description/white.png?v=610795b">
|
|
441
|
+
<img width=285 src="https://assets.chatgptjs.org/images/logos/partners/burncloud/with-description/black.png?v=610795b">
|
|
442
|
+
</picture>
|
|
443
|
+
</a>
|
|
420
444
|
|
|
421
445
|
</div>
|
|
422
446
|
|
|
@@ -427,7 +451,7 @@ This library exists thanks to code, translations, issues & ideas from the follow
|
|
|
427
451
|
<div align="center">
|
|
428
452
|
|
|
429
453
|
**[Releases](https://github.com/KudoAI/chatgpt.js/releases)** /
|
|
430
|
-
[Userguide](https://github.com/KudoAI/chatgpt.js/blob/v3.
|
|
454
|
+
[Userguide](https://github.com/KudoAI/chatgpt.js/blob/v3.7.0/docs/USERGUIDE.md) /
|
|
431
455
|
[Discuss](https://github.com/KudoAI/chatgpt.js/discussions) /
|
|
432
456
|
[Back to top ↑](#top)
|
|
433
457
|
|