【元壤教育AI提示工程系列】『KeepChatGPT教程』轻松解决ChatGPT网络报错,畅享无忧沟通!

元壤教育:中国AIGC提示工程培训的佼佼者。
关注「元壤教育」公众号,系统学习AIGC系列课程,提升您10倍生产力。

装插件前是这样的

我们使用ChatGPT时,总是因为网络魔法不力的原因导致页面总是报错,如下图所示:


装完插件后是这样的

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-v8QeslNn-1682088798331)(https://file.liyuechun.com/%E6%8F%92%E4%BB%B6.gif)]

KeepChatGPT 简介

  • 喜欢这个插件的小伙伴,可以给我的GITHUB项目 KeepChatGPT 点个STAR支持一下。
  • 这是一款ChatGPT畅聊插件,让你不再遇到网络报错,不再需要刷新网页
  • 解决了报错:NetworkError when attempting to fetch resource.
  • 解决了报错:Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
  • 解决了报错:Conversation not found
  • 自由取消后台监管审计:This content may violate our content policy. If you believe this to be in error, please submit your feedback — your input will aid our research in this area.
  • 解决被频繁地打断交流
  • 解决频繁地刷新网页
  • 支持多国语言
  • 解决用户手误复制用户头像里的用户名的问题
  • 兼容移动端
序号使用KeepChatGPT插件以后再也不会出现以下场面
1
2
3
4

对比

实验环境现象步骤1步骤2步骤3步骤4步骤5步骤6步骤7步骤8步骤9步骤10步骤11步骤12步骤13
不使用KeepChatGPT插件聊天频频红框警告NetworkError,每隔十几分钟出现一次,必须刷新网页下发指令等待结果遇到网络报错尝试点击重新下发再次遇到网络报错复制刚刚的指令刷新页面等待网页加载完打开刚刚的聊天会话粘贴刚刚的指令再次下发指令再次等待结果得到结果
使用KeepChatGPT插件再也不会出现网络报错,再也不用刷新网页下发指令等待结果得到结果
  • 通过对比可知,足足省去10个多余的步骤,顺畅地聊天

展示

  • 享受免费的KeepChatGPT畅聊用户专属金标,它代表着你的AI体验发生了骤变:

  • 喜欢暗调的朋友可以鼠标移到专属金标选择主题修改为专属蓝标

  • 移动端:

原理

  • 利用Headless绕过打开页面时的Cloudflare爬虫验证
  • 利用non-click绕过不定时的Cloudflare机器人验证
  • 保持流量最小化原则
  • 鼠标移到专属金标选择显示调试可以查阅绕过过程

安装步骤

一、先安装Tampermonkey插件

Chrome 安装Tampermonkey浏览器插件。

step one:

step two:


**step four:**Tampermonkey 搜索,并将 Tampermonkey 添加到浏览器


**step five:**将插件固定到导航标签栏

二、拷贝下面KeepChatGPT代码

// ==UserScript==
// @name              KeepChatGPT
// @description       让我们在使用ChatGPT过程中更高效、更顺畅,完美解决ChatGPT网络错误,不再频繁地刷新网页,足足省去10个多余的步骤。还可以取消后台监管审计。解决了这几类报错: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com. (3) This content may violate our content policy. If you believe this to be in error, please submit your feedback — your input will aid our research in this area. (4) Conversation not found.
// @version           8.3
// @author            xcanwin
// @namespace         https://github.com/xcanwin/KeepChatGPT/
// @supportURL        https://github.com/xcanwin/KeepChatGPT/
// @updateURL         https://raw.githubusercontent.com/xcanwin/KeepChatGPT/main/KeepChatGPT.user.js
// @downloadURL       https://raw.githubusercontent.com/xcanwin/KeepChatGPT/main/KeepChatGPT.user.js
// @description:ar    لنجعل استخدام ChatGPT لدينا أكثر كفاءة وسلاسة، من خلال تحسين الحل لأخطاء شبكة ChatGPT. وهذا يوفر لنا من تحديث صفحة الويب بشكل متكرر ويقضي على أكثر من 10 خطوات غير ضرورية. تم حل الأخطاء التالية: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:bg    Нека направим използването на ChatGPT по-ефективно и по-гладко, като усъвършенстваме решението за мрежови грешки на ChatGPT. Това ни спестява от често опресняване на уеб страницата и отстранява над 10 ненужни стъпки. Следните грешки са решен: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:cs    Vylepšeme naše používání ChatGPT, aby bylo efektivnější a plynulejší, dokonalým řešením síťových chyb ChatGPT. Toto nás šetří častým obnovováním webové stránky a eliminuje více než 10 zbytečných kroků. Následující chyby byly vyřešen: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:da    Lad os gøre vores brug af ChatGPT mere effektiv og problemfri ved at perfektionere løsningen på ChatGPT-netværksfejl. Dette sparer os for hyppigt at genindlæse websiden og eliminerer mere end 10 unødvendige trin. Følgende fejl er blevet løs: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:de    Lassen Sie uns unsere Nutzung von ChatGPT effizienter und reibungsloser gestalten, indem wir die Lösung für ChatGPT-Netzwerkfehler perfektionieren. Dies spart uns häufiges Aktualisieren der Webseite und eliminiert mehr als 10 unnötige Schritte. Die folgenden Fehler wurden behobe: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:el    Ας κάνουμε τη χρήση του ChatGPT πιο αποτελεσματική και πιο ομαλή, βελτιώνοντας τη λύση στα προβλήματα δικτύου του ChatGPT. Αυτό μας σώζει από το συχνό ανανέωση της ιστοσελίδας και εξαλείφει πάνω από 10 περιττά βήματα. Τα ακόλουθα σφάλματα έχουν λυθε: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:en    Let's make our use of ChatGPT more efficient and seamless, and perfectly resolve ChatGPT network errors without frequently refreshing the webpage, saving more than 10 unnecessary steps. It is also possible to disable auditing. This resolves the following types of errors: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:eo    Ni plifaciligas nian uzadon de ChatGPT per pli efikaj kaj pli glataj solvoj por ChatGPT-retoj. Tio savas nin de oftaj reŝarĝoj de la retpaĝo kaj eliminigas pli ol 10 superfluajn paŝojn. La sekvaj eraroj estas solvita: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:es    Hagamos que nuestro uso de ChatGPT sea más eficiente y más fluido, perfeccionando la solución a los errores de red de ChatGPT. Esto nos ahorra de actualizar frecuentemente la página web y elimina más de 10 pasos innecesarios. Los siguientes errores han sido resuelto: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:fi    Tehdään käytöstämme ChatGPT:ää tehokkaampaa ja sujuvampaa täydellistämällä ratkaisu ChatGPT:n verkkovirheisiin. Tämä säästää meidät usein tapahtuvilta verkkosivun päivityksiltä ja poistaa yli 10 tarpeetonta vaihetta. Seuraavat virheet on ratkaist: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:fr    Rendons notre utilisation de ChatGPT plus efficace et plus fluide en perfectionnant la solution aux erreurs de réseau de ChatGPT. Cela nous évite de rafraîchir fréquemment la page Web et élimine plus de 10 étapes inutiles. Les erreurs suivantes ont été résolue: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:fr-CA Rendons notre utilisation de ChatGPT plus efficace et plus fluide en perfectionnant la solution aux erreurs de réseau de ChatGPT. Cela nous évite de rafraîchir fréquemment la page Web et élimine plus de 10 étapes inutiles. Les erreurs suivantes ont été résolue: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:he    בואו נשפר על שימוש יעיל וחלק יותר ב ChatGPT על-ידי מציאת פתרון מושלם לשגיאות הרשת של ChatGPT. זה חוסך מאיתנו מרענון תדיר של הדף ומסיר מעל 10 שלבים מיותרים. נפתרו השגיאות הבאו: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:hu    Tegyük hatékonyabbá és zökkenőmentesebbé ChatGPT használatunkat a ChatGPT hálózati hibáinak tökéletesítésével. Ez megóv minket a weboldal gyakori frissítésétől és több mint 10 felesleges lépés megszüntetését jelenti. Az alábbi hibák megoldásra kerülte: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:id    Mari kita membuat penggunaan ChatGPT kita lebih efisien dan lancar, dengan menyempurnakan solusi untuk kesalahan jaringan ChatGPT. Ini menghemat kita dari sering merefresh halaman dan menghilangkan lebih dari 10 langkah yang tidak perlu. Kesalahan-kesalahan berikut telah diatas: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:it    Rendiamo il nostro uso di ChatGPT più efficiente e scorrevole, perfezionando la soluzione per gli errori di rete di ChatGPT. Ciò ci salva dal dover aggiornare frequentemente la pagina web ed elimina oltre 10 passaggi non necessari. Sono stati risolti i seguenti error: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:ja    ChatGPTのネットワークエラーの問題を完璧に解決することで、ChatGPTの使用をより効率的でスムーズにすることができます。これにより、Webページを頻繁にリフレッシュする必要がなく、10以上の不要なステップを削除できます。以下のエラーが解決されまし: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:ka    შევქმნათ ChatGPT-ს გამოყენება უფრო ეფექტური და უარყოფითი, ჩვენს საჭიროებების შედეგად ChatGPT-ს ქსელის შეცდომების საკუთარ ამოცანას შევასრულოთ. ეს შესაძლოა ჩვენ ვებგვერდის მრავალჯერად განახლებისგან გავიმეოროთ და შევარჩიოთ 10 უმაღლესი მარტივი ნაბიჯი. შემდეგი შეცდომები გადააჭარბებს: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:ko    ChatGPT 사용을 더 효율적이고 원활하게 만들어 ChatGPT 네트워크 오류를 완벽히 해결하고 웹 페이지를 자주 새로 고치지 않아도 되게 하여 10개 이상의 불필요한 단계를 제거했습니다. 다음 오류가 해결되었습니다: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:nb    La oss gjøre bruken av ChatGPT mer effektiv og jevnere ved å perfeksjonere løsningen for ChatGPT nettverksfeil. Dette sparer oss for å stadig måtte laste inn siden på nytt og eliminerer over 10 unødvendige trinn. Følgende feil er nå løst: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:nl    Laten we ons gebruik van ChatGPT efficiënter en soepeler maken door de oplossing voor ChatGPT-netwerkfouten te perfectioneren. Dit bespaart ons van het vaak vernieuwen van de webpagina en elimineert meer dan 10 onnodige stappen. De volgende fouten zijn opgelost: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:pl    Uczyńmy nasze użytkowanie ChatGPT bardziej wydajnym i płynnym, doskonaląc rozwiązanie problemów z siecią ChatGPT. To pozwoli nam uniknąć częstego odświeżania strony i wyeliminować ponad 10 niepotrzebnych kroków. Następujące błędy zostały rozwiązane: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:pt-BR Vamos tornar nosso uso do ChatGPT mais eficiente e suave, aprimorando a solução para erros de rede do ChatGPT. Isso nos poupa de atualizar frequentemente a página da web e elimina mais de 10 etapas desnecessárias. Os seguintes erros foram resolvidos: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:ro Să facem utilizarea noastră a ChatGPT mai eficientă și mai fluentă, perfecționând soluția pentru erorile de rețea ale ChatGPT. Acest lucru ne salvează de la actualizarea frecventă a paginii web și elimină peste 10 pași inutili. Următoarele erori au fost rezolvate: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:ru    Сделаем наше использование ChatGPT более эффективным и плавным, усовершенствовав решение для ошибок сети ChatGPT. Это позволит нам избежать частого обновления веб-страницы и убрать более 10 ненужных шагов. Следующие ошибки были устранены: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:sk    Urobme naše používanie ChatGPT efektívnejším a plynulejším, vylepšením riešenia pre ChatGPT sieťové chyby. To nás ušetrí od častého obnovovania webovej stránky a odstráni viac ako 10 zbytočných krokov. Nasledujúce chyby boli vyriešené: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:sr    Učinimo naše korišćenje ChatGPT-a efikasnijim i glatkijim, usavršavanjem rešenja za ChatGPT mrežne greške. To nas oslobađa od čestog osvežavanja veb stranice i eliminiše više od 10 nepotrebnih koraka. Sledeće greške su rešene: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:sv    Låt oss göra vårt användande av ChatGPT mer effektivt och smidigt genom att förbättra lösningen på ChatGPT-nätverksfel. Detta sparar oss från att behöva ladda om webbsidan ofta och eliminerar över 10 onödiga steg. Följande fel har lösts: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:th    ให้เราใช้ ChatGPT ได้อย่างมีประสิทธิภาพและราบรื่นมากขึ้น โดยการแก้ไขปัญหาเครือข่าย ChatGPT อย่างสมบูรณ์แบบ นี้ช่วยประหยัดเวลาจากการรีเฟรชหน้าเว็บไซต์บ่อยครั้งและลบขั้นตอนที่ไม่จำเป็นมากกว่า 10 ขั้นตอน ข้อผิดพลาดต่อไปนี้ได้รับการแก้ไ: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:tr    ChatGPT ağ hatalarının mükemmel çözümüyle ChatGPT kullanımımızı daha verimli ve akıcı hale getirelim. Bu sayede web sayfasını sık sık yenilemekten kurtuluruz ve gereksiz 10 adımı ortadan kaldırırız. Aşağıdaki hatalar çözülmüştür: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:uk    Давайте зробимо наше використання ChatGPT більш ефективним та плавним, вдосконаливши рішення щодо помилок мережі ChatGPT. Це дозволяє нам уникнути частого оновлення веб-сторінки та усунути понад 10 зайвих кроків. Наступні помилки були виправлені: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:ug    چات GPT ئىشلىتىشتىكىمىزنى ئېتىبارلىق ئەرزىگە تۇنۇشتۇرۇشقا ئائىلە قىلىپ، چات GPT توردىكى تورخىذا خاتالىقىلارنى تەمىنلەشتۈرۈشقا ئائىلە قىلىپ، تورخىذىلىش يېتىشىپ قالدىغان خاتالىقلىرىمىزنى 10 دىن ئارتۇق بۇلۇپ تەتۈرلىتىشكە بولىدۇ. بۇ قانداق خاتالىقلىر تەمىنلەندى: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:vi    Hãy làm việc của chúng ta trên ChatGPT hiệu quả hơn và mượt hơn bằng cách hoàn thiện giải pháp cho các lỗi mạng ChatGPT. Điều này giúp chúng ta không cần phải làm mới trang web thường xuyên và loại bỏ hơn 10 bước không cần thiết. Những lỗi sau đã được khắc phục: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @description:zh-CN 让我们在使用ChatGPT过程中更高效、更顺畅,完美解决ChatGPT网络错误,不再频繁地刷新网页,足足省去10个多余的步骤。还可以取消后台监管审计。解决了这几类报错: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com. (3) This content may violate our content policy. If you believe this to be in error, please submit your feedback — your input will aid our research in this area. (4) Conversation not found.
// @description:zh-TW 讓我們在使用ChatGPT過程中更高效、更順暢,完美解決ChatGPT網絡錯誤,不再頻繁地刷新網頁,足足省去10個多餘的步驟。解決了這幾類報錯: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com.
// @icon              data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" stroke-width="2" fill="none" stroke="currentColor"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
// @license           GPL-2.0-only
// @match             https://chat.openai.com/*
// @grant             GM_addStyle
// @grant             GM_addElement
// @grant             GM_setValue
// @grant             GM_getValue
// @grant             unsafeWindow
// @run-at            document-idle
// ==/UserScript==(function() {'use strict';var $ = (Selector, el) => (el || document).querySelector(Selector);var $$ = (Selector, el) => (el || document).querySelectorAll(Selector);var tl = function(s) {var lang = `
{"index": {"暗色主题": "dm", "浅色主题": "lm", "显示调试": "sd", "取消审计": "cm", "关于": "ab"},"local": {
"ar": {"dm": "الوضع الداكن", "lm": "وضع فاتح", "sd": "إظهار التصحيح", "cm": "إلغاء التدقيق", "ab": "حول"},
"bg": {"dm": "Тъмна тема", "lm": "Светла тема", "sd": "Показване на отстраняване на грешки", "cm": "Отказ от одит", "ab": "За"},
"cs": {"dm": "Tmavý režim", "lm": "Světlý režim", "sd": "Zobrazit ladění", "cm": "Zrušení auditu", "ab": "O"},
"da": {"dm": "Mørk tilstand", "lm": "Lys tilstand", "sd": "Vis fejlfinding", "cm": "Annuller revision", "ab": "Om"},
"de": {"dm": "Dunkler Modus", "lm": "Heller Modus", "sd": "Fehlerbehebung anzeigen", "cm": "Prüfung abbrechen", "ab": "Über"},
"el": {"dm": "Σκοτεινή θεματολογία", "lm": "Φωτεινή θεματολογία", "sd": "Εμφάνιση αποσφαλμάτωσης", "cm": "Ακύρωση ελέγχου", "ab": "Σχετικά με"},
"en": {"dm": "Dark mode", "lm": "Light mode", "sd": "Show debugging", "cm": "Cancel audit", "ab": "About"},
"eo": {"dm": "Malhela moduso", "lm": "Hela moduso", "sd": "Montri depuradon", "cm": "Nuligi kontroli", "ab": "Pri"},
"es": {"dm": "Modo oscuro", "lm": "Modo claro", "sd": "Mostrar depuración", "cm": "Cancelar auditoría", "ab": "Acerca de"},
"fi": {"dm": "Tumma tila", "lm": "Vaalea tila", "sd": "Näytä virheenkorjaus", "cm": "Peruuta tarkistus", "ab": "Tietoa"},
"fr": {"dm": "Mode sombre", "lm": "Mode clair", "sd": "Afficher le débogage", "cm": "Annuler l'audit", "ab": "À propos de"},
"fr-CA": {"dm": "Mode nuit", "lm": "Mode jour", "sd": "Afficher le débogage", "cm": "Annuler la vérification", "ab": "À propos de"},
"he": {"dm": "מצב כהה", "lm": "מצב בהיר", "sd": "הצגת התיקון", "cm": "ביטול ביקורת", "ab": "אודות"},
"hu": {"dm": "Sötét mód", "lm": "Világos mód", "sd": "Hibakeresés mutatása", "cm": "Ellenőrzés megszüntetése", "ab": "Rólunk"},
"id": {"dm": "Mode gelap", "lm": "Mode terang", "sd": "Tampilkan debugging", "cm": "Batalkan audit", "ab": "Tentang"},
"it": {"dm": "Modalità scura", "lm": "Modalità chiara", "sd": "Mostra debug", "cm": "Annulla verifica", "ab": "Riguardo a"},
"ja": {"dm": "ダークモード", "lm": "ライトモード", "sd": "デバッグを表示", "cm": "監査をキャンセル", "ab": "について"},
"ka": {"dm": "ბნელი რეჟიმი", "lm": "ნათელი რეჟიმი", "sd": "გამოჩენა დებაგი", "cm": "ანულირება აუდიტი", "ab": "შესახებ"},
"ko": {"dm": "다크 모드", "lm": "라이트 모드", "sd": "디버깅 표시", "cm": "감사 취소", "ab": "관하여"},
"nb": {"dm": "Mørk modus", "lm": "Lys modus", "sd": "Vis feilsøking", "cm": "Avbryt revisjonen", "ab": "Om"},
"nl": {"dm": "Donkere modus", "lm": "Lichte modus", "sd": "Foutopsporing weergeven", "cm": "Controle annuleren", "ab": "Over"},
"pl": {"dm": "Tryb ciemny", "lm": "Tryb jasny", "sd": "Pokaż debugowanie", "cm": "Anuluj audyt", "ab": "O"},
"pt-BR": {"dm": "Modo escuro", "lm": "Modo claro", "sd": "Mostrar depuração", "cm": "Cancelar auditoria", "ab": "Sobre"},
"ro": {"dm": "Mod întunecat", "lm": "Mod luminos", "sd": "Afișare depanare", "cm": "Anulare audit", "ab": "Despre"},
"ru": {"dm": "Темный режим", "lm": "Светлый режим", "sd": "Показать отладку", "cm": "Отменить аудит", "ab": "О"},
"sk": {"dm": "Tmavý režim", "lm": "Svetlý režim", "sd": "Zobraziť ladenie", "cm": "Zrušiť audit", "ab": "O"},
"sr": {"dm": "Тамни режим", "lm": "Светла тема", "sd": "Прикажи отклањање грешака", "cm": "Откажи ревизију", "ab": "О"},
"sv": {"dm": "Mörkt läge", "lm": "Ljust läge", "sd": "Visa felsökning", "cm": "Avbryt revision", "ab": "Om"},
"th": {"dm": "โหมดมืด", "lm": "โหมดสว่าง", "sd": "แสดงการแก้ไขข้อผิดพลาด", "cm": "ยกเลิกการตรวจสอบ", "ab": "เกี่ยวกับ"},
"tr": {"dm": "Karanlık mod", "lm": "Aydınlık mod", "sd": "Hata ayıklama göster", "cm": "Denetimi İptal Et", "ab": "Hakkında"},
"uk": {"dm": "Темний режим", "lm": "Світлий режим", "sd": "Показати налагодження", "cm": "Скасувати аудит", "ab": "Про"},
"ug": {"dm": "تېما كۆرسىتىش", "lm": "ئاچقۇچ كۆرۈنۈش", "sd": "كۆرسەتكەن يۇقىرىلاش", "cm": "ئەمەلدىن قالدۇرۇش", "ab": "ئۇچۇرلىق"},
"vi": {"dm": "Chế độ tối", "lm": "Chế độ sáng", "sd": "Hiển thị gỡ lỗi", "cm": "Hủy đánh giá", "ab": "Về"},
"zh-CN": {"dm": "暗色主题", "lm": "浅色主题", "sd": "显示调试", "cm": "取消审计", "ab": "关于"},
"zh-TW": {"dm": "暗黑模式", "lm": "淺色主題", "sd": "顯示調試", "cm": "取消稽核", "ab": "關於"}}
}
`;var i, r, nl;try {lang = JSON.parse(lang);i = lang.index[s];nl = navigator.language;if (nl in lang.local) {r = lang.local[nl][i];} else {r = lang.local[nl.slice(0, 2)][i];}} catch (e) {r = s;}if (r == undefined) {r = s;}return r;};var sv = function(key, value = "") {GM_setValue(key, value);};var gv = function(key, value = "") {return GM_getValue(key, value);};var formatDate = function(d) {return (new Date(d)).toLocaleString();};var setIfr = function(u = "") {if ($("#xcanwin")==null) {var nIfr = document.createElement('iframe');nIfr.id = "xcanwin";nIfr.style = `height: 0px; width: 100%;`;if (u) {nIfr.src = u;}nIfr.onload = function() {var nIfrText = $("#xcanwin").contentWindow.document.documentElement.innerText;try {$("#xcanwin").contentWindow.document.documentElement.style = `background: #FCF3CF; height: 360px; width: 1080px; overflow; auto;`;if (nIfrText.indexOf(`"expires":"`) > -1) {console.log(`KeepChatGPT: IFRAME: Expire date: ${formatDate(JSON.parse(nIfrText).expires)}`);} else if (nIfrText.match(/Please stand by|while we are checking your browser|Please turn JavaScript on|Please enable Cookies|reload the page/)) {console.log(`KeepChatGPT: IFRAME: BypassCF`);}} catch (e) {console.log(`KeepChatGPT: IFRAME: ERROR: ${e},\nERROR RESPONSE:\n${nIfrText}`);}};$("main").lastElementChild.appendChild(nIfr);} else{if (u) {$("#xcanwin").src = u;}}};var keepChat = function() {fetch(u).then((response) => {response.text().then((data) => {try {var contentType = response.headers.get('Content-Type');if (contentType.indexOf("application/json") > -1 && response.status !== 403 && data.indexOf(`"expires":"`) > -1) {console.log(`KeepChatGPT: FETCH: Expire date: ${formatDate(JSON.parse(data).expires)}`);$("#xcanwin").contentWindow.document.documentElement.innerHTML = data;} else {setIfr(u);}} catch (e) {console.log(`KeepChatGPT: FETCH: ERROR: ${e},\nERROR RESPONSE:\n${data}`);setIfr(u);}})});}var ncheckbox = function() {var nsvg = document.createElementNS("http://www.w3.org/2000/svg", "svg");nsvg.setAttribute("viewBox", "0 0 100 30");nsvg.classList.add("checkbutton");nsvg.innerHTML = `<g fill="none" fill-rule="evenodd"><path fill="#E3E3E3" d="M0 15C0 6.716 6.716 0 15 0h14c8.284 0 15 6.716 15 15s-6.716 15-15 15H15C6.716 30 0 23.284 0 15z"/><circle fill="#FFF" cx="15" cy="15" r="13"/></g>`;return nsvg.cloneNode(true);};var loadMenu = function() {if ($(".kmenu")!==null) {return;}var ndivmenu = document.createElement('div');ndivmenu.setAttribute("class", "kmenu");ndivmenu.innerHTML = `<ul><li id=nmenuid1>${tl("显示调试")}</li><li id=nmenuid2>${tl("暗色主题")}</li><li id=nmenuid3>${tl("取消审计")}</li><a href='${GM_info.script.namespace}'><li id=nmenuid4>${tl("关于")}</li></a></ul>`;document.body.appendChild(ndivmenu);$('#nmenuid1').appendChild(ncheckbox());$('#nmenuid2').appendChild(ncheckbox());$('#nmenuid3').appendChild(ncheckbox());$('#nmenuid1').onclick = function() {if ($('.checkbutton', this).classList.contains('checked')) {if ($('#xcanwin')) $('#xcanwin').style.height = '0px';sv("k_showDebug", false);} else {if ($('#xcanwin')) $('#xcanwin').style.height = '80px';sv("k_showDebug", true);}$('.checkbutton', this).classList.toggle('checked');};$('#nmenuid2').onclick = function() {if ($('.checkbutton', this).classList.contains('checked')) {$('#kcg').style = $('#kcg').styleOrigin;sv("k_theme", "light");} else {$('#kcg').styleOrigin = $('#kcg').style;$('#kcg').style.background = "#2C3E50";$('#kcg').style.animation = "none";$('#kcg').style.color = "#ffffff";$('#kcg').style.marginRight = "inherit";sv("k_theme", "dark");}$('.checkbutton', this).classList.toggle('checked');};$('#nmenuid3').onclick = function() {if ($('.checkbutton', this).classList.contains('checked')) {byeModer(false);sv("k_closeModer", false);} else {byeModer(true);sv("k_closeModer", true);}$('.checkbutton', this).classList.toggle('checked');};};var loadKCG = function() {var symbol_prt;if ($("#kcg")!==null) {return;}if ($("main").kcg!==undefined) {if ($(symbol1_class)) {$("main").kcg.innerHTML = $("main").kcg._symbol1_innerHTML;symbol_prt = $(symbol1_class).parentElement;} else if ($(symbol2_class)) {$("main").kcg.innerHTML = $("main").kcg._symbol2_innerHTML;symbol_prt = $(symbol2_class).parentElement;}symbol_prt.insertBefore($("main").kcg, symbol_prt.childNodes[0]);return;}loadMenu();setIfr(u);var ndivkcg = document.createElement("div");ndivkcg.id = "kcg";ndivkcg.setAttribute("class", "flex py-3 px-3 items-center gap-3 rounded-md text-sm mb-1 flex-shrink-0 border border-white/20");var ndivmenu = $(".kmenu");ndivkcg.onmouseover = ndivmenu.onmouseover = function() {if ($("#kcg")) {ndivmenu.style.display = 'block';ndivmenu.style.left = `${$("#kcg").getBoundingClientRect().right + 20}px`;ndivmenu.style.top = `${$("#kcg").getBoundingClientRect().top}px`;}};ndivkcg.onmouseleave = ndivmenu.onmouseleave = function() {ndivmenu.style.display = 'none';};ndivkcg.onclick = function() {if (ndivmenu.style.display == 'none') {ndivmenu.style.display = 'block';ndivmenu.style.left = `${$("#kcg").getBoundingClientRect().right + 20}px`;ndivmenu.style.top = `${$("#kcg").getBoundingClientRect().top}px`;} else {ndivmenu.style.display = 'none';}};var icon = GM_info.script.icon ? GM_info.script.icon : `${GM_info.script.namespace}raw/main/assets/logo.svg`;ndivkcg._symbol1_innerHTML = `<img src='${icon}' />Keep${ndivkcg.id.slice(1,2).toUpperCase()}hatGPT by x${ndivkcg.id.slice(1,2)}anwin`;ndivkcg._symbol2_innerHTML = `Keep${ndivkcg.id.slice(1,2).toUpperCase()}hatGPT`;if ($(symbol1_class)) {ndivkcg.innerHTML = ndivkcg._symbol1_innerHTML;symbol_prt = $(symbol1_class).parentElement;} else if ($(symbol2_class)) {ndivkcg.innerHTML = ndivkcg._symbol2_innerHTML;symbol_prt = $(symbol2_class).parentElement;}$("main").kcg = ndivkcg;symbol_prt.insertBefore($("main").kcg, symbol_prt.childNodes[0]);addStyle();setUserOptions();};var addStyle = function() {GM_addStyle(`
#kcg {color: #555;background: linear-gradient(to top right, #F0B27A, #FDE184, #F0B27A);animation: gradient 6s ease-in-out infinite;position: relative;overflow: hidden;font-weight: bold;user-select: none;
}
@keyframes gradient {0%{background-color:#F0B27A;}50%{background-color:#FDE184;}100%{background-color:#F0B27A;}
}#kcg::before {content: '';position: absolute;top: -50%;left: -50%;width: 200%;height: 200%;background: linear-gradient(to bottom right,rgba(255, 255, 255, 0.3),rgba(255, 255, 255, 0.15),rgba(255, 255, 255, 0));transform: rotate(-45deg);animation: shine 2.8s linear infinite;
}
@keyframes shine {from {transform: translateX(-50%) translateY(-50%) rotate(-45deg);}to {transform: translateX(150%) translateY(150%) rotate(-45deg);}
}.kmenu {background-color: #202123;color: #FFFFFF;border: 1px solid #4D4D4F;border-radius: 10px;box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);display: none;min-width: 200px;padding: 12px 0;position: absolute;z-index: 1000;
}
.kmenu::before {content: "";position: absolute;top: 0px;bottom: 0px;left: -30px;right: 0px;pointer-events: auto;z-index: -1;
}
.kmenu::after {content: "";position: absolute;top: 15px;left: -20px;border-style: solid;border-width: 10px 10px 10px 10px;border-color: transparent #202123 transparent transparent;
}
.kmenu li {display: block;padding: 8px 24px;text-align: left;user-select: none;display: flex;align-items: center;
}
.kmenu li:hover {background-color: #273746;cursor: pointer;
}.rounded-sm {user-select: none;
}nav {position: relative;
}.checkbutton {height: 20px;margin-left: auto;margin-right: -35px;padding-left: 10px;
}
.checkbutton:hover {cursor: pointer;
}
.checked path {fill: #30D158;
}
.checked circle {transform: translateX(14px);transition: transform 0.2s ease-in-out;
}
`);};var setUserOptions = function() {if (gv("k_showDebug", false) == true) {$('#nmenuid1 .checkbutton').classList.add('checked');if ($('#xcanwin')) $('#xcanwin').style.height = '80px';} else {if ($('#xcanwin')) $('#xcanwin').style.height = '0px';}if (gv("k_theme", "light") == "light") {$('#kcg').styleOrigin = $('#kcg').style;} else {$('#nmenuid2 .checkbutton').classList.add('checked');$('#kcg').style.background = "#2C3E50";$('#kcg').style.animation = "none";$('#kcg').style.color = "#ffffff";$('#kcg').style.marginRight = "inherit";}if (gv("k_closeModer", false) == true) {$('#nmenuid3 .checkbutton').classList.add('checked');byeModer(true);} else {byeModer(false);}};var byeModer = function(action) {if (typeof _fetch == 'undefined') {var _fetch = fetch;}if (action == true) {unsafeWindow.fetch = new Proxy(fetch, {apply: function (target, thisArg, argumentsList) {var n = {};n.json = function() {return {};};return argumentsList[0].includes('moderations') ? Promise.resolve(n) : target.apply(thisArg, argumentsList);}});} else {unsafeWindow.fetch = _fetch;}};var byeConversationNotFound = function(action) {if (typeof _fetch == 'undefined') {var _fetch = fetch;}if (action == true) {unsafeWindow.fetch = new Proxy(_fetch, {apply: function (target, thisArg, argumentsList) {try {if (argumentsList[0].includes('conversation')) {var post_body = JSON.parse(argumentsList[1].body);post_body.conversation_id = location.href.match(/\/c\/(.*)/)[1];argumentsList[1].body = JSON.stringify(post_body);}} catch (e) {}return target.apply(thisArg, argumentsList);}});} else {unsafeWindow.fetch = _fetch;}};setInterval(function() {if ($(symbol1_class) || $(symbol2_class)) {loadKCG();}}, 300);setInterval(function() {if ($(symbol1_class) || $(symbol2_class)) {keepChat();}}, 1000 * 30);var u = `/api/${GM_info.script.namespace.slice(33, 34)}uth/s${GM_info.script.namespace.slice(28, 29)}ssion`;var symbol1_class = 'nav>a.flex';var symbol2_class = 'button.justify-center';byeConversationNotFound(true);})();

三、将 KeepChatGPT 代码粘贴到

  1. 添加新脚本,如下图所示

  2. 粘贴KeepChatGPT代码,完全将原有代码替换,保存即可

  1. 打开 ChatGPT 尽情享用吧

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/23429.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

uniapp小程序订单页面UI

前言 之前用模板写了订单页面&#xff0c;由于需求改了导致这个页面做更新麻烦&#xff0c;弄了一下午&#xff0c;索性全部删除了自己写了&#xff0c;上面的tabs用的是b-ui框架写的&#xff0c;其他的都是原生写法。 &#x1f64f;如果这篇文章对你有帮助还请收藏点赞关注&…

uniapp社区动态实战:根据图片数量动态改变图片大小

动态列表是各种社交属性软件中最常见的场景,其中用户在发布动态时一般会添加1-9张图片,不同的数量图片显示大小也会不同,下面就聊一下如何根据不同的图片数量动态改变图片大小。以下案例中最多支持9张图显示&#xff0c;每行做多显示3张&#xff0c;多余则进行换行&#xff0c;…

句子扩写软件-文案扩写软件

什么是扩写软件 扩写软件是一种工具&#xff0c;可以帮助用户对一段文本进行扩展&#xff0c;增加文本的长度和信息量&#xff0c;同时保持原始内容的基本意思和结构不变。简单来说&#xff0c;扩写软件就是通过自然语言处理技术&#xff0c;对原始文本进行修改或补充&#xf…

使用宝塔面板搭建个人网站(博客)超详细2023

文章目录 简介一、打开自己服务器控制面板二、安装宝塔 [宝塔地址](https://www.bt.cn/new/download.html)三、配置宝塔面板五、为你的网站导入模板总结 简介 提示&#xff1a;这里可以添加本文要记录的大概内容&#xff1a; 一直有一个执念想搭一个自己的网站&#xff0c;今…

【宝塔】宝塔部署ThinkPHP项目

最近搞了个培训教育的小程序&#xff0c;后端服务用的是ThinkPHP。使用的过程中&#xff0c;发现对于这种小项目用php还是很不错的选择&#xff0c;开发便捷&#xff0c;轻量级。宝塔神器也是很不错的&#xff0c;值得推荐使用。 下面介绍一下项目中用宝塔部署ThinkPHP项目&…

宝塔面板搭建自己的网站,并发布公网远程访问

文章目录 1. 环境安装2. 安装cpolar内网穿透3. 内网穿透4.固定http地址5. 配置二级子域名6.创建一个测试页面 宝塔面板简单几步搭建本地web站点&#xff0c;并做内网穿透&#xff0c;实现公网用户也可以正常远程访问&#xff0c;无需公网IP&#xff0c;无需设置路由器。 1. 环…

什么是宝塔面板?宝塔面板安装和使用教程(详细)

宝塔简介 全面的操作 宝塔面板是一款服务器管理软件&#xff0c;支持windows和linux系统&#xff0c;可以通过Web端轻松管理服务器&#xff0c;提升运维效率。例如&#xff1a;创建管理网站、FTP、数据库&#xff0c;拥有可视化文件管理器&#xff0c;可视化软件管理器&#x…

宝塔面板部署青龙面板教程【简单易上手】

首先&#xff0c;你得有一台部署了宝塔面板的服务器&#xff08;自己用本地电脑也可以&#xff09;。 宝塔面板部署自行百度一下&#xff0c;很简单&#xff0c;这里就不走流程了&#xff0c;官网版本就可以&#xff0c;无需开心版。 首先&#xff0c;打开宝塔面板的软件商店&a…

手把手带用宝塔面板发布前端项目

全栈学习之路 噫吁嚱&#xff0c;全栈之难&#xff0c;难于上青天。万丈高楼平地起&#xff0c;学习还得靠自己&#xff0c;同志们&#xff0c;盘一盘今天让我们从一个服务器开始&#xff0c;发布我们的一个前端项目&#xff0c;他讲让你快速拥有一个自己的服务器和自己专属页…

通过宝塔面板部署个人博客

通过宝塔面板部署个人博客 准备工作 购买服务器、下载Xshell软件 部署步骤 步骤1、Xshell连接到服务器 首先打开自己购买的服务器的管理控制台页面&#xff0c;在控制台页面我们可以找到自己的服务器IP地址 打开Xshell文件&#xff0c;新建会话&#xff0c;点击确定进行…

宝塔面板搭建网站教程:Linux下使用宝塔一键搭建网站,内网穿透发布公网上线

文章目录 前言1. 环境安装2. 安装cpolar内网穿透3. 内网穿透4. 固定http地址5. 配置二级子域名6. 创建一个测试页面 转载自cpolar内网穿透的文章&#xff1a;使用宝塔面板快速搭建网站&#xff0c;并内网穿透实现公网远程访问 前言 宝塔面板作为简单好用的服务器运维管理面板&…

如何搭建一个属于自己的网站(使用宝塔面板)

1.购买域名与服务器 1.域名 简单的解释一下,我们购买的域名会给我们一个公网ip,通常这个公网ip是很难记.所以我们可以将域名与ip进行"绑定". 域名的话建议购买一个有意义,不要太贵的.注意次年续费的价格!! 阿里云 或者 腾讯云 下面这个是我的域名(和我名字差不多的意…

宝塔面板部署WordPress(保姆式教程)

前言&#xff1a; 通过本篇文章&#xff0c;您可以掌握&#xff1a; 1.基于宝塔面板的快速建站操作&#xff1b; 2.一些浅浅的建站知识与技能&#xff1b; 3.WordPress助您快速建站&#xff0c;节省您的时间&#xff1b; 如何联系我&#xff1f; wei.haoranoutlook.com …

宝塔面板+悟空CRM功能模块安装搭建部署教程 环境配置

悟空CRM目录结构 wk_modules ├── module – 无代码模块 ├── common – 基础模块 平台使用的主要技术栈 名称 版本 说明 spring-cloud-alibaba 2021.0.4 核心框架 spring-boot 2.6.11 spring版本 mybatis-plus 3.5.2 ORM框架 nacos 2.1.0 注册中心以及配置管理 seata 1.2.…

你的私人编程老师,ChatGPT帮你快速掌握Python编程

ChatGPT为我们提供了一种全新的学习方式&#xff0c;让你可以更轻松&#xff0c;更快速地学习编程知识。 以下是ChatGPT帮助用户学习编程的优势&#xff1a; 推荐资源和课程ChatGPT可以根据您的编程经验和学习目标&#xff0c;推荐适合您的在线学习资源和课程。例如&#xff0c…

微软 x OpenAI 祭出杀招!GPT-4 全面进入 Windows 11

作者 | 王启隆 责编 | 屠敏 出品 | CSDN&#xff08;ID&#xff1a;CSDNnews&#xff09; 二十余年前&#xff0c;微软曾发起过一场著名的“浏览器战争”&#xff0c;用 IE 4.0 成功打赢了浏览器市场份额超过 90% 以上的网景浏览器。当时&#xff0c;微软用的就是“将 IE 放在 …

全网最详细中英文ChatGPT-GPT-4示例文档-TL;DR文档快速总结应用从0到1快速入门——官网推荐的48种最佳应用场景(附python/node.js/curl命令源代码,小白也能学)

从0到1快速入门TL;DR文档快速总结应用场景 Introduce 简介setting 设置Prompt 提示Sample response 回复样本API request 接口请求python接口请求示例node.js接口请求示例curl命令示例json格式示例 其它资料下载 ChatGPT是目前最先进的AI聊天机器人&#xff0c;它能够理解图片和…

全新中文大模型多任务基准CMMLU:评估中文多任务语言理解能力

©PaperWeekly 原创 作者 | 李浩楠 单位 | MBZUAI 研究方向 | 自然语言处理 如何评估大模型&#xff08;LLM&#xff09;的语言能力和知识储备一直备受学术界和工业界的关注。本文介绍了 CMMLU&#xff0c;一个全面的中文大模型基准。它涵盖了 67 个主题&#xff0c;涉及自…

当 Kubernetes 遇到 GPT:利用编程模型的秘诀,让你省时省力!

❝ 本文转自 LEE 的博客&#xff0c;原文&#xff1a;https://juejin.cn/post/7215151665929912380&#xff0c;版权归原作者所有。欢迎投稿&#xff0c;投稿请添加微信好友&#xff1a;cloud-native-yang 事件背景 Hi Everybody!! 这次老李不讲技术了&#xff0c;而是讲“玄学…

01.LLaMA

文章目录 前言导读摘要 预备知识语言模型ChatGPT性能暴涨的原因&#xff08;涌现&#xff09;GPT-1Transformer 背景介绍模型精讲数据集及处理Common CrawlC4GithubWikipediaGutenberg and Books3ArXivStack Exchange小结 关键TrickPre-normalizationSwiGLURotary Embeddings 实…