Greasy Fork is available in English.

ChatGPT 자동 계속 ⏩

⚡ ChatGPT 응답을 자동으로 계속 생성하세요

스크립트 설치?
개발자의 추천 스크립트

ChatGPT 무한 ∞는 어떤가요?

스크립트 설치
  1. // ==UserScript==
  2. // @name ChatGPT Auto-Continue ⏩
  3. // @name:af ChatGPT Auto-Aangaan ⏩
  4. // @name:am ChatGPT Auto-ተጨባጭ ማሳያ ⏩
  5. // @name:ar ChatGPT الاستمرار التلقائي ⏩
  6. // @name:az ChatGPT Avtomatik Davam et ⏩
  7. // @name:be ChatGPT Аўтаматычнае Працягванне ⏩
  8. // @name:bg ChatGPT Автоматично Продължаване ⏩
  9. // @name:bn ChatGPT স্বয়ংক্রিয় চালিয়ে যাওয়া ⏩
  10. // @name:bo ChatGPT རེད་འཐུམ་བཅོས་པ། ⏩
  11. // @name:bs ChatGPT Automatski Nastavi ⏩
  12. // @name:ca ChatGPT Auto-Continua ⏩
  13. // @name:ceb ChatGPT Auto-Padayon ⏩
  14. // @name:ckb ChatGPT دهستكاری خۆکار ⏩
  15. // @name:cs ChatGPT Automatické Pokračování ⏩
  16. // @name:cy ChatGPT Auto-Parhau ⏩
  17. // @name:da ChatGPT Auto-Fortsæt ⏩
  18. // @name:de ChatGPT Automatisches Fortfahren ⏩
  19. // @name:dv ChatGPT އައިނާދު ހިސާބަތް ⏩
  20. // @name:dz ChatGPT རེད་འཐུམ་གཅིག་ཁྱེར། ⏩
  21. // @name:el ChatGPT Αυτόματη Συνέχιση ⏩
  22. // @name:eo ChatGPT Aŭtomata Daŭrigado ⏩
  23. // @name:es ChatGPT Auto-Continuar ⏩
  24. // @name:et ChatGPT Automaatne Jätkamine ⏩
  25. // @name:eu ChatGPT Auto-Jarraitu ⏩
  26. // @name:fa ChatGPT ادامه خودکار ⏩
  27. // @name:fi ChatGPT Automaattinen Jatkaminen ⏩
  28. // @name:fo ChatGPT Auto-Verða ⏩
  29. // @name:fr ChatGPT Auto-Continuer ⏩
  30. // @name:fr-CA ChatGPT Auto-Continuer ⏩
  31. // @name:gd ChatGPT Auto-Leantainn ⏩
  32. // @name:gl ChatGPT Auto-Continuar ⏩
  33. // @name:gu ChatGPT સ્વચાલિત-ચાલુ રાખો ⏩
  34. // @name:haw ChatGPT Auto-Kōkua ⏩
  35. // @name:he ChatGPT המשך אוטומטי ⏩
  36. // @name:hi ChatGPT स्वचालित-प्रचालित रखें ⏩
  37. // @name:hr ChatGPT Auto-Nastavi ⏩
  38. // @name:ht ChatGPT Otomatik Kontinye ⏩
  39. // @name:hu ChatGPT Automatikus Folytatás ⏩
  40. // @name:hy ChatGPT Ինքնաշխատում Շարունակումը ⏩
  41. // @name:id ChatGPT Lanjut Otomatis ⏩
  42. // @name:is ChatGPT Sjálfvirk Framhald ⏩
  43. // @name:it ChatGPT Auto-Continua ⏩
  44. // @name:ja ChatGPT 自動継続 ⏩
  45. // @name:jv ChatGPT Lanjut Otomatis ⏩
  46. // @name:ka ChatGPT ავტომატური გაგრძელება ⏩
  47. // @name:kab ChatGPT Yemmeslayen Avrid n Tizwaru ⏩
  48. // @name:kk ChatGPT Автоматты Жалғастыру ⏩
  49. // @name:km ChatGPT បន្តទៅមកដល់ដោយស្វ័យប្រវត្តិ ⏩
  50. // @name:kn ChatGPT ಸ್ವಯಂಚಾಲಿತ ಮುಂದುವರಿಕೆ ⏩
  51. // @name:ko ChatGPT 자동 계속 ⏩
  52. // @name:ku ChatGPT Berdewamkirina Auto ⏩
  53. // @name:ky ChatGPT Автоматтык Жалгастыруу ⏩
  54. // @name:la ChatGPT Auto-Continuare ⏩
  55. // @name:lb ChatGPT Auto-Weiderginn ⏩
  56. // @name:lo ChatGPT ດຽວນີ້ບໍ່ຮອດຄວາມເລີຍ ⏩
  57. // @name:lt ChatGPT Automatinis Tęsti ⏩
  58. // @name:lv ChatGPT Automātiska Turpināšana ⏩
  59. // @name:mg ChatGPT Miverina Automatically ⏩
  60. // @name:mi ChatGPT Whakareri Tūmau ⏩
  61. // @name:mk ChatGPT Автоматско Продолжување ⏩
  62. // @name:ml ChatGPT ഓട്ടോ-തുടരുക ⏩
  63. // @name:mn ChatGPT Автомат Үргэлжлүүлэх ⏩
  64. // @name:ms ChatGPT Auto-Sambung ⏩
  65. // @name:mt ChatGPT Awto-Kontinwa ⏩
  66. // @name:my ChatGPT အလိုအလျောက်-ဆက်လက်လုပ်ကိုင်တယ် ⏩
  67. // @name:ne ChatGPT स्वचालित-तत्परता ⏩
  68. // @name:nl ChatGPT Auto-Doorgaan ⏩
  69. // @name:no ChatGPT Auto-Fortsette ⏩
  70. // @name:ny ChatGPT Auto-Endeleza ⏩
  71. // @name:pa ChatGPT ਸਵੈ-ਚਲੋ ⏩
  72. // @name:pap ChatGPT Sigui Automátikamente ⏩
  73. // @name:pl ChatGPT Automatyczne Kontynuowanie ⏩
  74. // @name:ps ChatGPT خپلکار تسلیم ⏩
  75. // @name:pt ChatGPT Auto-Continuar ⏩
  76. // @name:ro ChatGPT Auto-Continuare ⏩
  77. // @name:ru ChatGPT Авто-Продолжение ⏩
  78. // @name:rw ChatGPT Kugerageza Auto ⏩
  79. // @name:si ChatGPT ස්වයංක්‍රීය-දියවැඩියාව ⏩
  80. // @name:sk ChatGPT Auto-Pokračovať ⏩
  81. // @name:sl ChatGPT Samodejno Nadaljuj ⏩
  82. // @name:sm ChatGPT Aunoa'i-Taulaga ⏩
  83. // @name:so ChatGPT Isdhaaf Caruureed ⏩
  84. // @name:sr ChatGPT Аутоматски Настави ⏩
  85. // @name:sv ChatGPT Auto-Fortsätt ⏩
  86. // @name:sw ChatGPT Kusonga Kiotomatiki ⏩
  87. // @name:ta ChatGPT தானியங்கி தொடர்ந்து செல்லுங்கள் ⏩
  88. // @name:te ChatGPT ఆటో-కంటిన్యూ ⏩
  89. // @name:tg ChatGPT Давомоти автоматӣ ⏩
  90. // @name:th ChatGPT ดำเนินการต่ออย่างอัตโนมัติ ⏩
  91. // @name:ti ChatGPT ኣበይቲ ድሕሪ ተረኺቡ ⏩
  92. // @name:tk ChatGPT Avtomatik Dowam etmek ⏩
  93. // @name:to ChatGPT Tonu-'Aofa ⏩
  94. // @name:tpi ChatGPT Otomatik Kontinyu ⏩
  95. // @name:tr ChatGPT Otomatik Devam ⏩
  96. // @name:uk ChatGPT Автоматичне Продовження ⏩
  97. // @name:ur ChatGPT خودکار جاری رکھیں ⏩
  98. // @name:uz ChatGPT Avtomatik Davom ⏩
  99. // @name:vi ChatGPT Tự Động Tiếp Tục ⏩
  100. // @name:xh ChatGPT Ukuphela Okuqukethweyo ⏩
  101. // @name:yi ChatGPT אַווטאָ-קאַנטיניוירן ⏩
  102. // @name:zh ChatGPT 自动继续 ⏩
  103. // @name:zh-CN ChatGPT 自动继续 ⏩
  104. // @name:zh-HK ChatGPT 自動繼續 ⏩
  105. // @name:zh-SG ChatGPT 自动继续 ⏩
  106. // @name:zh-TW ChatGPT 自動繼續 ⏩
  107. // @name:zu ChatGPT Ngokugcwele Ukuphela ⏩
  108. // @description ⚡ Automatically continue generating multiple ChatGPT responses
  109. // @description:af ⚡ Outomaties voortgaan met die opwekking van meerdere ChatGPT-antwoorde
  110. // @description:am ⚡ እንዴትስ እንዲደርስ ያለብሳል የተወሰነ ምርጫዎች ለChatGPT
  111. // @description:ar ⚡ استمر في توليد استجابات متعددة لـ ChatGPT تلقائيًا
  112. // @description:az ⚡ ChatGPT cavablarını avtomatik olaraq çoxaldmağa davam edin
  113. // @description:be ⚡ Аўтаматычна працягвайце генерацыю некалькіх адказаў ChatGPT
  114. // @description:bem ⚡ Tontonkanyani kupitika kuwambo wanthu wokha-wokha wa ChatGPT
  115. // @description:bg ⚡ Продължете автоматично да генерирате множество отговори от ChatGPT
  116. // @description:bn ⚡ ChatGPT প্রতিক্রিয়া উত্পাদন অটোমেটিকভাবে চালিয়ে যান
  117. // @description:bo ⚡ ཡིག་ཆ་འཚོལ་ལག་སྤྱོད་རོགས་བྱུང་གནང་ནུས་པའི་ChatGPTལྕེབ་གསོར་བརྡ་འཕྲོ་ཤོག་ནང་བསྐྱོད་པ།
  118. // @description:bs ⚡ Nastavite automatski generirati više odgovora ChatGPT-a
  119. // @description:ca ⚡ Continua generant automàticament múltiples respostes de ChatGPT
  120. // @description:ceb ⚡ Magpadayon sa pag-generate og daghang mga Tugbang sa ChatGPT nga Otomatik
  121. // @description:ckb ⚡ بەردەوامبوون بە سەرجەم وەڵامەکانی ChatGPT
  122. // @description:cs ⚡ Automaticky pokračujte v generování více odpovědí ChatGPT
  123. // @description:cy ⚡ Parhewch i gynhyrchu nifer o ymatebion ChatGPT yn awtomatig
  124. // @description:da ⚡ Forsæt automatisk med at generere flere ChatGPT-responser
  125. // @description:de ⚡ Generieren Sie automatisch mehrere ChatGPT-Antworten weiterhin
  126. // @description:dv ⚡ އައުތީ ހުންނަވާ މެއިންމު ChatGPT އަޕް ކޮންޓެއް ބަދަލުކުރުމުގެ ރަނގަޅަ
  127. // @description:dz ⚡ འཕྲོས་མེད་པར་དུག་ཞིབ་པ་བསྐུགས་པར་ཡོད་མི་ChatGPTལྕེབ་གསོར་བརྡ་འཕྲོ་ཤོག་ནང་བསྐྱོད་པ།
  128. // @description:el ⚡ Συνεχίστε αυτόματα να δημιουργείτε πολλαπλές απαντήσεις ChatGPT
  129. // @description:eo ⚡ Daŭrigu aŭtomate generi plurajn respondojn ChatGPT
  130. // @description:es ⚡ Continúa generando automáticamente múltiples respuestas de ChatGPT
  131. // @description:et ⚡ Jätkake automaatselt mitme ChatGPT-vastuse genereerimist
  132. // @description:eu ⚡ Jarraitu automatikoki ChatGPT erantzun anitzak sortzen
  133. // @description:fa ⚡ ادامه تولید خودکار چندین پاسخ ChatGPT
  134. // @description:fi ⚡ Jatka automaattisesti useiden ChatGPT-vastausten generointia
  135. // @description:fo ⚡ Halda áfram við at framleiða fleiri ChatGPT svar
  136. // @description:fr ⚡ Continuez automatiquement à générer plusieurs réponses ChatGPT
  137. // @description:fr-CA ⚡ Continuez automatiquement à générer plusieurs réponses ChatGPT
  138. // @description:gd ⚡ Lean air adhart a' gabhail air adhart na freagairtean ChatGPT le bhith a' riochdachadh nas mòr
  139. // @description:gl ⚡ Continúa xerando automaticamente múltiples respostas de ChatGPT
  140. // @description:gu ⚡ આપોઆપ વધતા ચાર્જો આપતી કરો ChatGPT પ્રતિભાઓ
  141. // @description:haw ⚡ E mālama i ka hōʻoluʻolu ʻana i nā pane ʻelua a i ʻole iā ChatGPT
  142. // @description:he ⚡ המשך ליצור באופן אוטומטי מספר תגובות ChatGPT
  143. // @description:hi ⚡ स्वचालित रूप से बहुत सारे ChatGPT प्रतिक्रियाएँ उत्पन्न करना जारी रखें
  144. // @description:hr ⚡ Automatski nastavite generirati više ChatGPT odgovora
  145. // @description:ht ⚡ Kontinye otomatikman kontinye jenerasyon plizyè repons ChatGPT
  146. // @description:hu ⚡ Folytassa automatikusan több ChatGPT-válasz generálását
  147. // @description:hy ⚡ Շարունակեք ավտոմատ ստեղծել մեկից ավելի ChatGPT պատասխաններ
  148. // @description:id ⚡ Lanjutkan secara otomatis menghasilkan beberapa respons ChatGPT
  149. // @description:is ⚡ Halda áfram að framleiða fjölda ChatGPT-svara sjálfkrafa
  150. // @description:it ⚡ Continua automaticamente a generare più risposte di ChatGPT
  151. // @description:ja ⚡ ChatGPTの複数の応答を自動的に継続的に生成し続ける
  152. // @description:jv ⚡ Terus ngasilake balasan multipel ChatGPT kasebut otomatis
  153. // @description:ka ⚡ გაგრძელეთ ავტომატურად გენერირებას რამდენიმე ChatGPT პასუხის
  154. // @description:kab ⚡ Sekcem seg yilmeẓyen deg usefru n tufat ChatGPT
  155. // @description:kk ⚡ ChatGPT-ның бірнеше жауаптарын автоматты түрде жалғастыруға жалғастырыңыз
  156. // @description:km ⚡ បន្តទៀតហើយបន្តការបង្កើតចម្លើយជាច្រើននៃ ChatGPT ដោយស្វ័យប្រវត្តិ
  157. // @description:kn ⚡ ಸ್ವಯಂಚಾಲಿತವಾಗಿ ChatGPT ಪ್ರತಿಕ್ರಿಯೆಗಳನ್ನು ಮುಂದುವರಿಸಿ
  158. // @description:ko ⚡ ChatGPT 응답을 자동으로 계속 생성하세요
  159. // @description:ku ⚡ Parvekirina otomatîk a berdevkêya çêkirina gelek bersivên ChatGPT
  160. // @description:ky ⚡ Тууралуу даярдалган көптөгөн ChatGPT каражаттарын жалгастыр
  161. // @description:la ⚡ Automatica continua generatio plurium responsionum ChatGPT
  162. // @description:lb ⚡ Fuert mat der Automatiséierung vum generéieren vun méi ChatGPT Äntwerten
  163. // @description:lo ⚡ ຕະຫຼາດໃນການຜະລິດທັງເຫລົ່າຂອງການສ້າງຄໍາອະທິບາຍຂອງ ChatGPT
  164. // @description:lt ⚡ Tęskite automatiškai generuoti daugelį ChatGPT atsakymų
  165. // @description:lv ⚡ Turpiniet automātiski ģenerēt vairākas ChatGPT atbildes
  166. // @description:mg ⚡ Mihatra ny famokarana an-taonana momba ny fijery maromaro amin'ny ChatGPT
  167. // @description:mi ⚡ Whakapau tonu i te whakaputa i ngā whakahoki ā-ipurangi maha mō te ChatGPT
  168. // @description:mk ⚡ Настани се автоматски да генерираш повеќе одговори на ChatGPT
  169. // @description:ml ⚡ ChatGPT പ്രതികരണങ്ങൾക്ക് സ്വയംഭാവതന്നെ തുടങ്ങുക
  170. // @description:mn ⚡ ChatGPT хариултуудыг автоматаар үүсгэнэ үү
  171. // @description:ms ⚡ Terus menghasilkan beberapa respons ChatGPT secara automatik
  172. // @description:mt ⚡ Kompluta b'mod awtomatiku jipproduċi iktar risposti tal-ChatGPT
  173. // @description:my ⚡ ချောတောင်းကိုလည်း ChatGPT အတွက် အလိုအလျောက် ထပ်တိုးထားသည်ကိုနှိပ်ပါ
  174. // @description:ne ⚡ क्याटजीपीटी प्रतिक्रियाहरूलाई स्वतः सार्नुहोस्
  175. // @description:nl ⚡ Ga automatisch door met het genereren van meerdere ChatGPT-reacties
  176. // @description:no ⚡ Fortsett automatisk med å generere flere ChatGPT-responser
  177. // @description:ny ⚡ Kwezalitsa mabuku achinsinsi amakono apamwamba a ChatGPT
  178. // @description:pa ⚡ ਆਪਣੇ ਆਪ ਕਈ ChatGPT ਜਵਾਬਾਂ ਨੂੰ ਜਾਰੀ ਰੱਖਣ ਦੇ ਨਾਲ ਜਾਰੀ ਰੱਖੋ
  179. // @description:pap ⚡ Kontinua generando automaticamente varios respondenan di ChatGPT
  180. // @description:pl ⚡ Kontynuuj automatyczne generowanie wielu odpowiedzi ChatGPT
  181. // @description:ps ⚡ په خپله خوښه خپور شه کړه چې د ChatGPT پاسخونه وویشتل
  182. // @description:pt ⚡ Continue gerando automaticamente várias respostas do ChatGPT
  183. // @description:pt-BR ⚡ Continue gerando automaticamente várias respostas do ChatGPT
  184. // @description:rn ⚡ Komeza automatik kugenera ibyanditswe byinshi bya ChatGPT
  185. // @description:ro ⚡ Continuați să generați automat mai multe răspunsuri ChatGPT
  186. // @description:ru ⚡ Продолжайте автоматически генерировать несколько ответов ChatGPT
  187. // @description:rw ⚡ Angana gusuzumira kongera amakuru adahindurwa ya ChatGPT
  188. // @description:sg ⚡ Kwâandâ mbele mbanzi mêlêba mêvâmba ya tâ ChatGPT
  189. // @description:si ⚡ ChatGPT හි බහුතරක් ස්වයංක්රීයව පවතී
  190. // @description:sk ⚡ Automaticky pokračujte v generovaní viacerých odpovedí ChatGPT
  191. // @description:sl ⚡ Samodejno nadaljujte z generiranjem več odgovorov ChatGPT
  192. // @description:sm ⚡ Alofa faauaogaina ona faaaogāina ni tali i le mafaufau ChatGPT
  193. // @description:sn ⚡ Enda kusvika pachigadzirwa chekugadzirisa vashandisi vairambidzwi vechi ChatGPT
  194. // @description:so ⚡ Sii wadnaansho badan oo ChatGPT ka heli
  195. // @description:sr ⚡ Настави аутоматски да генеришеш више ChatGPT одговора
  196. // @description:sv ⚡ Fortsätt att automatiskt generera flera ChatGPT-svar
  197. // @description:sw ⚡ Endelea kuzalisha majibu mengi ya ChatGPT kiotomatiki
  198. // @description:ta ⚡ தானியங்கி மீண்டும் பல விளக்கங்களை உருவாக்கத் தொடர்ந்துவிடுங்கள் ChatGPT
  199. // @description:te ⚡ ఆటోమేటిక్గా మరియు మరిన్ని ChatGPT సమాధానాలను రచించండి
  200. // @description:tg ⚡ Идомаи автоматӣ барои иҷод кардани чанд ҷавоби ChatGPT
  201. // @description:th ⚡ ดำเนินการสร้างคำตอบหลาย ๆ ของ ChatGPT อัตโนมัติ
  202. // @description:ti ⚡ ደቂቃዎት የሚጠፋ ኮድ ብቻ በኮስታኒክስ በሚገባ ጥሩ ጥያቄዎች ይሰጣል
  203. // @description:tk ⚡ Tölegiňizde ChatGPT-e hasapla otomatik toplum
  204. // @description:tn ⚡ Koisa ha maele a ChatGPT ho ngola ho tlaleletsa
  205. // @description:to ⚡ Tonu ki hono fakahoko ki he fakafofonga ha nonga ai he ChatGPT
  206. // @description:tpi ⚡ Kontinyu genaratim planti respons bilong ChatGPT bi autometik
  207. // @description:tr ⚡ Otomatik olarak çoklu ChatGPT yanıtları üretmeye devam edin
  208. // @description:uk ⚡ Продовжуйте автоматично генерувати багато відповідей ChatGPT
  209. // @description:ur ⚡ ChatGPT جو جوابات خودکار طور پر تیار کرنا جاری رکھیں
  210. // @description:uz ⚡ Ko'plab ChatGPT javoblarni avtomatik ravishda yaratishni davom ettirish
  211. // @description:vi ⚡ Tiếp tục tạo ra nhiều câu trả lời ChatGPT một cách tự động
  212. // @description:xh ⚡ Qhubeka ukuqhuba okuqukethweyo lwezibalo eziningi zikaChatGPT
  213. // @description:yi ⚡ פֿאָרטזעצן ווײַטער גענערירן מיינערע אַנטוואָרטן פֿון ChatGPT אַװטאָמאַטיש
  214. // @description:zh ⚡ 自动继续生成多个 ChatGPT 响应
  215. // @description:zh-CN ⚡ 自动继续生成多个 ChatGPT 响应
  216. // @description:zh-HK ⚡ 自動繼續生成多個 ChatGPT 響應
  217. // @description:zh-SG ⚡ 自动继续生成多个 ChatGPT 响应
  218. // @description:zh-TW ⚡ 自動繼續生成多個 ChatGPT 響應
  219. // @description:zu ⚡ Terus menghasilkan imibuzo eminingi ye-ChatGPT ngokwesizulu
  220. // @author Adam Lui
  221. // @namespace https://github.com/adamlui
  222. // @version 2025.1.12.1
  223. // @license MIT
  224. // @icon https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon48.png?v=8b39fb4
  225. // @icon64 https://assets.chatgptautocontinue.com/images/icons/continue-symbol/circled/with-robot/icon64.png?v=8b39fb4
  226. // @match *://chatgpt.com/*
  227. // @match *://chat.openai.com/*
  228. // @connect cdn.jsdelivr.net
  229. // @connect update.greasyfork.org
  230. // @require https://cdn.jsdelivr.net/npm/@kudoai/chatgpt.js@3.5.0/dist/chatgpt.min.js#sha256-+C0x4BOFQc38aZB3pvUC2THu+ZSvuCxRphGdtRLjCDg=
  231. // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@c27aa92bb83e678f2664a06c33fbe683e9fcce62/chromium/extension/components/modals.js#sha256-hAdfzVJT0hvXx8T+2/5rbRt73/qgFLMl0P7AQx/ftsQ=
  232. // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@f957abad33bb6639933256808b81aa041b160988/chromium/extension/lib/dom.js#sha256-/QaqzuGGC7PrzjYnXtYh411rJJOp27jWLA4ataKaWWY=
  233. // @require https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@7623f9ea86b5aaf7fee4adc56b0464a815725c19/chromium/extension/lib/settings.js#sha256-+1SzWklvhvhJPIE8vxmP6hgWBlxFS6st8SeSjC/Cvgg=
  234. // @resource brsCSS https://assets.aiwebextensions.com/styles/rising-stars/dist/black.min.css?v=3289404#sha256-CTj6Ndngq+TsPlNpQ6Ej39PQKSDpmxyKUFohhc91ruQ=
  235. // @resource wrsCSS https://assets.aiwebextensions.com/styles/rising-stars/dist/white.min.css?v=3289404#sha256-tOOIvIe6O5/x2A5E7s9kP4+zw0d4EEDfRgXQLq2KwLs=
  236. // @grant GM_setValue
  237. // @grant GM_getValue
  238. // @grant GM_registerMenuCommand
  239. // @grant GM_unregisterMenuCommand
  240. // @grant GM_getResourceText
  241. // @grant GM_xmlhttpRequest
  242. // @grant GM.xmlHttpRequest
  243. // @noframes
  244. // @homepageURL https://www.chatgptautocontinue.com
  245. // @supportURL https://support.chatgptautocontinue.com
  246. // @contributionURL https://github.com/sponsors/adamlui
  247. // ==/UserScript==
  248.  
  249. // Documentation: https://docs.chatgptautocontinue.com
  250. // NOTE: This script relies on the powerful chatgpt.js library @ https://chatgpt.js.org
  251. // © 2023–2025 KudoAI & contributors under the MIT license.
  252.  
  253. (async () => {
  254.  
  255. // Init ENV context
  256. const env = {
  257. browser: {
  258. language: chatgpt.getUserLanguage(), isFF: chatgpt.browser.isFirefox(), isMobile: chatgpt.browser.isMobile()
  259. },
  260. scriptManager: {
  261. name: (() => { try { return GM_info.scriptHandler } catch (err) { return 'unknown' }})(),
  262. version: (() => { try { return GM_info.version } catch (err) { return 'unknown' }})()
  263. },
  264. ui: { scheme: getScheme() }
  265. }
  266. env.browser.isPortrait = env.browser.isMobile && (window.innerWidth < window.innerHeight)
  267. env.scriptManager.supportsTooltips = env.scriptManager.name == 'Tampermonkey'
  268. && parseInt(env.scriptManager.version.split('.')[0]) >= 5
  269. const xhr = typeof GM != 'undefined' && GM.xmlHttpRequest || GM_xmlhttpRequest
  270.  
  271. // Init APP data
  272. const app = {
  273. version: GM_info.script.version, configKeyPrefix: 'chatGPTautoContinue',
  274. chatgptJSver: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1], urls: {},
  275. latestResourceCommitHash: 'e41e388' // for cached app.json + messages.json
  276. }
  277. app.urls.resourceHost = `https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-continue@${app.latestResourceCommitHash}`
  278. const remoteAppData = await new Promise(resolve => xhr({
  279. method: 'GET', url: `${app.urls.resourceHost}/app.json`,
  280. onload: resp => resolve(JSON.parse(resp.responseText))
  281. }))
  282. Object.assign(app, { ...remoteAppData, urls: { ...app.urls, ...remoteAppData.urls }})
  283. app.urls.update = app.urls.greasyFork.replace('https://', 'https://update.')
  284. .replace(/(\d+)-?([a-z-]*)$/i, (_, id, name) => `${id}/${ name || 'script' }.meta.js`)
  285. app.msgs = {
  286. appName: app.name,
  287. appAuthor: app.author.name,
  288. appDesc: 'Automatically continue generating multiple ChatGPT responses',
  289. menuLabel_modeNotifs: 'Mode Notifications',
  290. menuLabel_about: 'About',
  291. menuLabel_donate: 'Please send a donation',
  292. menuLabel_disabled: 'Disabled (extension installed)',
  293. about_author: 'Author',
  294. about_and: '&',
  295. about_contributors: 'contributors',
  296. about_version: 'Version',
  297. about_poweredBy: 'Powered by',
  298. about_openSourceCode: 'Open source code',
  299. mode_autoContinue: 'Auto-Continue',
  300. helptip_modeNotifs: 'Show notifications when toggling modes/settings',
  301. alert_updateAvail: 'Update available',
  302. alert_newerVer: 'An update to',
  303. alert_isAvail: 'is available',
  304. alert_upToDate: 'Up-to-date',
  305. alert_isUpToDate: 'is up-to-date',
  306. alert_showYourSupport: 'Show your support',
  307. alert_isOSS: 'is open-source software built & maintained for free through 100% volunteer efforts',
  308. alert_despiteAffliction: 'Despite being severely afflicted by',
  309. alert_longCOVID: 'long COVID',
  310. alert_since2020: 'since 2020',
  311. alert_byDonatingResults: 'by donating, you help me to continue improving, fixing bugs, adding new features, and making the software even better',
  312. alert_yourContrib: 'Your contribution',
  313. alert_noMatterSize: 'no matter the size',
  314. alert_directlySupports: 'directly supports my unpaid efforts to ensure this project remains free and open for all to use',
  315. alert_tyForSupport: 'Thank you for your support',
  316. notif_chatAutoContinued: 'Chat Auto-Continued',
  317. btnLabel_moreAIextensions: 'More AI Extensions',
  318. btnLabel_rateUs: 'Rate Us',
  319. btnLabel_getSupport: 'Get Support',
  320. btnLabel_checkForUpdates: 'Check for Updates',
  321. btnLabel_update: 'Update',
  322. btnLabel_dismiss: 'Dismiss',
  323. link_viewChanges: 'View changes',
  324. state_on: 'on',
  325. state_off: 'off'
  326. }
  327.  
  328. // LOCALIZE app.msgs for non-English users
  329. if (!env.browser.language.startsWith('en')) {
  330. const localizedMsgs = await new Promise(resolve => {
  331. const msgHostDir = app.urls.resourceHost + '/chromium/extension/_locales/',
  332. msgLocaleDir = ( env.browser.language ? env.browser.language.replace('-', '_') : 'en' ) + '/'
  333. let msgHref = msgHostDir + msgLocaleDir + 'messages.json', msgXHRtries = 0
  334. function fetchMsgs() { xhr({ method: 'GET', url: msgHref, onload: handleMsgs })}
  335. function handleMsgs(resp) {
  336. try { // to return localized messages.json
  337. const msgs = JSON.parse(resp.responseText), flatMsgs = {}
  338. for (const key in msgs) // remove need to ref nested keys
  339. if (typeof msgs[key] == 'object' && 'message' in msgs[key])
  340. flatMsgs[key] = msgs[key].message
  341. resolve(flatMsgs)
  342. } catch (err) { // if bad response
  343. msgXHRtries++ ; if (msgXHRtries == 3) return resolve({}) // try original/region-stripped/EN only
  344. msgHref = env.browser.language.includes('-') && msgXHRtries == 1 ? // if regional lang on 1st try...
  345. msgHref.replace(/([^_]+_[^_]+)_[^/]*(\/.*)/, '$1$2') // ...strip region before retrying
  346. : ( msgHostDir + 'en/messages.json' ) // else use default English messages
  347. fetchMsgs()
  348. }
  349. }
  350. fetchMsgs()
  351. })
  352. Object.assign(app.msgs, localizedMsgs)
  353. }
  354.  
  355. // Export DEPENDENCIES to imported resources
  356. dom.imports.import({ env }) // for env.ui.scheme
  357. modals.imports.import({ app, env, updateCheck }) // for app data + env.ui.scheme + modals.about
  358. settings.imports.import({ app }) // for app.msgs + app.configKeyPrefix refs
  359.  
  360. // Init SETTINGS
  361. settings.load(Object.keys(settings.controls))
  362.  
  363. // Define MENU functions
  364.  
  365. const menu = {
  366. ids: [], state: {
  367. symbols: ['❌', '✔️'], separator: env.scriptManager.name == 'Tampermonkey' ? ' — ' : ': ',
  368. words: [app.msgs.state_off.toUpperCase(), app.msgs.state_on.toUpperCase()]
  369. },
  370.  
  371. register() {
  372.  
  373. // Show "Disabled (extension installed)"
  374. if (env.extensionInstalled)
  375. GM_registerMenuCommand(`${menu.state.symbols[0]} ${app.msgs.menuLabel_disabled}`,
  376. () => modals.open('about'), env.scriptManager.supportsTooltips ? { title: ' ' } : undefined )
  377.  
  378. // ...or add settings toggles
  379. else Object.keys(settings.controls).forEach(key => {
  380. const settingIsEnabled = config[key] ^ /disabled|hidden/i.test(key)
  381. const menuLabel = `${ settings.controls[key].symbol || menu.state.symbols[+settingIsEnabled] } `
  382. + settings.controls[key].label
  383. + menu.state.separator + menu.state.words[+settingIsEnabled]
  384. menu.ids.push(GM_registerMenuCommand(menuLabel, () => {
  385. settings.save(key, !config[key]) ; syncConfigToUI({ updatedKey: key })
  386. notify(`${settings.controls[key].label}: ${
  387. menu.state.words[+(/disabled|hidden/i.test(key) ^ config[key])]}`)
  388. }, env.scriptManager.supportsTooltips ? { title: settings.controls[key].helptip || ' ' } : undefined))
  389. });
  390.  
  391. // Add About/Donate entries
  392. ['about', 'donate'].forEach(entryType => {
  393. if (entryType === 'donate' && env.extensionInstalled) return
  394. menu.ids.push(GM_registerMenuCommand(
  395. `${ entryType == 'about' ? '💡' : '💖' }`
  396. + ` ${app.msgs[`menuLabel_${entryType}`]} ${ entryType == 'about' ? app.msgs.appName : '' }`,
  397. () => modals.open(entryType), env.scriptManager.supportsTooltips ? { title: ' ' } : undefined
  398. ))
  399. })
  400. },
  401.  
  402. refresh() {
  403. if (typeof GM_unregisterMenuCommand == 'undefined') return
  404. for (const id of menu.ids) { GM_unregisterMenuCommand(id) } menu.register()
  405. }
  406. }
  407.  
  408. function updateCheck() {
  409. xhr({
  410. method: 'GET', url: app.urls.update + '?t=' + Date.now(),
  411. headers: { 'Cache-Control': 'no-cache' },
  412. onload: resp => {
  413.  
  414. // Compare versions, alert if update found
  415. app.latestVer = /@version +(.*)/.exec(resp.responseText)?.[1]
  416. if (app.latestVer) for (let i = 0 ; i < 4 ; i++) { // loop thru subver's
  417. const currentSubVer = parseInt(app.version.split('.')[i], 10) || 0,
  418. latestSubVer = parseInt(app.latestVer.split('.')[i], 10) || 0
  419. if (currentSubVer > latestSubVer) break // out of comparison since not outdated
  420. else if (latestSubVer > currentSubVer) // if outdated
  421. return modals.open('update', 'available')
  422. }
  423.  
  424. // Alert to no update found, nav back to About
  425. modals.open('update', 'unavailable')
  426. }})
  427. }
  428.  
  429. // Define FEEDBACK functions
  430.  
  431. function notify(msg, pos = '', notifDuration = '', shadow = '') {
  432. if (config.notifDisabled && !msg.includes(app.msgs.menuLabel_modeNotifs)) return
  433.  
  434. // Strip state word to append colored one later
  435. const foundState = menu.state.words.find(word => msg.includes(word))
  436. if (foundState) msg = msg.replace(foundState, '')
  437.  
  438. // Show notification
  439. chatgpt.notify(`${app.symbol} ${msg}`, pos, notifDuration, shadow || env.ui.scheme == 'dark' ? '' : 'shadow')
  440. const notif = document.querySelector('.chatgpt-notif:last-child')
  441.  
  442. // Append styled state word
  443. if (foundState) {
  444. const styledStateSpan = dom.create.elem('span')
  445. styledStateSpan.style.cssText = `color: ${
  446. foundState == menu.state.words[0] ? '#ef4848 ; text-shadow: rgba(255,169,225,0.44) 2px 1px 5px'
  447. : '#5cef48 ; text-shadow: rgba(255,250,169,0.38) 2px 1px 5px' }`
  448. styledStateSpan.append(foundState) ; notif.append(styledStateSpan)
  449. }
  450. }
  451.  
  452. // Define UI functions
  453.  
  454. function syncConfigToUI() { menu.refresh() /* prefixes/suffixes */ }
  455.  
  456. function getScheme() {
  457. return document.documentElement.className
  458. || (window.matchMedia?.('(prefers-color-scheme: dark)')?.matches ? 'dark' : 'light')
  459. }
  460.  
  461. function checkContinueBtn() {
  462. const continueBtn = chatgpt.getContinueBtn()
  463. if (continueBtn) {
  464. continueBtn.click()
  465. notify(app.msgs.notif_chatAutoContinued, 'bottom-right')
  466. try { chatgpt.scrollToBottom() } catch(err) {}
  467. setTimeout(checkContinueBtn, 5000)
  468. } else setTimeout(checkContinueBtn, 500)
  469. }
  470.  
  471. // Run MAIN routine
  472.  
  473. env.extensionInstalled = await Promise.race([
  474. new Promise(resolve => {
  475. (function checkExtensionInstalled() {
  476. if (document.documentElement.hasAttribute('chatgpt-auto-continue-extension-installed')) resolve(true)
  477. else setTimeout(checkExtensionInstalled, 200)
  478. })()
  479. }), new Promise(resolve => setTimeout(() => resolve(false), 1500))])
  480.  
  481. menu.register() ; if (env.extensionInstalled) return
  482.  
  483. // Add STARS styles
  484. ['brs', 'wrs'].forEach(cssType => document.head.append(dom.create.style(GM_getResourceText(`${cssType}CSS`))))
  485.  
  486. // Observe DOM for need to continue generating response
  487. checkContinueBtn()
  488.  
  489. // NOTIFY of status on load
  490. notify(`${app.msgs.mode_autoContinue}: ${app.msgs.state_on.toUpperCase()}`)
  491.  
  492. // Monitor SCHEME PREF changes to update sidebar toggle + modal colors
  493. new MutationObserver(handleSchemePrefChange).observe( // for site scheme pref changes
  494. document.documentElement, { attributes: true, attributeFilter: ['class'] })
  495. window.matchMedia('(prefers-color-scheme: dark)').addEventListener( // for browser/system scheme pref changes
  496. 'change', () => requestAnimationFrame(handleSchemePrefChange))
  497. function handleSchemePrefChange() {
  498. const displayedScheme = getScheme()
  499. if (env.ui.scheme != displayedScheme) { env.ui.scheme = displayedScheme ; modals.stylize() }
  500. }
  501.  
  502. })()