@kudoai/chatgpt.js 2.6.4 → 2.6.6

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.
Files changed (178) hide show
  1. package/README.md +341 -0
  2. package/chatgpt.js +22 -22
  3. package/dist/chatgpt.min.js +7 -0
  4. package/docs/README.md +341 -324
  5. package/docs/USERGUIDE.md +1812 -1814
  6. package/docs/de/README.md +341 -324
  7. package/docs/es/README.md +341 -324
  8. package/docs/fr/README.md +341 -324
  9. package/docs/hi/README.md +342 -325
  10. package/docs/it/README.md +341 -324
  11. package/docs/ja/README.md +341 -324
  12. package/docs/ko/README.md +346 -329
  13. package/docs/ne/README.md +342 -325
  14. package/docs/nl/README.md +341 -324
  15. package/docs/pt/README.md +341 -324
  16. package/docs/vi/README.md +341 -324
  17. package/docs/zh-cn/README.md +341 -324
  18. package/docs/zh-tw/README.md +340 -323
  19. package/package.json +51 -31
  20. package/starters/chrome/LICENSE.md +43 -0
  21. package/starters/chrome/docs/README.md +17 -1
  22. package/starters/chrome/docs/SECURITY.md +17 -0
  23. package/starters/chrome/docs/de/LICENSE.md +21 -3
  24. package/starters/chrome/docs/de/README.md +17 -1
  25. package/starters/chrome/docs/es/LICENSE.md +21 -3
  26. package/starters/chrome/docs/es/README.md +17 -1
  27. package/starters/chrome/docs/fr/LICENSE.md +21 -3
  28. package/starters/chrome/docs/fr/README.md +17 -1
  29. package/starters/chrome/docs/hi/LICENSE.md +21 -3
  30. package/starters/chrome/docs/hi/README.md +17 -2
  31. package/starters/chrome/docs/hi/SECURITY.md +17 -0
  32. package/starters/chrome/docs/it/LICENSE.md +21 -3
  33. package/starters/chrome/docs/it/README.md +17 -1
  34. package/starters/chrome/docs/ja/LICENSE.md +21 -3
  35. package/starters/chrome/docs/ja/README.md +17 -2
  36. package/starters/chrome/docs/ko/LICENSE.md +21 -3
  37. package/starters/chrome/docs/ko/README.md +17 -1
  38. package/starters/chrome/docs/nl/LICENSE.md +20 -3
  39. package/starters/chrome/docs/nl/README.md +17 -1
  40. package/starters/chrome/docs/pt/LICENSE.md +21 -3
  41. package/starters/chrome/docs/pt/README.md +17 -1
  42. package/starters/chrome/docs/vi/LICENSE.md +21 -3
  43. package/starters/chrome/docs/vi/README.md +17 -1
  44. package/starters/chrome/docs/zh-cn/LICENSE.md +21 -3
  45. package/starters/chrome/docs/zh-cn/README.md +17 -2
  46. package/starters/chrome/docs/zh-cn/SECURITY.md +17 -0
  47. package/starters/chrome/docs/zh-tw/LICENSE.md +21 -3
  48. package/starters/chrome/docs/zh-tw/README.md +17 -1
  49. package/starters/chrome/extension/content.js +1 -1
  50. package/starters/chrome/extension/lib/chatgpt.js +6 -4
  51. package/starters/chrome/extension/manifest.json +1 -1
  52. package/starters/greasemonkey/LICENSE.md +43 -0
  53. package/starters/greasemonkey/chatgpt.js-greasemonkey-starter.user.js +52 -52
  54. package/starters/greasemonkey/docs/SECURITY.md +17 -0
  55. package/starters/greasemonkey/docs/de/LICENSE.md +31 -0
  56. package/starters/greasemonkey/docs/es/LICENSE.md +31 -0
  57. package/starters/greasemonkey/docs/fr/LICENSE.md +31 -0
  58. package/starters/greasemonkey/docs/hi/LICENSE.md +31 -0
  59. package/starters/greasemonkey/docs/hi/SECURITY.md +17 -0
  60. package/starters/greasemonkey/docs/it/LICENSE.md +29 -0
  61. package/starters/greasemonkey/docs/ja/LICENSE.md +31 -0
  62. package/starters/greasemonkey/docs/ko/LICENSE.md +34 -0
  63. package/starters/greasemonkey/docs/nl/LICENSE.md +30 -0
  64. package/starters/greasemonkey/docs/pt/LICENSE.md +31 -0
  65. package/starters/greasemonkey/docs/vi/LICENSE.md +31 -0
  66. package/starters/greasemonkey/docs/zh-cn/LICENSE.md +31 -0
  67. package/starters/greasemonkey/docs/zh-cn/SECURITY.md +17 -0
  68. package/starters/greasemonkey/docs/zh-tw/LICENSE.md +31 -0
  69. package/dist/chatgpt-2.6.4.min.js +0 -1
  70. package/docs/.nojekyll +0 -0
  71. package/docs/CNAME +0 -1
  72. package/docs/_coverpage.md +0 -16
  73. package/docs/_utils/LICENSE.md +0 -21
  74. package/docs/_utils/minify.js +0 -50
  75. package/docs/assets/docsify/cursors/futuristic/pointer.cur +0 -0
  76. package/docs/assets/docsify/favicons/favicon16.png +0 -0
  77. package/docs/assets/docsify/favicons/favicon320.png +0 -0
  78. package/docs/assets/docsify/favicons/favicon48.png +0 -0
  79. package/docs/assets/docsify/favicons/favicon64.png +0 -0
  80. package/docs/assets/docsify/fonts/eurostile-extended-black/EurostileExtendedBlack.otf +0 -0
  81. package/docs/assets/docsify/fonts/eurostile-extended-black/EurostileExtendedBlack.ttf +0 -0
  82. package/docs/assets/docsify/fonts/eurostile-extended-black/EurostileExtendedBlack.woff +0 -0
  83. package/docs/assets/docsify/fonts/eurostile-extended-black/EurostileExtendedBlack.woff2 +0 -0
  84. package/docs/assets/docsify/fonts/ibm-plex-mono/OFL.txt +0 -93
  85. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Bold.otf +0 -0
  86. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-BoldItalic.otf +0 -0
  87. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-ExtraLight.otf +0 -0
  88. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-ExtraLightItalic.otf +0 -0
  89. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Italic.otf +0 -0
  90. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Light.otf +0 -0
  91. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-LightItalic.otf +0 -0
  92. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Medium.otf +0 -0
  93. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-MediumItalic.otf +0 -0
  94. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Regular.otf +0 -0
  95. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-SemiBold.otf +0 -0
  96. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-SemiBoldItalic.otf +0 -0
  97. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-Thin.otf +0 -0
  98. package/docs/assets/docsify/fonts/ibm-plex-mono/otf/IBMPlexMono-ThinItalic.otf +0 -0
  99. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Bold.ttf +0 -0
  100. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-BoldItalic.ttf +0 -0
  101. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-ExtraLight.ttf +0 -0
  102. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-ExtraLightItalic.ttf +0 -0
  103. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Italic.ttf +0 -0
  104. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Light.ttf +0 -0
  105. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-LightItalic.ttf +0 -0
  106. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Medium.ttf +0 -0
  107. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-MediumItalic.ttf +0 -0
  108. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Regular.ttf +0 -0
  109. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-SemiBold.ttf +0 -0
  110. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-SemiBoldItalic.ttf +0 -0
  111. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-Thin.ttf +0 -0
  112. package/docs/assets/docsify/fonts/ibm-plex-mono/ttf/IBMPlexMono-ThinItalic.ttf +0 -0
  113. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Bold.woff +0 -0
  114. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-BoldItalic.woff +0 -0
  115. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-ExtraLight.woff +0 -0
  116. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-ExtraLightItalic.woff +0 -0
  117. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Italic.woff +0 -0
  118. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Light.woff +0 -0
  119. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-LightItalic.woff +0 -0
  120. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Medium.woff +0 -0
  121. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-MediumItalic.woff +0 -0
  122. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Regular.woff +0 -0
  123. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-SemiBold.woff +0 -0
  124. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-SemiBoldItalic.woff +0 -0
  125. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-Thin.woff +0 -0
  126. package/docs/assets/docsify/fonts/ibm-plex-mono/woff/IBMPlexMono-ThinItalic.woff +0 -0
  127. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Bold.woff2 +0 -0
  128. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-BoldItalic.woff2 +0 -0
  129. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-ExtraLight.woff2 +0 -0
  130. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-ExtraLightItalic.woff2 +0 -0
  131. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Italic.woff2 +0 -0
  132. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Light.woff2 +0 -0
  133. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-LightItatlic.woff2 +0 -0
  134. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Medium.woff2 +0 -0
  135. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-MediumItalic.woff2 +0 -0
  136. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Regular.woff2 +0 -0
  137. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-SemiBold.woff2 +0 -0
  138. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-SemiBoldItalic.woff2 +0 -0
  139. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-Thin.woff2 +0 -0
  140. package/docs/assets/docsify/fonts/ibm-plex-mono/woff2/IBMPlexMono-ThinItalic.woff2 +0 -0
  141. package/docs/assets/docsify/fonts/major-mono-display/MajorMonoDisplay-Regular.otf +0 -0
  142. package/docs/assets/docsify/fonts/major-mono-display/MajorMonoDisplay-Regular.ttf +0 -0
  143. package/docs/assets/docsify/fonts/major-mono-display/MajorMonoDisplay-Regular.woff +0 -0
  144. package/docs/assets/docsify/fonts/major-mono-display/MajorMonoDisplay-Regular.woff2 +0 -0
  145. package/docs/assets/docsify/fonts/major-mono-display/OFL.txt +0 -93
  146. package/docs/assets/docsify/fonts/polysans-neutral/PolySansNeutral.eot +0 -0
  147. package/docs/assets/docsify/fonts/polysans-neutral/PolySansNeutral.ttf +0 -0
  148. package/docs/assets/docsify/fonts/polysans-neutral/PolySansNeutral.woff +0 -0
  149. package/docs/assets/docsify/fonts/polysans-neutral/PolySansNeutral.woff2 +0 -0
  150. package/docs/assets/docsify/html/footer.html +0 -23
  151. package/docs/assets/docsify/js/min/back-to-top-button.min.js +0 -1
  152. package/docs/assets/docsify/js/min/copy-code-button.min.js +0 -1
  153. package/docs/assets/docsify/js/min/onload-hacks.min.js +0 -3
  154. package/docs/assets/docsify/js/min/starry-background.min.js +0 -1
  155. package/docs/assets/docsify/js/src/back-to-top-button.js +0 -64
  156. package/docs/assets/docsify/js/src/copy-code-button.js +0 -91
  157. package/docs/assets/docsify/js/src/onload-hacks.js +0 -613
  158. package/docs/assets/docsify/js/src/starry-background.js +0 -111
  159. package/docs/assets/docsify/styles/css/style.min.css +0 -1
  160. package/docs/assets/docsify/styles/css/style.min.css.map +0 -1
  161. package/docs/assets/docsify/styles/scss/style.scss +0 -510
  162. package/docs/assets/separators/aqua.png +0 -0
  163. package/docs/de/_coverpage.md +0 -12
  164. package/docs/es/_coverpage.md +0 -12
  165. package/docs/fr/_coverpage.md +0 -12
  166. package/docs/hi/_coverpage.md +0 -12
  167. package/docs/index.html +0 -91
  168. package/docs/it/_coverpage.md +0 -12
  169. package/docs/ja/_coverpage.md +0 -12
  170. package/docs/ko/_coverpage.md +0 -12
  171. package/docs/ne/_coverpage.md +0 -12
  172. package/docs/nl/_coverpage.md +0 -12
  173. package/docs/pt/_coverpage.md +0 -12
  174. package/docs/vi/_coverpage.md +0 -12
  175. package/docs/zh-cn/_coverpage.md +0 -12
  176. package/docs/zh-tw/_coverpage.md +0 -12
  177. package/starters/chrome/LICENSE +0 -21
  178. package/starters/greasemonkey/LICENSE +0 -21
package/docs/ja/README.md CHANGED
@@ -1,324 +1,341 @@
1
- <div id="repo-cover" align="center">
2
-
3
- <div align="center">
4
- <h6>
5
- <a href="https://github.com/kudoai/chatgpt.js/tree/main/docs">
6
- <picture>
7
- <source type="image/svg+xml" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-white-padded-icon17x15.svg">
8
- <img src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-padded-icon17x15.svg">
9
- </picture>
10
- </a>
11
- 日本 |
12
- <a href="../..#readme">English</a> |
13
- <a href="../zh-cn#readme">简体中文</a> |
14
- <a href="../zh-tw#readme">繁體中文</a> |
15
- <a href="../ko#readme">한국인</a> |
16
- <a href="../hi#readme">हिंदी</a> |
17
- <a href="../ne#readme">नेपाली</a> |
18
- <a href="../de#readme">Deutsch</a> |
19
- <a href="../es#readme">Español</a> |
20
- <a href="../fr#readme">Français</a> |
21
- <a href="../it#readme">Italiano</a> |
22
- <a href="../nl#readme">Nederlands</a> |
23
- <a href="../pt#readme">Português</a> |
24
- <a href="../vi#readme">Việt</a>
25
- </h6>
26
- </div>
27
-
28
- <br>
29
-
30
- <picture>
31
- <source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/chatgpt.js/with-reflection/darkmode.png">
32
- <img width=800 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/chatgpt.js/with-reflection/lightmode.png">
33
- </picture>
34
-
35
- ### 🤖 ChatGPT 用の強力なクライアント側 JavaScript ライブラリ
36
-
37
- </div>
38
-
39
- <br>
40
-
41
- <div id="shields" align="center">
42
-
43
- [![](https://img.shields.io/github/stars/KudoAI/chatgpt.js?label=出演者&color=gold&logo=github&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/KudoAI/chatgpt.js/stargazers)
44
- [![](https://img.shields.io/badge/ライセンス-MIT-green.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge)](LICENSE.md)
45
- [![](https://img.shields.io/github/commit-activity/m/kudoai/chatgpt.js?label=コミット&logo=github&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/kudoai/chatgpt.js/commits/main)
46
- ![](https://img.shields.io/github/size/kudoai/chatgpt.js/dist/chatgpt-2.6.4.min.js?label=Minified%20Size&logo=databricks&logoColor=white&labelColor=464646&color=ff69b4&style=for-the-badge)
47
- [![](https://img.shields.io/codacy/grade/696917c8e5a949c49edb89ed2f43d5ba?label=コードの品質&logo=codacy&logoColor=white&labelColor=464646&color=1acc6c&style=for-the-badge)](https://app.codacy.com/gh/KudoAI/chatgpt.js/commits?utm_source=chatgpt%2Ejs&utm_content=github_shield)
48
- [![](https://img.shields.io/badge/で言及-Awesome-cca8c4?logo=awesomelists&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/sindresorhus/awesome-chatgpt#javascript)
49
- [![](https://img.shields.io/badge/で特集されました-Product_Hunt-ff6154?logo=producthunt&logoColor=white&labelColor=464646&style=for-the-badge)](https://www.producthunt.com/posts/chatgpt-js)
50
- ![](https://img.shields.io/jsdelivr/gh/hm/kudoai/chatgpt.js?label=jsDelivr+ヒット&logo=jsdelivr&logoColor=white&labelColor=464646&color=9146ff&style=for-the-badge)
51
-
52
- </div>
53
-
54
- <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/separators/aqua.png">
55
-
56
- <div id="intro">
57
-
58
- ## 💡 アバウト
59
-
60
- </div>
61
-
62
- <span style="color: white">chatgpt.js</span> は、ChatGPT DOM との非<span style="color: white">常に簡</span>単な対話を可能にする<span style="color: white">強力な</span> JavaScript ライブラリです。
63
-
64
- - 豊富な機能
65
- - オブジェクト指向
66
- - 使いやすい
67
- - 軽量 (それでも最適なパフォーマンス)
68
-
69
- <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/separators/aqua.png">
70
-
71
- <div id="importing">
72
-
73
- ## ⚡ ライブラリのインポート
74
-
75
- </div>
76
-
77
- ### ES6:
78
-
79
- ```js
80
- (async () => {
81
- await import('https://code.chatgptjs.org/chatgpt-latest.min.js');
82
- // コードはここにあります...
83
- })();
84
- ```
85
-
86
- ### ES5:
87
-
88
- ```js
89
- var xhr = new XMLHttpRequest()
90
- xhr.open('GET', 'https://code.chatgptjs.org/chatgpt-latest.min.js')
91
- xhr.onload = function() {
92
- if (xhr.status === 200) {
93
- var chatgptJS = document.createElement('script')
94
- chatgptJS.textContent = xhr.responseText
95
- document.head.append(chatgptJS)
96
- yourCode() // コードを実行する
97
- }
98
- }
99
- xhr.send()
100
-
101
- function yourCode() {
102
- // コードはここにあります...
103
- }
104
- ```
105
-
106
- ### <img style="margin: 0 2px -0.065rem 0" height=17 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/starters/media/images/icons/tampermonkey-icon28.png"></picture><img style="margin: 0 2px -0.035rem 1px" height=17.5 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/starters/media/images/icons/violentmonkey-icon100.png"> Greasemonkey:
107
-
108
- > **ノート** _スターター テンプレートを使用するには: [kudoai/chatgpt.js-greasemonkey-starter](https://github.com/kudoai/chatgpt.js-greasemonkey-starter)_
109
-
110
- Greasy Fork のようなユーザースクリプト リポジトリは、事前承認された CDN (`cdn.jsdelivr.net` からのコミット固有の参照など) のホワイトリストを維持するため、これらのサイトへの公開可能性を維持するためにインポート URL は大幅に長くなります。
111
-
112
- ```js
113
- ...
114
- // @require https://cdn.jsdelivr.net/gh/kudoai/chatgpt.js@fb4b04a5956a693726b80325b609cb98be3864d5/dist/chatgpt-2.6.4.min.js
115
- // ==/UserScript==
116
-
117
- // コードはここにあります...
118
- ```
119
-
120
- これらのリポジトリに公開する予定がない場合は、より単純な `https://code.chatgptjs.org/chatgpt-latest.min.js` を代わりに使用して、最新の縮小リリースをインポートできます。
121
-
122
- ### <img style="margin: 0 2px -1px 0" height=16 src="https://www.google.com/chrome/static/images/favicons/apple-icon-60x60.png"> Chrome:
123
-
124
- > **ノート** _スターター テンプレートを使用するには: [kudoai/chatgpt.js-chrome-starter](https://github.com/kudoai/chatgpt.js-chrome-starter)_
125
-
126
- Google ではリモート コードが許可されていないため、chatgpt.js をローカルにインポートする必要があります:
127
-
128
- 1. https://raw.githubusercontent.com/kudoai/chatgpt.js/main/chatgpt.js をサブディレクトリ (この例では `lib`) に保存します
129
-
130
- 2. ES6 のエクスポート ステートメントを `lib/chatgpt.js` の末尾に追加します
131
- ```js
132
- ...
133
- export { chatgpt }
134
- ```
135
-
136
- 3. プロジェクト (V3) の `manifest.json` に、Web アクセス可能なリソースとして `lib/chatgpt.js` を追加します
137
- ```json
138
- "web_accessible_resources": [{
139
- "matches": ["<all_urls>"],
140
- "resources": ["lib/chatgpt.js"]
141
- }],
142
- ```
143
-
144
- 4. `chatgpt.js` (フォアグラウンド/バックグラウンド同様) を必要とするスクリプトでは、次のようにインポートします:
145
- ```js
146
- (async () => {
147
- const { chatgpt } = await import(chrome.runtime.getURL('lib/chatgpt.js'));
148
- // コードはここにあります...
149
- })();
150
- ```
151
-
152
- <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/separators/aqua.png">
153
-
154
- <div id="usage">
155
-
156
- ## 💻 使用法
157
-
158
- </div>
159
-
160
- **chatgpt.js** は、超柔軟性を念頭に置いて作成されました。
161
-
162
- 例えば:
163
-
164
- ```js
165
- chatgpt.getLastResponse()
166
- chatgpt.getLastReply()
167
- chatgpt.response.getLast()
168
- chatgpt.get('reply', 'last')
169
- ```
170
-
171
- 各呼び出しは同様に最後の応答を取得します。 うまくいくと思うなら、おそらくうまくいきます...だから、それを入力してください! (資料を読む時間が誰にありますか?)
172
-
173
- そうでない場合は、拡張された [ユーザーガイド](https://github.com/kudoai/chatgpt.js/blob/main/docs/USERGUIDE.md) を確認するか、単に [問題](https://github.com/kudoai/chatgpt.js/issues) または [PR](https://github.com/kudoai/chatgpt.js/pulls) と統合されるので、簡単です!
174
-
175
- <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/separators/aqua.png">
176
-
177
- <div id="showcase">
178
-
179
- ## 🤖 chatgpt.js で作成
180
-
181
- </div>
182
-
183
- https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3140b0f8a4
184
-
185
- #
186
-
187
- ### <picture><source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/RduASbD.png"><img width=16 src="https://raw.githubusercontent.com/adamlui/chatgpt-addons/main/media/icons/openai-favicon64.png"></picture> [ChatGPT の履歴を削除する](https://autoclearchatgpt.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://awesome.re/mentioned-badge.svg" style="margin:0 0 -2px 5px"></a>
188
-
189
- > プライバシーを最大限に高めるために、ChatGPT クエリ履歴を自動消去します。
190
- <br>[インストール](https://github.com/adamlui/autoclear-chatgpt-history#-installation) /
191
- [お読みください](https://github.com/adamlui/autoclear-chatgpt-history#readme) /
192
- [議論](https://autoclearchatgpt.com/discuss)
193
-
194
- ### <img width=16 src="https://i.imgur.com/1yjmK3W.png"> [Automatic ChatGPT DAN](https://github.com/madkarmaa/automatic-chatgpt-dan)
195
-
196
- > DAN プロンプトを ChatGPT に自動的に送信します。
197
- <br>[インストール](https://github.com/madkarmaa/automatic-chatgpt-dan#%EF%B8%8F-installation) /
198
- [お読みください](https://github.com/madkarmaa/automatic-chatgpt-dan#readme) /
199
- [議論](https://github.com/madkarmaa/automatic-chatgpt-dan/issues)
200
-
201
- ### <img src="https://media.bravegpt.com/images/icons/bravegpt/icon48.png" width=18> [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>
202
-
203
- > Brave Search サイドバーに ChatGPT の回答を表示 (GPT-4 を搭載!)
204
- <br>[インストール](https://github.bravegpt.com/#-installation) /
205
- [お読みください](https://github.bravegpt.com/#readme) /
206
- [議論](https://github.bravegpt.com/discussions)
207
-
208
- ### <picture><source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/RduASbD.png"><img width=16 src="https://raw.githubusercontent.com/adamlui/chatgpt-userscripts/main/media/icons/openai-favicon64.png"></picture> [ChatGPT 自動継続 ⏩](https://chatgptautocontinue.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://awesome.re/mentioned-badge.svg" style="margin:0 0 -3px 3px"></a>
209
-
210
- > ChatGPTの複数の応答を自動的に継続的に生成し続ける。
211
- <br>[インストール](https://github.com/adamlui/chatgpt-auto-continue#-installation) /
212
- [お読みください](https://github.com/adamlui/chatgpt-auto-continue#readme) /
213
- [議論](https://chatgptautocontinue.com/discuss)
214
-
215
- ### <picture><source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/RduASbD.png"><img width=16 src="https://raw.githubusercontent.com/adamlui/chatgpt-addons/main/media/icons/openai-favicon64.png"></picture> [ChatGPT 自動更新 ↻](https://chatgptautorefresh.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://awesome.re/mentioned-badge.svg" style="margin:0 0 -2px 5px"></a>
216
-
217
- > ChatGPTセッションを最新の状態に保ち、チャット時間制限、ネットワークエラー、Cloudflareチェックを排除します。
218
- <br>[インストール](https://github.com/adamlui/chatgpt-auto-refresh#-installation) /
219
- [お読みください](https://github.com/adamlui/chatgpt-auto-refresh#readme) /
220
- [議論](https://chatgptautorefresh.com/discuss)
221
-
222
- ### <img src="https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png" width=17> [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>
223
-
224
- > DuckDuckGo サイドバーに ChatGPT の回答を表示 (GPT-4 を搭載!)
225
- <br>[インストール](https://github.duckduckgpt.com/#-installation) /
226
- [お読みください](https://github.duckduckgpt.com/#readme) /
227
- [議論](https://github.duckduckgpt.com/discussions)
228
-
229
- ### <picture><source media="(prefers-color-scheme: dark)" srcset="https://media.googlegpt.io/images/icons/googlegpt/white/icon32.png"><img width=17 src="https://media.googlegpt.io/images/icons/googlegpt/black/icon32.png"></picture> [GoogleGPT](https://googlegpt.kudoai.com)
230
-
231
- > Google Search サイドバーに ChatGPT の回答を表示 (GPT-4 を搭載!)
232
- <br>[インストール](https://greasyfork.org/scripts/478597-googlegpt) /
233
- [お読みください](https://github.com/KudoAI/googlegpt#readme) /
234
- [議論 करना](https://github.com/KudoAI/googlegpt/discussions)
235
-
236
- <p><br>
237
-
238
- <a href="https://chatgptinfinity.com" target="_blank" rel="noopener">
239
- <img width=555 src="https://raw.githubusercontent.com/adamlui/chatgpt-infinity/main/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
240
- </a>
241
-
242
- <p><br>
243
-
244
- <a href="https://chatgptwidescreen.com" target="_blank" rel="noopener">
245
- <img width=555 src="https://raw.githubusercontent.com/adamlui/chatgpt-widescreen/main/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
246
- </a>
247
-
248
- <p><br>
249
-
250
- <p id="showcase-cta">
251
- chatgpt.js で何かを作成して共有したい場合は、<a href="mailto:showcase@chatgptjs.org">showcase@chatgptjs.org</a> にメールするか、<a href="https://github.com/kudoai/chatgpt.js/pulls" target="_blank" rel="noopener">プル リクエスト</a>!
252
- </p>
253
-
254
- <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/separators/aqua.png">
255
-
256
- <div id="contributors">
257
-
258
- ## 🧠 貢献者
259
-
260
- </div>
261
-
262
- このライブラリは、次の寄稿者によるコード、翻訳、問題、アイデアのおかげで存在します:
263
-
264
- <div align="center"><br>
265
-
266
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/10906554?first-contrib=2023.03.15&h=51&w=51&mask=circle&maxage=7d '@adamlui')](https://github.com/adamlui)
267
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/71683364?first-contrib=2023.03.16-get-functions&h=51&w=51&mask=circle&maxage=7d '@mefengl')](https://github.com/mefengl)
268
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/131989355?first-contrib=2023.04.30-doc-translations&h=51&w=51&mask=circle&maxage=7d '@Zin6969')](https://github.com/Zin6969)
269
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/30551844?first-contrib=2023.05.02-getlastresponse-bug-report&h=51&w=51&mask=circle&maxage=7d '@madruga8')](https://github.com/madruga8)
270
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/54934866?first-contrib=2023.05.01-clearchats-discard-fix&h=51&w=51&mask=circle&maxage=7d '@XiaoYingYo')](https://github.com/XiaoYingYo)
271
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/129722778?first-contrib=2023.05.24-css-readability&h=51&w=51&mask=circle&maxage=7d '@AliAlSarre')](https://github.com/AliAlSarre)
272
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/100418457?first-contrib=2023.06.02-send-function-bug-report&h=51&w=51&mask=circle&maxage=7d '@madkarmaa')](https://github.com/madkarmaa)
273
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/1170326?first-contrib=2023.06.10-html-parser-idea&h=51&w=51&mask=circle&maxage=7d '@wamoyo')](https://github.com/wamoyo)
274
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/33952?first-contrib=2023.06.10-html-parser-idea&h=51&w=51&mask=circle&maxage=7d '@meiraleal')](https://github.com/meiraleal)
275
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/22633385?first-contrib=2023.07.11-fix-ja-doc-md&h=51&w=51&mask=circle&maxage=7d '@eltociear')](https://github.com/eltociear)
276
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/72805486?first-contrib=2023.07.14-enhance-ko-docs&h=51&w=51&mask=circle&maxage=7d '@Rojojun')](https://github.com/Rojojun)
277
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/62183023?first-contrib=2023.07.24-fix-hi-doc&h=51&w=51&mask=circle&maxage=7d '@iamnishantgaharwar')](https://github.com/iamnishantgaharwar)
278
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/629429?first-contrib=2023.07.31-homepage-starry-bg&h=51&w=51&mask=circle&maxage=7d '@hakimel')](https://github.com/hakimel)
279
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/73983677?first-contrib=2023.08.23-fix-readme-typos&h=51&w=51&mask=circle&maxage=7d '@omahs')](https://github.com/omahs)
280
- [![](https://images.weserv.nl/?url=https://i.imgur.com/DQVC7vj.jpg?first-contrib=2023.09.19-add-dmarc-policy&h=51&w=51&mask=circle&maxage=7d 'Najam Ul Arfeen')](https://www.linkedin.com/in/najam-ul-arfeen-khan/)
281
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/110587589?first-contrib=2023.10.13-translate-docs-to-nepali&h=51&w=51&mask=circle&maxage=7d '@iambijayd')](https://github.com/iambijayd)
282
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/4698976?first-contrib=2023.10.29-remove-outdated-mv2-preface-from-docs&h=51&w=51&mask=circle&maxage=7d '@abhinavm24')](https://github.com/abhinavm24)
283
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/77867745?first-contrib=2023.11.4-getchatdetails-bug-report&h=51&w=51&mask=circle&maxage=7d '@deyvisml')](https://github.com/deyvisml)
284
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/150537240?first-contrib=2023.11.15-regenerate-btn-changed-bug-email&h=51&w=51&mask=circle&maxage=7d '@philly88r')](https://github.com/philly88r)
285
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/9730392?first-contrib=2023.12.18-get-response-from-dom-request&h=51&w=51&mask=circle&maxage=7d '@thomasgauthier')](https://github.com/thomasgauthier)
286
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/42911524?first-contrib=2024.1.17-add-custom-gpt-support&h=51&w=51&mask=circle&maxage=7d '@pranav-bhatt')](https://github.com/pranav-bhatt)
287
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/in/29110&h=51&w=51&mask=circle&maxage=7d 'Dependabot')](https://github.com/dependabot)
288
- [![](https://images.weserv.nl/?url=https://i.imgur.com/tNyIPmG.jpg?h=51&w=51&mask=circle&maxage=7d 'ChatGPT')](https://chat.openai.com)
289
- [![](https://images.weserv.nl/?url=https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/icons/poe-icon128.svg?first-contrib=2023.07.27-getandshowreply-method&h=51&w=51&mask=circle&maxage=7d 'Poe')](https://poe.com)
290
- [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/31427850?h=51&w=51&mask=circle&maxage=7d "@ImgBotApp")](https://github.com/ImgBotApp)
291
-
292
- </div><br>
293
-
294
- <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/separators/aqua.png">
295
-
296
- <div id="partners">
297
-
298
- ## 🤝 伙伴
299
-
300
- </div>
301
-
302
- **chatgpt.js** の資金の一部は次のとおりです:
303
-
304
- <div id="partners-collage" align="center">
305
-
306
- <picture>
307
- <source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/partners/collage/white.png">
308
- <img width=888 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/partners/collage/black.png">
309
- </picture>
310
-
311
- </div>
312
-
313
- <br>
314
-
315
- <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/separators/aqua.png">
316
-
317
- <div align="center">
318
-
319
- **[リリース](https://github.com/kudoai/chatgpt.js/tree/main/dist)** /
320
- [ユーザーガイド](https://github.com/kudoai/chatgpt.js/blob/main/docs/USERGUIDE.md) /
321
- [議論](https://github.com/kudoai/chatgpt.js/discussions) /
322
- <a href="#">トップに戻る ↑</a>
323
-
324
- </div>
1
+ <div id="repo-cover" align="center">
2
+
3
+ <div align="center">
4
+ <h6>
5
+ <a href="https://github.com/kudoai/chatgpt.js/tree/main/docs">
6
+ <picture>
7
+ <source type="image/svg+xml" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-white-padded-icon17x15.svg">
8
+ <img src="https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/media/images/icons/earth-americas-padded-icon17x15.svg">
9
+ </picture>
10
+ </a>
11
+ 日本 |
12
+ <a href="../..#readme">English</a> |
13
+ <a href="../zh-cn#readme">简体中文</a> |
14
+ <a href="../zh-tw#readme">繁體中文</a> |
15
+ <a href="../ko#readme">한국인</a> |
16
+ <a href="../hi#readme">हिंदी</a> |
17
+ <a href="../ne#readme">नेपाली</a> |
18
+ <a href="../de#readme">Deutsch</a> |
19
+ <a href="../es#readme">Español</a> |
20
+ <a href="../fr#readme">Français</a> |
21
+ <a href="../it#readme">Italiano</a> |
22
+ <a href="../nl#readme">Nederlands</a> |
23
+ <a href="../pt#readme">Português</a> |
24
+ <a href="../vi#readme">Việt</a>
25
+ </h6>
26
+ </div>
27
+
28
+ <br>
29
+
30
+ <picture>
31
+ <source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/chatgpt.js/with-reflection/darkmode.png">
32
+ <img width=800 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/chatgpt.js/with-reflection/lightmode.png">
33
+ </picture>
34
+
35
+ ### 🤖 ChatGPT 用の強力なクライアント側 JavaScript ライブラリ
36
+
37
+ </div>
38
+
39
+ <br>
40
+
41
+ <div id="shields" align="center">
42
+
43
+ [![](https://img.shields.io/github/stars/KudoAI/chatgpt.js?label=出演者&color=gold&logo=github&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/KudoAI/chatgpt.js/stargazers)
44
+ [![](https://img.shields.io/badge/ライセンス-MIT-green.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge)](LICENSE.md)
45
+ [![](https://img.shields.io/github/commit-activity/m/kudoai/chatgpt.js?label=コミット&logo=github&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/kudoai/chatgpt.js/commits/main)
46
+ ![](https://img.shields.io/github/size/kudoai/chatgpt.js/dist/chatgpt-2.6.6.min.js?label=Minified%20Size&logo=databricks&logoColor=white&labelColor=464646&color=ff69b4&style=for-the-badge)
47
+ [![](https://img.shields.io/codacy/grade/696917c8e5a949c49edb89ed2f43d5ba?label=コードの品質&logo=codacy&logoColor=white&labelColor=464646&color=1acc6c&style=for-the-badge)](https://app.codacy.com/gh/KudoAI/chatgpt.js/commits?utm_source=chatgpt%2Ejs&utm_content=github_shield)
48
+ [![](https://img.shields.io/badge/で言及-Awesome-cca8c4?logo=awesomelists&logoColor=white&labelColor=464646&style=for-the-badge)](https://github.com/sindresorhus/awesome-chatgpt#javascript)
49
+ [![](https://img.shields.io/badge/で特集されました-Product_Hunt-ff6154?logo=producthunt&logoColor=white&labelColor=464646&style=for-the-badge)](https://www.producthunt.com/posts/chatgpt-js)
50
+
51
+
52
+ </div>
53
+
54
+ <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
55
+
56
+ <div id="intro">
57
+
58
+ ## 💡 アバウト
59
+
60
+ </div>
61
+
62
+ <span style="color: white">chatgpt.js</span> は、ChatGPT DOM との非<span style="color: white">常に簡</span>単な対話を可能にする<span style="color: white">強力な</span> JavaScript ライブラリです。
63
+
64
+ - 豊富な機能
65
+ - オブジェクト指向
66
+ - 使いやすい
67
+ - 軽量 (それでも最適なパフォーマンス)
68
+
69
+ <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
70
+
71
+ <div id="importing">
72
+
73
+ ## ⚡ ライブラリのインポート
74
+
75
+ </div>
76
+
77
+ > **注意** _常に最新バージョンをインポートするには (運用環境では推奨されません!)、バージョン管理された jsDelivr URL を `https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js/chatgpt.min.js` に置き換えます_
78
+
79
+ ### ES6:
80
+
81
+ ```js
82
+ (async () => {
83
+ await import('https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.6/dist/chatgpt.min.js');
84
+ // コードはここにあります...
85
+ })();
86
+ ```
87
+
88
+ ### ES5:
89
+
90
+ ```js
91
+ var xhr = new XMLHttpRequest()
92
+ xhr.open('GET', 'https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.6/dist/chatgpt.min.js')
93
+ xhr.onload = function() {
94
+ if (xhr.status === 200) {
95
+ var chatgptJS = document.createElement('script')
96
+ chatgptJS.textContent = xhr.responseText
97
+ document.head.append(chatgptJS)
98
+ yourCode() // コードを実行する
99
+ }
100
+ }
101
+ xhr.send()
102
+
103
+ function yourCode() {
104
+ // コードはここにあります...
105
+ }
106
+ ```
107
+
108
+ ### <img style="margin: 0 2px -0.065rem 0" height=17 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/starters/media/images/icons/tampermonkey-icon28.png"></picture><img style="margin: 0 2px -0.035rem 1px" height=17.5 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/starters/media/images/icons/violentmonkey-icon100.png"> Greasemonkey:
109
+
110
+ > **ノート** _スターター テンプレートを使用するには: [kudoai/chatgpt.js-greasemonkey-starter](https://github.com/kudoai/chatgpt.js-greasemonkey-starter)_
111
+
112
+ ```js
113
+ ...
114
+ // @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@2.6.6/dist/chatgpt.min.js
115
+ // ==/UserScript==
116
+
117
+ // コードはここにあります...
118
+ ```
119
+
120
+ ### <img style="margin: 0 2px -1px 0" height=16 src="https://www.google.com/chrome/static/images/favicons/apple-icon-60x60.png"> Chrome:
121
+
122
+ > **ノート** _スターター テンプレートを使用するには: [kudoai/chatgpt.js-chrome-starter](https://github.com/kudoai/chatgpt.js-chrome-starter)_
123
+
124
+ Google ではリモート コードが許可されていないため、chatgpt.js をローカルにインポートする必要があります:
125
+
126
+ 1. https://raw.githubusercontent.com/kudoai/chatgpt.js/main/chatgpt.js をサブディレクトリ (この例では `lib`) に保存します
127
+
128
+ 2. ES6 のエクスポート ステートメントを `lib/chatgpt.js` の末尾に追加します
129
+ ```js
130
+ ...
131
+ export { chatgpt }
132
+ ```
133
+
134
+ 3. プロジェクト (V3) の `manifest.json` に、Web アクセス可能なリソースとして `lib/chatgpt.js` を追加します
135
+ ```json
136
+ "web_accessible_resources": [{
137
+ "matches": ["<all_urls>"],
138
+ "resources": ["lib/chatgpt.js"]
139
+ }],
140
+ ```
141
+
142
+ 4. `chatgpt.js` (フォアグラウンド/バックグラウンド同様) を必要とするスクリプトでは、次のようにインポートします:
143
+ ```js
144
+ (async () => {
145
+ const { chatgpt } = await import(chrome.runtime.getURL('lib/chatgpt.js'));
146
+ // コードはここにあります...
147
+ })();
148
+ ```
149
+
150
+ <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
151
+
152
+ <div id="npm">
153
+
154
+ ## 💾 npm 経由でダウンロード:
155
+
156
+ </div>
157
+
158
+ ローカルカスタマイズ用に **chatgpt.js** をダウンロードするには、プロジェクトのルートで次のコマンドを実行します:
159
+
160
+ ```bash
161
+ npm install @kudoai/chatgpt.js
162
+ ```
163
+
164
+ インストール後、`node_modules/@kudoai/chatgpt.js` に移動してライブラリ ソース (`dist/` 内の縮小バージョン) を見つけます。
165
+
166
+ </div>
167
+
168
+ <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
169
+
170
+ <div id="usage">
171
+
172
+ ## 💻 使用法
173
+
174
+ </div>
175
+
176
+ **chatgpt.js** は、超柔軟性を念頭に置いて作成されました。
177
+
178
+ 例えば:
179
+
180
+ ```js
181
+ chatgpt.getLastResponse()
182
+ chatgpt.getLastReply()
183
+ chatgpt.response.getLast()
184
+ chatgpt.get('reply', 'last')
185
+ ```
186
+
187
+ 各呼び出しは同様に最後の応答を取得します。 うまくいくと思うなら、おそらくうまくいきます...だから、それを入力してください! (資料を読む時間が誰にありますか?)
188
+
189
+ そうでない場合は、拡張された [ユーザーガイド](https://github.com/kudoai/chatgpt.js/blob/main/docs/USERGUIDE.md) を確認するか、単に [問題](https://github.com/kudoai/chatgpt.js/issues) または [PR](https://github.com/kudoai/chatgpt.js/pulls) と統合されるので、簡単です!
190
+
191
+ <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
192
+
193
+ <div id="showcase">
194
+
195
+ ## 🤖 chatgpt.js で作成
196
+
197
+ </div>
198
+
199
+ https://github.com/KudoAI/chatgpt.js/assets/10906554/f53c740f-d5e0-49b6-ae02-3b3140b0f8a4
200
+
201
+ #
202
+
203
+ ### <picture><source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/RduASbD.png"><img width=16 src="https://raw.githubusercontent.com/adamlui/chatgpt-addons/main/media/icons/openai-favicon64.png"></picture> [ChatGPT の履歴を削除する](https://autoclearchatgpt.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://awesome.re/mentioned-badge.svg" style="margin:0 0 -2px 5px"></a>
204
+
205
+ > プライバシーを最大限に高めるために、ChatGPT クエリ履歴を自動消去します。
206
+ <br>[インストール](https://github.com/adamlui/autoclear-chatgpt-history#-installation) /
207
+ [お読みください](https://github.com/adamlui/autoclear-chatgpt-history#readme) /
208
+ [議論](https://autoclearchatgpt.com/discuss)
209
+
210
+ ### <img width=16 src="https://i.imgur.com/1yjmK3W.png"> [Automatic ChatGPT DAN](https://github.com/madkarmaa/automatic-chatgpt-dan)
211
+
212
+ > DAN プロンプトを ChatGPT に自動的に送信します。
213
+ <br>[インストール](https://github.com/madkarmaa/automatic-chatgpt-dan#%EF%B8%8F-installation) /
214
+ [お読みください](https://github.com/madkarmaa/automatic-chatgpt-dan#readme) /
215
+ [議論](https://github.com/madkarmaa/automatic-chatgpt-dan/issues)
216
+
217
+ ### <img src="https://media.bravegpt.com/images/icons/bravegpt/icon48.png" width=18> [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>
218
+
219
+ > Brave Search サイドバーに ChatGPT の回答を表示 (GPT-4 を搭載!)
220
+ <br>[インストール](https://github.bravegpt.com/#-installation) /
221
+ [お読みください](https://github.bravegpt.com/#readme) /
222
+ [議論](https://github.bravegpt.com/discussions)
223
+
224
+ ### <picture><source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/RduASbD.png"><img width=16 src="https://raw.githubusercontent.com/adamlui/chatgpt-userscripts/main/media/icons/openai-favicon64.png"></picture> [ChatGPT 自動継続 ⏩](https://chatgptautocontinue.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://awesome.re/mentioned-badge.svg" style="margin:0 0 -3px 3px"></a>
225
+
226
+ > ChatGPTの複数の応答を自動的に継続的に生成し続ける。
227
+ <br>[インストール](https://github.com/adamlui/chatgpt-auto-continue#-installation) /
228
+ [お読みください](https://github.com/adamlui/chatgpt-auto-continue#readme) /
229
+ [議論](https://chatgptautocontinue.com/discuss)
230
+
231
+ ### <picture><source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/RduASbD.png"><img width=16 src="https://raw.githubusercontent.com/adamlui/chatgpt-addons/main/media/icons/openai-favicon64.png"></picture> [ChatGPT 自動更新 ↻](https://chatgptautorefresh.com) <a href="https://github.com/awesome-scripts/awesome-userscripts#chatgpt" target="_blank" rel="noopener"><img src="https://awesome.re/mentioned-badge.svg" style="margin:0 0 -2px 5px"></a>
232
+
233
+ > ChatGPTセッションを最新の状態に保ち、チャット時間制限、ネットワークエラー、Cloudflareチェックを排除します。
234
+ <br>[インストール](https://github.com/adamlui/chatgpt-auto-refresh#-installation) /
235
+ [お読みください](https://github.com/adamlui/chatgpt-auto-refresh#readme) /
236
+ [議論](https://chatgptautorefresh.com/discuss)
237
+
238
+ ### <img src="https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png" width=17> [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>
239
+
240
+ > DuckDuckGo サイドバーに ChatGPT の回答を表示 (GPT-4 を搭載!)
241
+ <br>[インストール](https://github.duckduckgpt.com/#-installation) /
242
+ [お読みください](https://github.duckduckgpt.com/#readme) /
243
+ [議論](https://github.duckduckgpt.com/discussions)
244
+
245
+ ### <picture><source media="(prefers-color-scheme: dark)" srcset="https://media.googlegpt.io/images/icons/googlegpt/white/icon32.png"><img width=17 src="https://media.googlegpt.io/images/icons/googlegpt/black/icon32.png"></picture> [GoogleGPT](https://googlegpt.kudoai.com)
246
+
247
+ > Google Search サイドバーに ChatGPT の回答を表示 (GPT-4 を搭載!)
248
+ <br>[インストール](https://greasyfork.org/scripts/478597-googlegpt) /
249
+ [お読みください](https://github.com/KudoAI/googlegpt#readme) /
250
+ [議論 करना](https://github.com/KudoAI/googlegpt/discussions)
251
+
252
+ <p><br>
253
+
254
+ <a href="https://chatgptinfinity.com" target="_blank" rel="noopener">
255
+ <img width=555 src="https://raw.githubusercontent.com/adamlui/chatgpt-infinity/main/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
256
+ </a>
257
+
258
+ <p><br>
259
+
260
+ <a href="https://chatgptwidescreen.com" target="_blank" rel="noopener">
261
+ <img width=555 src="https://raw.githubusercontent.com/adamlui/chatgpt-widescreen/main/chrome/media/images/tiles/marquee-promo-tile-1400x560.png">
262
+ </a>
263
+
264
+ <p><br>
265
+
266
+ <p id="showcase-cta">
267
+ chatgpt.js で何かを作成して共有したい場合は、<a href="mailto:showcase@chatgptjs.org">showcase@chatgptjs.org</a> にメールするか、<a href="https://github.com/kudoai/chatgpt.js/pulls" target="_blank" rel="noopener">プル リクエスト</a>!
268
+ </p>
269
+
270
+ <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
271
+
272
+ <div id="contributors">
273
+
274
+ ## 🧠 貢献者
275
+
276
+ </div>
277
+
278
+ このライブラリは、次の寄稿者によるコード、翻訳、問題、アイデアのおかげで存在します:
279
+
280
+ <div align="center"><br>
281
+
282
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/10906554?first-contrib=2023.03.15&h=51&w=51&mask=circle&maxage=7d "@adamlui")](https://github.com/adamlui)
283
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/71683364?first-contrib=2023.03.16-get-functions&h=51&w=51&mask=circle&maxage=7d "@mefengl")](https://github.com/mefengl)
284
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/131989355?first-contrib=2023.04.30-doc-translations&h=51&w=51&mask=circle&maxage=7d "@Zin6969")](https://github.com/Zin6969)
285
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/30551844?first-contrib=2023.05.02-getlastresponse-bug-report&h=51&w=51&mask=circle&maxage=7d "@madruga8")](https://github.com/madruga8)
286
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/54934866?first-contrib=2023.05.01-clearchats-discard-fix&h=51&w=51&mask=circle&maxage=7d "@XiaoYingYo")](https://github.com/XiaoYingYo)
287
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/129722778?first-contrib=2023.05.24-css-readability&h=51&w=51&mask=circle&maxage=7d "@AliAlSarre")](https://github.com/AliAlSarre)
288
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/100418457?first-contrib=2023.06.02-send-function-bug-report&h=51&w=51&mask=circle&maxage=7d "@madkarmaa")](https://github.com/madkarmaa)
289
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/1170326?first-contrib=2023.06.10-html-parser-idea&h=51&w=51&mask=circle&maxage=7d "@wamoyo")](https://github.com/wamoyo)
290
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/33952?first-contrib=2023.06.10-html-parser-idea&h=51&w=51&mask=circle&maxage=7d "@meiraleal")](https://github.com/meiraleal)
291
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/22633385?first-contrib=2023.07.11-fix-ja-doc-md&h=51&w=51&mask=circle&maxage=7d "@eltociear")](https://github.com/eltociear)
292
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/72805486?first-contrib=2023.07.14-enhance-ko-docs&h=51&w=51&mask=circle&maxage=7d "@Rojojun")](https://github.com/Rojojun)
293
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/62183023?first-contrib=2023.07.24-fix-hi-doc&h=51&w=51&mask=circle&maxage=7d "@iamnishantgaharwar")](https://github.com/iamnishantgaharwar)
294
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/629429?first-contrib=2023.07.31-homepage-starry-bg&h=51&w=51&mask=circle&maxage=7d "@hakimel")](https://github.com/hakimel)
295
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/73983677?first-contrib=2023.08.23-fix-readme-typos&h=51&w=51&mask=circle&maxage=7d "@omahs")](https://github.com/omahs)
296
+ [![](https://images.weserv.nl/?url=https://i.imgur.com/DQVC7vj.jpg?first-contrib=2023.09.19-add-dmarc-policy&h=51&w=51&mask=circle&maxage=7d "Najam Ul Arfeen")](https://www.linkedin.com/in/najam-ul-arfeen-khan/)
297
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/110587589?first-contrib=2023.10.13-translate-docs-to-nepali&h=51&w=51&mask=circle&maxage=7d "@iambijayd")](https://github.com/iambijayd)
298
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/4698976?first-contrib=2023.10.29-remove-outdated-mv2-preface-from-docs&h=51&w=51&mask=circle&maxage=7d "@abhinavm24")](https://github.com/abhinavm24)
299
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/77867745?first-contrib=2023.11.4-getchatdetails-bug-report&h=51&w=51&mask=circle&maxage=7d "@deyvisml")](https://github.com/deyvisml)
300
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/150537240?first-contrib=2023.11.15-regenerate-btn-changed-bug-email&h=51&w=51&mask=circle&maxage=7d "@philly88r")](https://github.com/philly88r)
301
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/9730392?first-contrib=2023.12.18-get-response-from-dom-request&h=51&w=51&mask=circle&maxage=7d "@thomasgauthier")](https://github.com/thomasgauthier)
302
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/42911524?first-contrib=2024.1.17-add-custom-gpt-support&h=51&w=51&mask=circle&maxage=7d "@pranav-bhatt")](https://github.com/pranav-bhatt)
303
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/111466842?first-contrib=2024.2.15-add-en-gb-locale&h=51&w=51&mask=circle&maxage=7d "@Luwa-Tech")](https://github.com/Luwa-Tech)
304
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/in/29110&h=51&w=51&mask=circle&maxage=7d "Dependabot")](https://github.com/dependabot)
305
+ [![](https://images.weserv.nl/?url=https://i.imgur.com/tNyIPmG.jpg?h=51&w=51&mask=circle&maxage=7d "ChatGPT")](https://chat.openai.com)
306
+ [![](https://images.weserv.nl/?url=https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/icons/poe-icon128.svg?first-contrib=2023.07.27-getandshowreply-method&h=51&w=51&mask=circle&maxage=7d "Poe")](https://poe.com)
307
+ [![](https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/31427850?h=51&w=51&mask=circle&maxage=7d "@ImgBotApp")](https://github.com/ImgBotApp)
308
+
309
+ </div><br>
310
+
311
+ <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
312
+
313
+ <div id="partners">
314
+
315
+ ## 🤝 伙伴
316
+
317
+ </div>
318
+
319
+ **chatgpt.js** の資金の一部は次のとおりです:
320
+
321
+ <div id="partners-collage" align="center">
322
+
323
+ <picture>
324
+ <source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/partners/collage/white.png">
325
+ <img width=888 src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/media/images/logos/partners/collage/black.png">
326
+ </picture>
327
+
328
+ </div>
329
+
330
+ <br>
331
+
332
+ <img height=8px width="100%" src="https://raw.githubusercontent.com/kudoai/chatgpt.js/main/docs/assets/images/aqua-separator.png">
333
+
334
+ <div align="center">
335
+
336
+ **[リリース](https://www.npmjs.com/package/@kudoai/chatgpt.js?activeTab=versions)** /
337
+ [ユーザーガイド](https://github.com/kudoai/chatgpt.js/blob/main/docs/USERGUIDE.md) /
338
+ [議論](https://github.com/kudoai/chatgpt.js/discussions) /
339
+ <a href="#">トップに戻る ↑</a>
340
+
341
+ </div>