├── .gitignore ├── KeepChatGPT.user.js ├── LICENSE ├── README.md ├── assets ├── KeepChatGPT.png ├── appreciate_afdian.png ├── appreciate_buycoffee.png ├── appreciate_mycat.jpg ├── appreciate_wechat.png ├── chat_dark.png ├── chat_light.png ├── error_conversation_not_found.png ├── error_network.png ├── index_light.png ├── index_light_en.png ├── index_mobile.png ├── index_sidebar.png ├── index_sidebar_everchanging.png ├── logo.svg ├── logo2.png ├── user_feedback_1.png ├── user_feedback_2.png ├── user_feedback_3.png ├── user_feedback_4.png ├── warn_data_security.png ├── wrong_audit.png └── wrong_somthing.png ├── docs ├── README_EN.md └── README_ES.md └── tools ├── kcg_doc_cdn.py └── kcg_i18n.py /.gitignore: -------------------------------------------------------------------------------- 1 | **/test/* -------------------------------------------------------------------------------- /KeepChatGPT.user.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name KeepChatGPT 3 | // @description 这是一款提高ChatGPT的数据安全能力和效率的插件。并且免费共享大量创新功能,如:自动刷新、保持活跃、数据安全、取消审计、克隆对话、言无不尽、净化页面、展示大屏、拦截跟踪、日新月异、明察秋毫等。让我们的AI体验无比安全、顺畅、丝滑、高效、简洁。 4 | // @version 31.12 5 | // @author xcanwin 6 | // @namespace https://github.com/xcanwin/KeepChatGPT/ 7 | // @supportURL https://github.com/xcanwin/KeepChatGPT/ 8 | // @description:ar هذا هو ملحق يعزز قدرات وكفاءة بيانات ChatGPT الأمان، ويشترك مجانًا في العديد من الميزات الابتكارية مثل: التحديث التلقائي، البقاء نشطًا، الأمان للبيانات، إلغاء التدقيق، استنساخ الحوار، إلقاء الأحرف، تنقية الصفحة الرئيسية، عرض الشاشة الكبيرة، عرض ملء الشاشة، اعتراض التتبع، التطور الدائم وغيرها. 9 | // @description:bg Това е добавка, която повишава способностите и ефективността на данните на ChatGPT за сигурност и безпасност и споделя множество иновативни функции безплатно, като: автоматично обновление, поддържане на активност, сигурност на данните, отмяна на одита, клониране на диалог, безкрайни символи, почистване на началната страница, голям екран, пълен екран, прехващане на проследяване, непрекъснато развитие и други. 10 | // @description:cs Toto je doplněk zvyšující schopnosti a efektivitu zabezpečení dat u ChatGPT a sdílí mnoho inovativních funkcí zdarma, jako je automatické obnovení, udržování aktivity, zabezpečení dat, zrušení auditu, klonování konverzace, bezedné znaky, úprava úvodní stránky, zobrazení na velké obrazovce, zobrazení na celou obrazovku, blokování sledování, nepřetržitý vývoj a další. 11 | // @description:da Dette er en tilføjelse, der forbedrer ChatGPT's datasikkerhedsfunktioner og effektivitet og deler mange innovative funktioner gratis, såsom automatisk opdatering, aktivitetsbevaring, datasikkerhed, afbrydelse af revision, dialogkloning, uendelige tegn, rensning af startside, storskærmvisning, fuldskærmsvisning, sporingsinterception, konstant udvikling og mere. 12 | // @description:de Dies ist ein Add-On, das die Datenschutzfunktionen und Effizienz von ChatGPT verbessert und viele innovative Funktionen kostenlos teilt, wie z. B. automatische Aktualisierung, Aktivitätserhaltung, Datensicherheit, Aufhebung der Prüfung, Klonen von Gesprächen, endlose Zeichen, Bereinigung der Startseite, Großbildanzeige, Vollbildanzeige, Tracking-Abfangen, kontinuierliche Entwicklung und mehr. 13 | // @description:el Αυτό είναι ένα πρόσθετο που βελτιώνει τις δυνατότητες ασφάλειας και αποτελεσματικότητας των δεδομένων του ChatGPT και μοιράζεται πολλά καινοτόμα χαρακτηριστικά δωρεάν, όπως αυτόματη ανανέωση, διατήρηση της ενεργότητας, ασφάλεια δεδομένων, ακύρωση ελέγχου, κλωνοποίηση συνομιλίας, απεριόριστους χαρακτήρες, καθαρισμός της αρχικής σελίδας, προβολή σε μεγάλη οθόνη, προβολή σε πλήρη οθόνη, παρεμβολή ιχνηλάτησης, συνεχής εξέλιξη και άλλα. 14 | // @description:en This is an add-on that enhances ChatGPT's data security capabilities and efficiency, sharing numerous innovative features for free, such as automatic refresh, activity preservation, data security, audit cancellation, conversation cloning, limitless characters, homepage purification, large screen display, full-screen display, tracking interception, ever-evolving, and more. 15 | // @description:eo Ĉi tio estas aldonaĵo kiu plibonigas la datumsekurecan kapablecon kaj efikon de ChatGPT, kunhavigante multajn inovajn funkciojn senpage, ekzemple: aŭtomata refreŝigo, konservado de aktiveco, datumsekureco, nuligo de revizio, klonado de konversacio, senlimaj signoj, hejmpaĝa purigado, grandekrana montrado, tutskrana montrado, traksekvad-intercepto, ĉiam-evoluanta, kaj pli. 16 | // @description:es Este es un complemento que mejora las capacidades de seguridad de datos de ChatGPT y la eficiencia, compartiendo numerosas características innovadoras de forma gratuita, como la actualización automática, preservación de actividad, seguridad de datos, cancelación de auditoría, clonación de conversaciones, caracteres ilimitados, purificación de la página de inicio, visualización en pantalla grande, visualización en pantalla completa, interceptación de seguimiento, en constante evolución y más. 17 | // @description:fi Tämä on lisäosa, joka parantaa ChatGPT:n tietoturvakykyjä ja tehokkuutta, jakamalla lukuisia innovatiivisia ominaisuuksia ilmaiseksi, kuten automaattinen päivitys, toiminnan säilyttäminen, tietoturva, tarkastuksen peruutus, keskustelun kloonaus, rajattomat merkit, etusivun puhdistus, suuren näytön näyttö, kokoruutunäyttö, seurannan pysäytys, jatkuva kehittyminen ja enemmän. 18 | // @description:fr Ceci est une extension qui améliore les capacités de sécurité des données de ChatGPT et l'efficacité, en partageant de nombreuses fonctionnalités innovantes gratuitement, telles que le rafraîchissement automatique, la préservation de l'activité, la sécurité des données, l'annulation de l'audit, le clonage de conversation, des caractères illimités, la purification de la page d'accueil, l'affichage en grand écran, l'affichage en plein écran, l'interception de suivi. 19 | // @description:fr-CA Ceci est une extension qui améliore les capacités de sécurité des données de ChatGPT et l'efficacité, en partageant de nombreuses fonctionnalités innovantes gratuitement, telles que le rafraîchissement automatique, la préservation de l'activité, la sécurité des données, l'annulation de l'audit, le clonage de conversation, des caractères illimités, la purification de la page d'accueil, l'affichage en grand écran, l'affichage en plein écran, l'interception de suivi. 20 | // @description:he זוהי תוספת המשפרת את יכולות האבטחה והיעילות של ChatGPT ומשתפת מגוון רחב של תכונות חדשניות בחינם, כמו רענון אוטומטי, שמירת פעילות, אבטחת נתונים, ביטול ניתוח, שכפול שיחה, תווים ללא הגבלה, טיהור דף הבית, הצגה במסך גדול, הצגה במסך מלא, לכידת מעקב, תפוקה מתמידה ועוד. 21 | // @description:hu Ez egy bővítmény, amely javítja a ChatGPT adatbiztonsági képességeit és hatékonyságát, ingyenesen megosztva számos innovatív funkciót, mint például az automatikus frissítés, az aktivitás megőrzése, az adatbiztonság, az ellenőrzés visszavonása, a beszélgetés klónozása, a végtelen karakterek, a kezdőlap tisztítása, a nagy képernyős megjelenítés, a teljes képernyős megjelenítés, a követés elfogása, folyamatos fejlődés és még sok más. 22 | // @description:id Ini adalah tambahan yang meningkatkan kemampuan keamanan data ChatGPT dan efisiensi, berbagi banyak fitur inovatif secara gratis, seperti pembaruan otomatis, pelestarian aktivitas, keamanan data, pembatalan audit, kloning percakapan, karakter tak terbatas, penyucian beranda, tampilan layar besar, tampilan layar penuh, penyadapan pelacakan, perkembangan terus-menerus, dan lainnya. 23 | // @description:it Questo è un componente aggiuntivo che migliora le capacità di sicurezza dei dati di ChatGPT e l'efficienza, condividendo numerose funzionalità innovative gratuitamente, come l'aggiornamento automatico, la conservazione dell'attività, la sicurezza dei dati, l'annullamento dell'audit, il clonaggio delle conversazioni, caratteri illimitati, la purificazione della home page, la visualizzazione su schermo grande, la visualizzazione a schermo intero, l'intercettazione del tracciamento. 24 | // @description:ja これはChatGPTのデータセキュリティ能力と効率を向上させるアドオンであり、自動リフレッシュ、アクティビティの保持、データセキュリティ、監査キャンセル、会話のクローン、無制限の文字、ホームページの浄化、大画面表示、フルスクリーン表示、トラッキングのインターセプトなどの革新的な機能を無料で共有しています。絶え間なく進化し続けます。 25 | // @description:ka ეს არის დამატება, რომელიც გაუზრდება ChatGPT-ის მონაცემთა უსაფრთხოების შესაძლებლობებს და ეფექტურობას და გაუთავისუფლებს უკავშირის რაოდენობებს უფასოდ, როგორიცაა: ავტომატური განახლება, საქმიანობის შენახვა, მონაცემთა უსაფრთხოება, აუდიტის გაუქმება, საუზმე კონტაქტის კლონი, ულიმიტო სიმბოლოები, მთავარი გვერდის გაწმენდა, დიდ ეკრანზე ჩვენება, სრული ეკრანზე ჩვენება, ტრეკინგის წამი, საუკეთესო განვითარება და სხვა. 26 | // @description:ko 이것은 ChatGPT의 데이터 보안 기능과 효율성을 향상시키는 애드온으로, 자동 새로 고침, 활동 보존, 데이터 보안, 감사 취소, 대화 복제, 무제한 문자, 홈페이지 정화, 대형 화면 표시, 전체 화면 표시, 추적 가로채기 등의 혁신적인 기능을 무료로 공유합니다. 끊임없이 진화하며 더 많은 기능을 제공합니다. 27 | // @description:nb Dette er en tilleggsfunksjon som forbedrer ChatGPTs datasikkerhetsevner og effektivitet, og deler mange innovative funksjoner gratis, som automatisk oppdatering, aktivitetsbevaring, datasikkerhet, opphevelse av revisjon, samtalekloning, ubegrensede tegn, hjemmeside-rengjøring, visning på storskjerm, fullskjermvisning, sporingssperre, kontinuerlig utvikling og mer. 28 | // @description:nl Dit is een add-on die de gegevensbeveiligingsmogelijkheden en efficiëntie van ChatGPT verbetert en tal van innovatieve functies gratis deelt, zoals automatische vernieuwing, activiteitenbehoud, gegevensbeveiliging, annulering van audit, gespreksklonering, onbeperkte tekens, homepage zuivering, grootschermweergave, volledig schermweergave, tracking onderschepping, voortdurende evolutie en meer. 29 | // @description:pl To dodatek, który poprawia zdolności zabezpieczeń danych w ChatGPT oraz efektywność, udostępniając wiele innowacyjnych funkcji za darmo, takich jak automatyczne odświeżanie, zachowanie aktywności, bezpieczeństwo danych, anulowanie audytu, klonowanie rozmowy, nieograniczone znaki, oczyszczanie strony głównej, wyświetlanie na dużym ekranie, wyświetlanie na pełnym ekranie, przechwytywanie śledzenia, nieustanny rozwój i więcej. 30 | // @description:pt-BR Este é um complemento que melhora as capacidades de segurança de dados do ChatGPT e a eficiência, compartilhando inúmeras características inovadoras gratuitamente, como atualização automática, preservação de atividade, segurança de dados, cancelamento de auditoria, clonagem de conversas, caracteres ilimitados, purificação da página inicial, exibição em tela grande, exibição em tela cheia, interceptação de rastreamento, evolução constante e mais. 31 | // @description:ro Acesta este un modul care îmbunătățește capacitățile de securitate a datelor pentru ChatGPT și eficiența, partajând numeroase funcționalități inovatoare gratuit, cum ar fi reîmprospătarea automată, păstrarea activității, securitatea datelor, anularea auditului, clonarea conversației, caractere nelimitate, purificarea paginii de start, afișarea pe ecran mare, afișarea pe tot ecranul, interceptarea urmăririi, evoluție continuă și multe altele. 32 | // @description:ru Это дополнение, повышающее способности к защите данных ChatGPT и эффективности, бесплатно предоставляющее множество инновационных функций, таких как автоматическое обновление, сохранение активности, защита данных, отмена аудита, клонирование диалога, неограниченные символы, очистка домашней страницы, отображение на большом экране, полноэкранный режим, перехват отслеживания, непрерывное развитие и многое другое. 33 | // @description:sk Toto je doplnok, ktorý zlepšuje schopnosti zabezpečenia údajov ChatGPT a efektívnosť, zdieľa množstvo inovatívnych funkcií zdarma, ako automatické obnovenie, zachovanie aktivity, bezpečnosť údajov, zrušenie auditu, klonovanie konverzácie, neobmedzené znaky, vyčistenie úvodnej stránky, zobrazenie na veľkom displeji, zobrazenie na celú obrazovku, odchyt sledovania, neustály vývoj a viac. 34 | // @description:sr Ovo je dodatak koji poboljšava mogućnosti bezbednosti podataka u ChatGPT i efikasnost, deleći brojne inovativne funkcije besplatno, kao što su automatsko osvežavanje, očuvanje aktivnosti, bezbednost podataka, otkazivanje revizije, kloniranje razgovora, neograničeni znakovi, pročišćavanje početne stranice, prikaz na velikom ekranu, prikaz na celom ekranu, presretanje praćenja, neprestani razvoj i više. 35 | // @description:sv Detta är en tillägg som förbättrar ChatGPT: s dataskyddsfunktioner och effektivitet, och delar många innovativa funktioner gratis, som automatisk uppdatering, aktivitetsbevarande, dataskydd, återkallande av granskning, kloning av samtal, obegränsade tecken, rening av startsidan, stor skärmvisning, helskärmsvisning, spårningsavlyssning, ständig utveckling och mer. 36 | // @description:th นี่คือส่วนเสริมที่เสริมสร้างความสามารถในเรื่องการรักษาความปลอดภัยของข้อมูล ChatGPT และประสิทธิภาพ โดยแบ่งปันฟีเจอร์นวัตกรรมหลากหลายฟรี เช่น การรีเฟรชอัตโนมัติ การรักษาความเคลื่อนไหว การรักษาความปลอดภัยข้อมูล การยกเลิกการตรวจสอบ การทำซ้ำของบทสนทนา อักขระไม่จำกัด การทำความสะอาดหน้าโฮมเพจ การแสดงบนหน้าจอขนาดใหญ่ การแสดงบนหน้าจอเต็มหน้าจอ การแอบดักการติดตาม การเจริญเติบโตอยู่เสมอ และอื่น ๆ 37 | // @description:tr Bu, ChatGPT'nin veri güvenliği yeteneklerini ve verimliliğini artıran, otomatik yenileme, etkinlik koruma, veri güvenliği, denetim iptali, konuşma klonlama, sınırsız karakter, ana sayfa temizleme, büyük ekran gösterimi, tam ekran gösterimi, izleme engelleme gibi birçok yenilikçi özelliği ücretsiz paylaşan bir eklentidir. Sürekli gelişim ve daha fazlası. 38 | // @description:uk Це додаток, який покращує можливості забезпечення безпеки даних у ChatGPT та ефективність, поділяючи безкоштовно численні інноваційні функції, такі як автоматичне оновлення, збереження активності, безпека даних, скасування аудиту, клонування розмови, необмежені символи, очищення домашньої сторінки, відображення на великому екрані, відображення на повному екрані, перехоплення відстеження, постійний розвиток та багато іншого. 39 | // @description:ug بۇ، ChatGPT داتا تىنېلەش كۈچلىرىنى ۋە تەۋسىيەلىكىنى يۇقىرىلاشقان بىر قوشما، ئاپتوماتىك تىزىملاش، پائالىيەت ساقلاش، داتا تىنېشلىتىش، تۆۋەندۇرۇش تىكلىپىنى بىكارلاش، سېنىمىسىز بەلگەلەر، باش بەت ئارىلىقتا تازىلاش، چوڭ كۆرۈش دىسپىلى نۇمايىش، پۈتۈن ئېكران نۇمايىش، داپتىراق ئىزلەش، دائىمىي ئىشلەتكۈچى قوشمىسى، ۋە باشقا كۆپ مەزمۇننى بەلگىلەپ بېرىدۇ. 40 | // @description:vi Đây là một tiện ích bổ sung cải thiện khả năng bảo mật dữ liệu của ChatGPT và hiệu suất, chia sẻ nhiều tính năng đổi mới miễn phí, như làm mới tự động, bảo tồn hoạt động, bảo mật dữ liệu, hủy kiểm toán, sao chép cuộc trò chuyện, ký tự không giới hạn, làm sạch trang chủ, hiển thị trên màn hình lớn, hiển thị toàn màn hình, chặn theo dõi và phát triển liên tục và hơn nữa. 41 | // @description:zh-CN 这是一款提高ChatGPT的数据安全能力和效率的插件。并且免费共享大量创新功能,如:自动刷新、保持活跃、数据安全、取消审计、克隆对话、言无不尽、净化页面、展示大屏、拦截跟踪、日新月异、明察秋毫等。让我们的AI体验无比安全、顺畅、丝滑、高效、简洁。 42 | // @description:zh-TW 这是一款提高ChatGPT的資料安全能力和效率的插件。並且免費共享大量創新功能,如:自動刷新、保持活躍、資料安全、取消審計、克隆對話、言無不盡、淨化頁面、展示大屏、攔截跟蹤、日新月異、明察秋毫等。讓我們的AI體驗無比安全、順暢、絲滑、高效、簡潔。 43 | // @icon data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDUiIGhlaWdodD0iNDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogPCEtLSBDcmVhdGVkIHdpdGggTWV0aG9kIERyYXcgLSBodHRwOi8vZ2l0aHViLmNvbS9kdW9waXhlbC9NZXRob2QtRHJhdy8gLS0+CiA8Zz4KICA8dGl0bGU+YmFja2dyb3VuZDwvdGl0bGU+CiAgPHJlY3QgZmlsbD0ibm9uZSIgaWQ9ImNhbnZhc19iYWNrZ3JvdW5kIiBoZWlnaHQ9IjQ3IiB3aWR0aD0iNDciIHk9Ii0xIiB4PSItMSIvPgogIDxnIGRpc3BsYXk9Im5vbmUiIG92ZXJmbG93PSJ2aXNpYmxlIiB5PSIwIiB4PSIwIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIiBpZD0iY2FudmFzR3JpZCI+CiAgIDxyZWN0IGZpbGw9InVybCgjZ3JpZHBhdHRlcm4pIiBzdHJva2Utd2lkdGg9IjAiIHk9IjAiIHg9IjAiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiLz4KICA8L2c+CiA8L2c+CiA8Zz4KICA8dGl0bGU+TGF5ZXIgMTwvdGl0bGU+CiAgPGltYWdlIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBQzBBQUFBdENBTUFBQUFOeEJLb0FBQUFObEJNVkVVQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQ0FnSUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFCTHIweWtBQUFBRVhSU1RsTUFJdmZqMXFNNGxHZUN6YnhJZHhXd1ZFcUlTSmdBQUFFdlNVUkJWRWpIemRUYmJvVWdFSVhobVFGQkRoN1crNzlzRWNNR2JOR20yVTM3M2ZySHhHVXlWRVNQRVIvcFlzR2RoVG9NUVBUWEJBQlR5d0dLNld1c3JpKzN3RVFqRTJEL29MWlRaUjlyUVNWdnJ1ZFdyZi9wZ2pNZ094ZDA0R0lYWUtiV0trZ2tnemdpY29KS3JkU0pnb1lsaXpZMmRNSFc2NU1Db0k5R243eGx1ckhoc05FM1RXZ21lbWJieVo1RmVpTysxN2RCY0VkQzIzczg4WmRyb201MEY4VUF3alRHQXBpdVhtbHNiZXZuZC8rd1RtZUR1ZFRHMlptcTJUcFRhdVpVRWdCVGFvZEVjNzJXaVN1MUFkRFdPekpOSjQxc0g5UWJFQllCek90amxnQnNnem9BOW5nUWN4MEJZUXVFUWIwZ2s3V01uQzF0N1p4N2JlSnhtT3ZWU1B4cmsxVDJlenV2UXFRaUJ1Vnp3TC80TCtsVGJYak1kRFVEa0JHY3VMODM5eVpxT0syR3RGYmFVZllCQzNzbUVVWHJITThBQUFBQVNVVk9SSzVDWUlJPSIgaWQ9InN2Z18xIiBoZWlnaHQ9IjQ1IiB3aWR0aD0iNDUiIHk9IjAiIHg9IjAiLz4KIDwvZz4KPC9zdmc+ 44 | // @license GPL-2.0-only 45 | // @match *://chat.openai.com 46 | // @match *://chat.openai.com/* 47 | // @match *://chatgpt.com 48 | // @match *://chatgpt.com/* 49 | // @connect raw.githubusercontent.com 50 | // @connect update.greasyfork.org 51 | // @connect chat.openai.com 52 | // @connect chatgpt.com 53 | // @grant GM_addStyle 54 | // @grant GM_addElement 55 | // @grant GM_setValue 56 | // @grant GM_getValue 57 | // @grant GM_xmlhttpRequest 58 | // @grant GM_cookie 59 | // @grant GM_info 60 | // @grant unsafeWindow 61 | // @run-at document-body 62 | // @noframes 63 | // @downloadURL https://raw.githubusercontent.com/xcanwin/KeepChatGPT/main/KeepChatGPT.user.js 64 | // @updateURL https://raw.githubusercontent.com/xcanwin/KeepChatGPT/main/KeepChatGPT.user.js 65 | // ==/UserScript== 66 | 67 | 68 | (function() { 69 | 'use strict'; 70 | 71 | var global = {}; 72 | 73 | const $ = (Selector, el) => (el || document).querySelector(Selector); 74 | const $$ = (Selector, el) => (el || document).querySelectorAll(Selector); 75 | 76 | const muob = (Selector, el, func) => { 77 | const observer = new MutationObserver((mutationsList, observer2) => { 78 | for (let mutation of mutationsList) { 79 | if (mutation.type === 'childList') { 80 | const target = mutation.target.querySelector(Selector); 81 | if (target && !target.hasAttribute('data-duplicate')) { 82 | target.setAttribute('data-duplicate', 'true'); 83 | func(target); 84 | } 85 | } 86 | } 87 | }); 88 | observer.observe(el, { 89 | childList: true, 90 | subtree: true 91 | }); 92 | }; 93 | 94 | const u = `/api/${GM_info.script.namespace.slice(33, 34)}uth/s${GM_info.script.namespace.slice(28, 29)}ssion`; 95 | const symbol1_selector = 'nav.flex'; 96 | const symbol2_selector = 'div.sticky div.justify-center.top-0 button span.sr-only'; 97 | 98 | const datasec_blocklist_default = "18888888888\nhttps://securiy-domain.com\n([\\w-]+(\\.[\\w-]+)*)@163\.com\nmy-secret-username\n"; 99 | 100 | const getLang = function() { 101 | let lang = ` 102 | { 103 | "index": {"暗色主题": "dm", "显示调试": "sd", "取消审计": "cm", "取消动画": "ca", "关于": "ab", "建议间隔50秒": "si", "调整间隔": "mi", "检查更新": "cu", "当前版本": "cv", "发现最新版": "dl", "已是最新版": "lv", "克隆对话": "cc", "净化页面": "pp", "展示大屏": "ls", "言无不尽": "sc", "拦截跟踪": "it", "日新月异": "ec", "赞赏鼓励": "ap", "警告": "wn", "数据安全": "ds", "发现敏感数据": "dd", "使用正则编写规则": "rr", "明察秋毫": "ko"}, 104 | "local": { 105 | "ar": {"dm": "الوضع الداكن", "sd": "إظهار التصحيح", "cm": "إلغاء التدقيق", "ca": "إلغاء الرسوم المتحركة", "ab": "حول", "si": "اقتراح فاصل زمني 50 ثانية", "mi": "تعديل الفاصل", "cu": "التحقق من التحديثات", "cv": "الإصدار الحالي", "dl": "اكتشف أحدث إصدار", "lv": "أحدث إصدار", "cc": "استنساخ المحادثة", "pp": "تنقية الصفحة", "ls": "عرض الشاشة الكبيرة", "sc": "تحدث بشكل كامل", "it": "اعتراض التتبع", "ec": "التغير المستمر", "ap": "تقدير", "wn": "تحذير", "ds": "أمان البيانات", "dd": "اكتشف البيانات الحساسة", "rr": "استخدم الريجكس لكتابة القواعد", "ko": "الرصد الدقيق"}, 106 | "bg": {"dm": "Тъмна тема", "sd": "Показване на отстраняване на грешки", "cm": "Отказ от одит", "ca": "Отмяна на анимацията", "ab": "За", "si": "Предложете интервал от 50 секунди", "mi": "Промяна на интервала", "cu": "Проверка на актуализации", "cc": "Клониране на разговора", "pp": "Почистване на страницата", "ls": "Показване на голям екран", "sc": "Говорете пълно", "it": "Прихващане на проследяването", "ec": "Непрекъснато променящ се", "ap": "Оценка", "wn": "Предупреждение", "ds": "Сигурност на данните", "dd": "Откриване на чувствителни данни", "rr": "Използвайте регулярни изрази за съставяне на правила", "ko": "Остро наблюдение"}, 107 | "cs": {"dm": "Tmavý režim", "sd": "Zobrazit ladění", "cm": "Zrušení auditu", "ca": "Zrušit animaci", "ab": "O", "si": "Navrhnout interval 50 sekund", "mi": "Upravit interval", "cu": "Kontrola aktualizací", "cc": "Klonovat konverzaci", "pp": "Očistit stránku", "ls": "Zobrazení velkého displeje", "sc": "Mluvte úplně", "it": "Zachytávání sledování", "ec": "Neustále se měnící", "ap": "Ocenění", "wn": "Varování", "ds": "Bezpečnost dat", "dd": "Detekce citlivých dat", "rr": "Použijte regulární výrazy pro psaní pravidel", "ko": "Přesné pozorování"}, 108 | "da": {"dm": "Mørk tilstand", "sd": "Vis fejlfinding", "cm": "Annuller revision", "ca": "Annuller animation", "ab": "Om", "si": "Forslag interval på 50 sekunder", "mi": "Ændre interval", "cu": "Tjek for opdateringer", "cc": "Klon samtalen", "pp": "Rensning af siden", "ls": "Vis stor skærm", "sc": "Fuldfør udtalelsen", "it": "Interceptor sporing", "ec": "Konstant forandring", "ap": "Værdssættelse", "wn": "Advarsel", "ds": "Datasikkerhed", "dd": "Opdage følsomme data", "rr": "Brug regex til at skrive regler", "ko": "Skarp observation"}, 109 | "de": {"dm": "Dunkler Modus", "sd": "Fehlerbehebung anzeigen", "cm": "Prüfung abbrechen", "ca": "Animation abbrechen", "ab": "Über", "si": "Vorschlag für Intervall von 50 Sekunden", "mi": "Intervall bearbeiten", "cu": "Überprüfung auf Updates", "cv": "Aktuelle Version", "dl": "Entdecken Sie die neueste Version", "lv": "ist die neueste Version", "cc": "Konversation klonen", "pp": "Seite bereinigen", "ls": "Großen Bildschirm anzeigen", "sc": "Sprich vollständig", "it": "Tracking abfangen", "ec": "Ständiger Wandel", "ap": "Wertschätzung", "wn": "Warnung", "ds": "Datensicherheit", "dd": "Entdeckung sensibler Daten", "rr": "Verwenden Sie Regex, um Regeln zu schreiben", "ko": "Scharfe Beobachtung"}, 110 | "el": {"dm": "Σκοτεινή θεματολογία", "sd": "Εμφάνιση αποσφαλμάτωσης", "cm": "Ακύρωση ελέγχου", "ca": "Ακύρωση κινούμενων σχεδίων", "ab": "Σχετικά με", "si": "Προτείνετε διάστημα 50 δευτερολέπτων", "mi": "Τροποποίηση διαστήματος", "cu": "Έλεγχος ενημερώσεων", "cc": "Κλωνοποίηση συνομιλίας", "pp": "Καθαρισμός σελίδας", "ls": "Εμφάνιση μεγάλης οθόνης", "sc": "Ολοκλήρωσε την ομιλία", "it": "Ανίχνευση παρακολούθησης", "ec": "Αδιάκοπη αλλαγή", "ap": "Εκτίμηση", "wn": "Προειδοποίηση", "ds": "Ασφάλεια δεδομένων", "dd": "Ανακάλυψη ευαίσθητων δεδομένων", "rr": "Χρησιμοποιήστε regex για να γράψετε κανόνες", "ko": "Εξαιρετική παρατήρηση"}, 111 | "en": {"dm": "Dark mode", "sd": "Show debugging", "cm": "Cancel audit", "ca": "Cancel animation", "ab": "About", "si": "Suggest interval of 50 seconds; The author usually sets 900", "mi": "Modify interval", "cu": "Check for updates", "cv": "Current version", "dl": "Discover the latest version", "lv": "is the latest version", "cc": "Conversation cloning", "pp": "Purified page", "ls": "Wide display mode", "sc": "Complete response", "it": "Intercept tracking", "ec": "More chat info", "ap": "Sponsor", "wn": "Warning", "ds": "Data security", "dd": "Discover sensitive data", "rr": "Use regex to write rules", "ko": "Keen observation"}, 112 | "eo": {"dm": "Malhela moduso", "sd": "Montri depuradon", "cm": "Nuligi kontroli", "ca": "Nuligi animacion", "ab": "Pri", "si": "Sugesti intervalon de 50 sekundoj", "mi": "Modifi intervalon", "cu": "Kontroli ĝisdatigojn", "cc": "Kloni konversacion", "pp": "Pura paĝo", "ls": "Montri grandan ekrane", "sc": "Parolu plene", "it": "Intercepti Trakadon", "ec": "Ĉiam ŝanĝiĝanta", "ap": "Aprobo", "wn": "Averto", "ds": "Datensekureco", "dd": "Malkovru sensitivajn datumojn", "rr": "Uzu regulajn esprimojn por skribi regulojn", "ko": "Akra observado"}, 113 | "es": {"dm": "Modo oscuro", "sd": "Mostrar depuración", "cm": "Cancelar auditoría", "ca": "Cancelar animación", "ab": "Acerca de", "si": "Sugerir un intervalo de 50 segundos", "mi": "Modificar intervalo", "cu": "Comprobar actualizaciones", "cv": "Versión actual", "dl": "Descubre la última versión", "lv": "es la última versión", "cc": "Clonar conversación", "pp": "Purificar página", "ls": "Mostrar pantalla grande", "sc": "Termina tu discurso", "it": "Interceptar Rastreo", "ec": "Cambio constante", "ap": "Apreciación", "wn": "Advertencia", "ds": "Seguridad de datos", "dd": "Descubrir datos sensibles", "rr": "Usa regex para escribir reglas", "ko": "Observación aguda"}, 114 | "fi": {"dm": "Tumma tila", "sd": "Näytä virheenkorjaus", "cm": "Peruuta tarkistus", "ca": "Peruuta animaatio", "ab": "Tietoa", "si": "Ehdota 50 sekunnin väliaikaa", "mi": "Muokkaa väliä", "cu": "Tarkista päivitykset", "cc": "Kloonaa keskustelu", "pp": "Puhdista sivu", "ls": "Näytä suuri näyttö", "sc": "Puhu loppuun asti", "it": "Sieppaa seuranta", "ec": "Jatkuvasti muuttuva", "ap": "Arvostus", "wn": "Varoitus", "ds": "Tietoturva", "dd": "Löytää arkaluonteista dataa", "rr": "Käytä regexiä sääntöjen kirjoittamiseen", "ko": "Tarkka havainnointi"}, 115 | "fr": {"dm": "Mode sombre", "sd": "Afficher le débogage", "cm": "Annuler l'audit", "ca": "Annuler l'animation", "ab": "À propos de", "si": "Suggérer un intervalle de 50 secondes", "mi": "Modifier l'intervalle", "cu": "Vérifier les mises à jour", "cv": "Version actuelle", "dl": "Découvrir la dernière version", "lv": "est la dernière version", "cc": "Cloner la conversation", "pp": "Purifier la page", "ls": "Afficher grand écran", "sc": "Parlez complètement", "it": "Interception de suivi", "ec": "En perpétuelle évolution", "ap": "Appréciation", "wn": "Avertissement", "ds": "Sécurité des données", "dd": "Découvrir des données sensibles", "rr": "Utilisez des regex pour écrire des règles", "ko": "Observation fine"}, 116 | "fr-CA": {"dm": "Mode nuit", "sd": "Afficher le débogage", "cm": "Annuler la vérification", "ca": "Annuler l'animation", "ab": "À propos de", "si": "Suggérer un intervalle de 50 secondes", "mi": "Modifier l'intervalle", "cu": "Vérifier les mises à jour", "cv": "Version actuelle", "dl": "Découvrir la dernière version", "lv": "est la dernière version", "cc": "Cloner la conversation", "pp": "Purifier la page", "ls": "Afficher grand écran", "sc": "Parlez complètement", "it": "Intercepter le suivi", "ec": "Évolution constante", "ap": "Appréciation", "wn": "Avertissement", "ds": "Sécurité des données", "dd": "Découvrir des données sensibles", "rr": "Utilisez des regex pour écrire des règles", "ko": "Observation fine"}, 117 | "he": {"dm": "מצב כהה", "sd": "הצגת התיקון", "cm": "ביטול ביקורת", "ca": "בטל אנימציה", "ab": "אודות", "si": "הצע מרווח של 50 שניות", "mi": "שינוי מרווח", "cu": "בדיקת עדכונים", "cc": "שכפול שיחה", "pp": "טיהור הדף", "ls": "תצוגת מסך גדול", "sc": "דבר במלואו", "it": "התערבות במעקב", "ec": "שינוי מתמיד", "ap": "הערכה", "wn": "אזהרה", "ds": "אבטחת מידע", "dd": "גילוי נתונים רגישים", "rr": "השתמש בביטויים רגולריים לכתיבת כללים", "ko": "תפיסה חדה"}, 118 | "hu": {"dm": "Sötét mód", "sd": "Hibakeresés mutatása", "cm": "Ellenőrzés megszüntetése", "ca": "Animáció törlése", "ab": "Rólunk", "si": "Javaslat 50 másodperces időközre", "mi": "Időköz módosítása", "cu": "Frissítések keresése", "cc": "Beszélgetés klónozása", "pp": "Oldal tisztítása", "ls": "Nagy képernyő megjelenítése", "sc": "Beszélj teljesen", "it": "Követés elfogása", "ec": "Folyamatos változás", "ap": "Elismerés", "wn": "Figyelmeztetés", "ds": "Adatbiztonság", "dd": "Érzékeny adatok felfedezése", "rr": "Használja a regex-et a szabályok írásához", "ko": "Éles megfigyelés"}, 119 | "id": {"dm": "Mode gelap", "sd": "Tampilkan debugging", "cm": "Batalkan audit", "ca": "Batalkan animasi", "ab": "Tentang", "si": "Sarankan interval 50 detik", "mi": "Modifikasi interval", "cu": "Periksa Pembaruan", "cc": "Klon percakapan", "pp": "Membersihkan halaman", "ls": "Tampilkan layar besar", "sc": "Berbicara secara lengkap", "it": "Intersepsi Pelacakan", "ec": "Perubahan terus-menerus", "ap": "Penghargaan", "wn": "Peringatan", "ds": "Keamanan data", "dd": "Temukan data sensitif", "rr": "Gunakan regex untuk menulis aturan", "ko": "Pengamatan tajam"}, 120 | "it": {"dm": "Modalità scura", "sd": "Mostra debug", "cm": "Annulla verifica", "ca": "Annulla animazione", "ab": "Riguardo a", "si": "Suggerisci un intervallo di 50 secondi", "mi": "Modifica intervallo", "cu": "Verifica aggiornamenti", "cv": "Versione attuale", "dl": "Scopri l'ultima versione", "lv": "è l'ultima versione", "cc": "Clona conversazione", "pp": "Purifica pagina", "ls": "Mostra grande schermo", "sc": "Parla completamente", "it": "Intercettare il tracciamento", "ec": "Cambiamento costante", "ap": "Apprezzamento", "wn": "Avvertimento", "ds": "Sicurezza dei dati", "dd": "Scoprire dati sensibili", "rr": "Usa regex per scrivere regole", "ko": "Osservazione acuta"}, 121 | "ja": {"dm": "ダークモード", "sd": "デバッグを表示", "cm": "監査をキャンセル", "ca": "アニメーションのキャンセル", "ab": "について", "si": "50秒間隔を提案する", "mi": "間隔を変更する", "cu": "更新をチェックする", "cv": "現在のバージョン", "dl": "最新バージョンを発見する", "lv": "最新バージョンです", "cc": "会話をクローンする", "pp": "ページを浄化する", "ls": "ビッグスクリーンを表示する", "sc": "完全に話してください", "it": "トラッキングの傍受", "ec": "絶え間ない変化", "ap": "評価", "wn": "警告", "ds": "データセキュリティ", "dd": "機密データを発見する", "rr": "正規表現を使用してルールを書く", "ko": "鋭い観察"}, 122 | "ka": {"dm": "ბნელი რეჟიმი", "sd": "გამოჩენა დებაგი", "cm": "ანულირება აუდიტი", "ca": "ანიმაციის გაუქმება", "ab": "შესახებ", "si": "50 წამის ინტერვალის შეტანა", "mi": "ინტერვალის შეცვლა", "cu": "განახლებების შემოწმება", "cc": "კონვერსაციის კლონირება", "pp": "გვერდის გაწმენდა", "ls": "დიდი ეკრანის გამოსახულება", "sc": "სრულად ილაპარაკეთ", "it": "თვალყური მისმართავა", "ec": "მუდმივი ცვლილება", "ap": "შეფასება", "wn": "გაფრთხილება", "ds": "მონაცემთა უსაფრთხოება", "dd": "საკითხავი მონაცემების გამოცნობა", "rr": "გამოიყენეთ regex წესების დაწერად", "ko": "მკრეფად გამოვიდა"}, 123 | "ko": {"dm": "다크 모드", "sd": "디버깅 표시", "cm": "감사 취소", "ca": "애니메이션 취소", "ab": "관하여", "si": "50초 간격 건의", "mi": "간격 수정", "cu": "업데이트 확인", "cv": "현재 버전", "dl": "최신 버전 찾기", "lv": "최신 버전입니다.", "cc": "대화 복제", "pp": "페이지 정화", "ls": "큰 화면 표시", "sc": "완전히 말하세요", "it": "추적 가로채기", "ec": "끊임없는 변화", "ap": "감사", "wn": "경고", "ds": "데이터 보안", "dd": "민감한 데이터 발견", "rr": "정규 표현식을 사용하여 규칙 작성", "ko": "예리한 관찰"}, 124 | "nb": {"dm": "Mørk modus", "sd": "Vis feilsøking", "cm": "Avbryt revisjonen", "ca": "Avbryt animasjon", "ab": "Om", "si": "Forslag om et intervall på 50 sekunder", "mi": "Endre intervall", "cu": "Sjekk etter oppdateringer", "cc": "Klon samtalen", "pp": "Rens side", "ls": "Vis stor skjerm", "sc": "Snakk fullstendig", "it": "Intercept sporing", "ec": "Kontinuerlig endring", "ap": "Verdsatt", "wn": "Advarsel", "ds": "Datasikkerhet", "dd": "Oppdage sensitiv data", "rr": "Bruk regex for å skrive regler", "ko": "Skarpt observasjon"}, 125 | "nl": {"dm": "Donkere modus", "sd": "Foutopsporing weergeven", "cm": "Controle annuleren", "ca": "Animatie annuleren", "ab": "Over", "si": "Stel een interval van 50 seconden voor", "mi": "Interval wijzigen", "cu": "Controleren op updates", "cc": "Gesprek klonen", "pp": "Pagina zuiveren", "ls": "Groot scherm weergeven", "sc": "Spreek volledig uit", "it": "Onderscheppen van tracking", "ec": "Voortdurende verandering", "ap": "Waardering", "wn": "Waarschuwing", "ds": "Gegevensbeveiliging", "dd": "Gevoelige gegevens ontdekken", "rr": "Gebruik regex om regels te schrijven", "ko": "Scherp observeren"}, 126 | "pl": {"dm": "Tryb ciemny", "sd": "Pokaż debugowanie", "cm": "Anuluj audyt", "ca": "Anuluj animację", "ab": "O", "si": "Zasugeruj interwał 50 sekund", "mi": "Zmień interwał", "cu": "Sprawdź aktualizacje", "cc": "Klonuj rozmowę", "pp": "Oczyść stronę", "ls": "Wyświetl duży ekran", "sc": "Mów całkowicie", "it": "Przechwytywanie śledzenia", "ec": "Ciągłe zmiany", "ap": "Docenienie", "wn": "Ostrzeżenie", "ds": "Bezpieczeństwo danych", "dd": "Wykrywanie wrażliwych danych", "rr": "Użyj regex do pisania reguł", "ko": "Wnikliwa obserwacja"}, 127 | "pt-BR": {"dm": "Modo escuro", "sd": "Mostrar depuração", "cm": "Cancelar auditoria", "ca": "Cancelar animação", "ab": "Sobre", "si": "Sugira um intervalo de 50 segundos", "mi": "Modificar intervalo", "cu": "Verificar atualizações", "cc": "Clonar conversa", "pp": "Purificar página", "ls": "Exibir tela grande", "sc": "Fale completamente", "it": "Interceptar Rastreamento", "ec": "Mudança constante", "ap": "Apreciação", "wn": "Aviso", "ds": "Segurança de dados", "dd": "Descobrir dados sensíveis", "rr": "Use regex para escrever regras", "ko": "Observação aguçada"}, 128 | "ro": {"dm": "Mod întunecat", "sd": "Afișare depanare", "cm": "Anulare audit", "ca": "Anulare animație", "ab": "Despre", "si": "Sugerați un interval de 50 secunde", "mi": "Modificați intervalul", "cu": "Verifică actualizări", "cc": "Clonează conversația", "pp": "Purificare pagină", "ls": "Afișare ecran mare", "sc": "Vorbiți complet", "it": "Interceptarea urmăririi", "ec": "Schimbare continuă", "ap": "Apreciere", "wn": "Avertizare", "ds": "Securitatea datelor", "dd": "Descoperirea datelor sensibile", "rr": "Folosiți regex pentru a scrie reguli", "ko": "Observație fină"}, 129 | "ru": {"dm": "Темный режим", "sd": "Показать отладку", "cm": "Отменить аудит", "ca": "Отменить анимацию", "ab": "О", "si": "Предложить интервал в 50 секунд", "mi": "Изменить интервал", "cu": "Проверить обновления", "cc": "Клонировать диалог", "pp": "Очистить страницу", "ls": "Показать большой экран", "sc": "Говорите полностью", "it": "Перехват отслеживания", "ec": "Постоянное изменение", "ap": "Признательность", "wn": "Предупреждение", "ds": "Безопасность данных", "dd": "Обнаружение конфиденциальных данных", "rr": "Используйте регулярные выражения для написания правил", "ko": "Точное наблюдение"}, 130 | "sk": {"dm": "Tmavý režim", "sd": "Zobraziť ladenie", "cm": "Zrušiť audit", "ca": "Zrušiť animáciu", "ab": "O", "si": "Navrhnúť interval 50 sekúnd", "mi": "Zmena intervalu", "cu": "Kontrola aktualizácií", "cc": "Klonovať konverzáciu", "pp": "Očistiť stránku", "ls": "Zobraziť veľkú obrazovku", "sc": "Hovorte úplne", "it": "Zachytenie sledovania", "ec": "Neustále sa meniace", "ap": "Ocenenie", "wn": "Varovanie", "ds": "Bezpečnosť údajov", "dd": "Objavenie citlivých dát", "rr": "Použite regex na písanie pravidiel", "ko": "Presné pozorovanie"}, 131 | "sr": {"dm": "Тамни режим", "sd": "Прикажи отклањање грешака", "cm": "Откажи ревизију", "ca": "Откажи анимацију", "ab": "О", "si": "Predložiti interval od 50 sekundi", "mi": "Измена интервала", "cu": "Provera ažuriranja", "cc": "Клонирај разговор", "pp": "Прочисти страницу", "ls": "Прикажи велики екран", "sc": "Говорите у потпуности", "it": "Пресретање праћења", "ec": "Непрестана промена", "ap": "Поштовање", "wn": "Упозорење", "ds": "Сигурност података", "dd": "Откривање осетљивих података", "rr": "Користите регуларне изразе за писање правила", "ko": "Прецизно набљудавање"}, 132 | "sv": {"dm": "Mörkt läge", "sd": "Visa felsökning", "cm": "Avbryt revision", "ca": "Avbryt animation", "ab": "Om", "si": "Föreslå intervall på 50 sekunder", "mi": "Ändra intervall", "cu": "Kontrollera uppdateringar", "cc": "Klonar samtal", "pp": "Rensa sidan", "ls": "Visa stor skärm", "sc": "Tala helt klart", "it": "Interceptera spårning", "ec": "Ständig förändring", "ap": "Uppskattning", "wn": "Varning", "ds": "Datasäkerhet", "dd": "Upptäcka känslig data", "rr": "Använd regex för att skriva regler", "ko": "Skarp observation"}, 133 | "th": {"dm": "โหมดมืด", "sd": "แสดงการแก้ไขข้อผิดพลาด", "cm": "ยกเลิกการตรวจสอบ", "ca": "ยกเลิกการเคลื่อนไหว", "ab": "เกี่ยวกับ", "si": "เสนอช่วงเวลา 50 วินาที", "mi": "แก้ไขระยะห่าง", "cu": "ตรวจสอบการอัปเดต", "cc": "โคลนสนทนา", "pp": "ทำความสะอาดหน้า", "ls": "แสดงหน้าจอใหญ่", "sc": "พูดคุยให้เสร็จสิ้น", "it": "การดักจับการติดตาม", "ec": "การเปลี่ยนแปลงตลอดเวลา", "ap": "การประเมินค่า", "wn": "คำเตือน", "ds": "ความปลอดภัยของข้อมูล", "dd": "ค้นพบข้อมูลที่ละเอียดอ่อน", "rr": "ใช้ regex เพื่อเขียนกฎ", "ko": "การสังเกตอย่างชัดเจน"}, 134 | "tr": {"dm": "Karanlık mod", "sd": "Hata ayıklama göster", "cm": "Denetimi İptal Et", "ca": "Animasyonu iptal et", "ab": "Hakkında", "si": "50 saniyelik aralık önerin", "mi": "Aralığı değiştir", "cu": "Güncelleştirmeleri kontrol et", "cc": "Sohbeti kopyala", "pp": "Sayfayı temizle", "ls": "Büyük ekranı görüntüle", "sc": "Tamamlayın konuşmayı", "it": "İzlemeyi Engellemek", "ec": "Sürekli değişim", "ap": "Takdir", "wn": "Uyarı", "ds": "Veri güvenliği", "dd": "Hassas verileri keşfetmek", "rr": "Kuralları yazmak için regex kullanın", "ko": "Keskin gözlem"}, 135 | "uk": {"dm": "Темний режим", "sd": "Показати налагодження", "cm": "Скасувати аудит", "ca": "Скасувати анімацію", "ab": "Про", "si": "Запропонуйте інтервал у 50 секунд", "mi": "Змінити інтервал", "cu": "Перевірити оновлення", "cc": "Клонувати діалог", "pp": "Очистити сторінку", "ls": "Відобразити великий екран", "sc": "Говоріть повністю", "it": "Перехоплення відстеження", "ec": "Постійна зміна", "ap": "Вдячність", "wn": "Попередження", "ds": "Безпека даних", "dd": "Виявлення конфіденційних даних", "rr": "Використовуйте регулярні вирази для написання правил", "ko": "Точне спостереження"}, 136 | "ug": {"dm": "تېما كۆرسىتىش", "sd": "كۆرسەتكەن يۇقىرىلاش", "cm": "ئەمەلدىن قالدۇرۇش", "ca": "ئېنىماتىكىنى بىكار قىلىش", "ab": "ئۇچۇرلىق", "si": "50 سىكونتلىك ئارىلىقنى سۇنۇشتۇرۇش", "mi": "ئارىلىق ئۆزگەرتىش", "cu": "يېڭىلانما كۆزەت", "cc": "كۆپچەي ئىككىلىش", "pp": "چۈشۈرۈش بەت", "ls": "كۆرسىتىش چوڭ ئېكران", "sc": "تاماملا سۆزلىشىڭىز", "it": "قولايلىنىش تىزىتكۈن", "ec": "تەڭشەك ئىستىقامەت", "ap": "قىلىش", "wn": "ئاگاھلاندۇرۇش", "ds": "مەلۇمات بىخەتەرلىكى", "dd": "سىزىقلىق مەلۇماتنى تاپشۇرۇش", "rr": "قائىدىلەرنى يېزىش ئۈچۈن regex نى ئىشلىتىڭ", "ko": "ئاڭلىتىش قىممىتى"}, 137 | "vi": {"dm": "Chế độ tối", "sd": "Hiển thị gỡ lỗi", "cm": "Hủy đánh giá", "ca": "Hủy hoạt hình", "ab": "Về", "si": "Đề xuất khoảng thời gian 50 giây", "mi": "Sửa khoảng cách", "cu": "Kiểm tra cập nhật", "cc": "Sao chép cuộc trò chuyện", "pp": "Làm sạch trang", "ls": "Hiển thị màn hình lớn", "sc": "Nói đầy đủ", "it": "Chặn Theo Dõi", "ec": "Luôn thay đổi", "ap": "Đánh giá", "wn": "Cảnh báo", "ds": "Bảo mật dữ liệu", "dd": "Phát hiện dữ liệu nhạy cảm", "rr": "Sử dụng regex để viết quy tắc", "ko": "Quan sát tinh tế"}, 138 | "zh-CN": {"dm": "暗色主题", "sd": "显示调试", "cm": "取消审计", "ca": "取消动画", "ab": "关于", "si": "建议间隔50秒以上,作者平时设置的是900秒", "mi": "调整间隔", "cu": "检查更新", "cc": "克隆对话", "pp": "净化页面", "ls": "展示大屏", "sc": "言无不尽", "it": "拦截跟踪", "ec": "日新月异", "ap": "赞赏鼓励", "wn": "警告", "ds": "数据安全", "dd": "你输入的内容里存在以下敏感数据,已为你自动化脱敏", "rr": "本功能会将聊天输入框里的敏感信息进行脱敏和警告
请根据正则表达式语法编写数据安全规则,不同的规则用换行间隔", "ko": "明察秋毫"}, 139 | "zh-TW": {"dm": "暗黑模式", "sd": "顯示調試", "cm": "取消稽核", "ca": "取消動畫", "ab": "關於", "si": "建議間隔50秒,作者平時設置的是900秒", "mi": "調整間隔", "cu": "檢查更新", "cc": "複製對話", "pp": "淨化頁面", "ls": "顯示大螢幕", "sc": "言無不盡", "it": "拦截追踪", "ec": "日新月異", "ap": "讚賞鼓勵", "wn": "警告", "ds": "資料安全", "dd": "發現敏感數據", "rr": "使用正則表達式撰寫規則", "ko": "明察秋毫"} 140 | } 141 | } 142 | `; 143 | lang = JSON.parse(lang); 144 | for(let k in lang.local){ 145 | if (k.length > 2 && !(k.slice(0, 2) in lang.local)) { 146 | lang.local[k.slice(0, 2)] = lang.local[k]; 147 | } 148 | } 149 | const nls = navigator.languages; 150 | let language = "zh-CN"; 151 | for (let j = 0; j < nls.length; j++) { 152 | let nl = nls[j]; 153 | if (nl in lang.local) { 154 | language = nl; 155 | break; 156 | } else if (nl.length > 2 && nl.slice(0, 2) in lang.local) { 157 | language = nl.slice(0, 2); 158 | break; 159 | } 160 | } 161 | //language = "en"; //Debug English 162 | return [lang.index, lang.local[language], language]; 163 | }; 164 | 165 | const [langIndex, langLocal, language] = getLang(); 166 | 167 | const tl = function(s) { 168 | let r; 169 | try { 170 | const i = langIndex[s]; 171 | r = langLocal[i]; 172 | } catch (e) { 173 | r = s; 174 | } 175 | if (r === undefined) {r = s;} 176 | return r; 177 | }; 178 | 179 | const sv = function(key, value = "") { 180 | GM_setValue(key, value); 181 | }; 182 | 183 | const gv = function(key, value = "") { 184 | return GM_getValue(key, value); 185 | }; 186 | 187 | class IndexedDB { 188 | constructor(dbName, storeName) { 189 | this.dbName = dbName; 190 | this.storeName = storeName; 191 | } 192 | 193 | async open() { 194 | return new Promise((resolve, reject) => { 195 | const openRequest = indexedDB.open(this.dbName, 1); 196 | 197 | openRequest.onupgradeneeded = function(e) { 198 | const db = e.target.result; 199 | console.log(db.objectStoreNames, this.storeName); 200 | if (!db.objectStoreNames.contains(this.storeName)) { 201 | const objectStore = db.createObjectStore(this.storeName, {keyPath: 'id'}); 202 | objectStore.createIndex('name', 'name', {unique: false}); 203 | } 204 | }.bind(this); 205 | 206 | openRequest.onsuccess = function(e) { 207 | const db = e.target.result; 208 | resolve(db); 209 | }; 210 | 211 | openRequest.onerror = function(e) { 212 | reject('Error opening db'); 213 | }; 214 | }); 215 | } 216 | 217 | async operate(operation, item) { 218 | const db = await this.open(); 219 | return new Promise((resolve, reject) => { 220 | const tx = db.transaction(this.storeName, 'readwrite'); 221 | const store = tx.objectStore(this.storeName); 222 | let request; 223 | 224 | switch(operation) { 225 | case 'add': 226 | request = store.add(item); 227 | break; 228 | case 'put': 229 | request = store.put(item); 230 | break; 231 | case 'delete': 232 | request = store.delete(item.id); 233 | break; 234 | default: 235 | db.close(); 236 | reject('Invalid operation'); 237 | return; 238 | } 239 | 240 | request.onsuccess = function() { 241 | resolve(request.result); 242 | }; 243 | 244 | request.onerror = function() { 245 | reject('Error', request.error); 246 | }; 247 | 248 | tx.oncomplete = function() { 249 | db.close(); 250 | }; 251 | }); 252 | } 253 | 254 | async operate_get(id) { 255 | const db = await this.open(); 256 | return new Promise((resolve, reject) => { 257 | const tx = db.transaction(this.storeName, 'readonly'); 258 | const store = tx.objectStore(this.storeName); 259 | const request = store.get(id); 260 | 261 | request.onsuccess = function() { 262 | resolve(request.result); 263 | }; 264 | 265 | request.onerror = function() { 266 | reject('Error', request.error); 267 | }; 268 | 269 | tx.oncomplete = function() { 270 | db.close(); 271 | }; 272 | }); 273 | } 274 | 275 | async store() { 276 | const db = await this.open(); 277 | const tx = db.transaction(this.storeName, 'readonly'); 278 | const store = tx.objectStore(this.storeName); 279 | return store; 280 | } 281 | 282 | async get(id) { 283 | return await this.operate_get(id); 284 | } 285 | 286 | async add(item) { 287 | return await this.operate('add', item); 288 | } 289 | 290 | async put(item) { 291 | return await this.operate('put', item); 292 | } 293 | 294 | async delete(item) { 295 | return await this.operate('delete', item); 296 | } 297 | }; 298 | 299 | const formatDate = function(d) { 300 | return (new Date(d)).toLocaleString(); 301 | }; 302 | 303 | const formatDate2 = function(dt) { 304 | const [Y, M, D, h, m, s] = [dt.getFullYear(), dt.getMonth() + 1, dt.getDate(), dt.getHours(), dt.getMinutes(), dt.getSeconds()].map(el => el.toString().padStart(2, '0')); 305 | const dtTmp = dt.toLocaleDateString(); 306 | const currentDate = new Date(); 307 | const currentDateTmp = currentDate.toLocaleDateString(); 308 | let formatted_date; 309 | if (dtTmp === currentDateTmp) { 310 | formatted_date = `${h}:${m}`; 311 | } else if (Math.floor(Math.abs((new Date(dtTmp)) - (new Date(currentDateTmp))) / (24 * 60 * 60 * 1000)) < 7) { 312 | const weekday = language.slice(0, 2) === "zh" ? ['周日', '周一', '周二', '周三', '周四', '周五', '周六'] : ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; 313 | formatted_date = weekday[dt.getDay()]; 314 | } else { 315 | formatted_date = `${M}/${D}`; 316 | } 317 | return formatted_date; 318 | } 319 | 320 | const formatJson = function(d) { 321 | try { 322 | const j = JSON.parse(d); 323 | return `
${JSON.stringify(j, null, 2)}
`; 324 | } catch (e) { 325 | return d; 326 | } 327 | }; 328 | 329 | const htmlEncode = function(text) { 330 | var tempElement = document.createElement("div"); 331 | var textNode = document.createTextNode(text); 332 | tempElement.appendChild(textNode); 333 | return tempElement.innerHTML; 334 | } 335 | 336 | const setIfr = function(u = "") { 337 | if ($("#xcanwin") === null) { 338 | const nIfr = document.createElement('iframe'); 339 | nIfr.id = "xcanwin"; 340 | nIfr.style = `height: 80px; width: 100%; display: none;`; 341 | if (gv("k_showDebug", false) === true) { 342 | nIfr.style.display = ''; 343 | } else { 344 | nIfr.style.display = 'none'; 345 | } 346 | if (u) { 347 | nIfr.src = u; 348 | } 349 | nIfr.onload = function() { 350 | const nIfrText = $("#xcanwin").contentWindow.document.documentElement.innerText; 351 | try { 352 | $("#xcanwin").contentWindow.document.documentElement.style = `background: #FCF3CF; height: 360px; width: 1080px; overflow; auto;`; 353 | if (nIfrText.indexOf(`"expires":"`) > -1) { 354 | console.log(`KeepChatGPT: IFRAME: Expire date: ${formatDate(JSON.parse(nIfrText).expires)}`); 355 | $("#xcanwin").contentWindow.document.documentElement.innerHTML = formatJson(nIfrText); 356 | } else if (nIfrText.match(/Please stand by|while we are checking your browser|Please turn JavaScript on|Please enable Cookies|reload the page/)) { 357 | console.log(`KeepChatGPT: IFRAME: BypassCF`); 358 | } 359 | } catch (e) { 360 | console.log(`KeepChatGPT: IFRAME: ERROR: ${e},\nERROR RESPONSE:\n${nIfrText}`); 361 | } 362 | }; 363 | $("main").firstElementChild.lastElementChild.appendChild(nIfr); 364 | } else{ 365 | if (u) { 366 | $("#xcanwin").src = u; 367 | } 368 | } 369 | }; 370 | 371 | const keepChat = function() { 372 | GM_xmlhttpRequest({ 373 | method: "GET", 374 | url: u, 375 | headers: { 376 | "Content-Type": "application/json" 377 | }, 378 | onload: function(response) { 379 | const data = response.responseText; 380 | try { 381 | if (response.responseHeaders.match(/content-type:\s*application\/json/i) && response.status !== 403 && data.indexOf(`"expires":"`) > -1) { 382 | console.log(`KeepChatGPT: FETCH: Expire date: ${formatDate(JSON.parse(data).expires)}`); 383 | //$("#xcanwin").contentWindow.document.documentElement.innerHTML = formatJson(data); 384 | } else { 385 | setIfr(u); 386 | } 387 | } catch (e) { 388 | console.log(`KeepChatGPT: FETCH: ERROR: ${e},\nERROR RESPONSE:\n${data}`); 389 | setIfr(u); 390 | } 391 | } 392 | }); 393 | } 394 | 395 | const ncheckbox = function() { 396 | const nsvg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); 397 | nsvg.setAttribute("viewBox", "0 0 45 30"); 398 | nsvg.classList.add("checkbutton"); 399 | nsvg.innerHTML = ``; 400 | return nsvg.cloneNode(true); 401 | }; 402 | 403 | const ndialog = function(title = 'KeepChatGPT', content = '', buttonvalue = 'OK', buttonfun = function(t) {return t;}, inputtype = 'br', inputvalue = '') { 404 | const ndivalert = document.createElement('div'); 405 | ndivalert.innerHTML = ` 406 |
407 |
408 |
409 |
410 |

${title}

411 |
412 |
413 |

${content}

414 | <${inputtype} class="kdialoginput w-full resize-none rounded p-4 placeholder:text-gray-300 dark:bg-gray-800 border-gray-100 focus:border-brand-green border"> 415 |
416 | 419 | 422 |
423 |
424 |
425 |
426 |
427 | `; 428 | if (inputtype === 'br') { 429 | $(".kdialoginput", ndivalert).style = `display: none`; 430 | $(".kdialogcontent", ndivalert).style = `line-height: 2.5;`; 431 | } else if (inputtype === 'img') { 432 | $(".kdialoginput", ndivalert).src = inputvalue; 433 | $(".kdialoginput", ndivalert).style = `max-height: 25rem; height: unset; width: unset; margin: 0 auto;`; 434 | } else if (inputtype === 'textarea') { 435 | $(".kdialoginput", ndivalert).value = inputvalue; 436 | $(".kdialoginput", ndivalert).style = `height: 10rem; background-color: transparent;`; 437 | } else { 438 | $(".kdialoginput", ndivalert).value = inputvalue; 439 | } 440 | $(".kdialogclose", ndivalert).onclick = function() { 441 | ndivalert.remove(); 442 | }; 443 | $(".kdialogbtn", ndivalert).onclick = function() { 444 | buttonfun(ndivalert); 445 | $(".kdialogclose", ndivalert).onclick(); 446 | }; 447 | document.body.appendChild(ndivalert); 448 | }; 449 | 450 | const loadMenu = function() { 451 | if ($(".kmenu") !== null) { 452 | return; 453 | } 454 | const ndivmenu = document.createElement('div'); 455 | ndivmenu.setAttribute("class", "kmenu"); 456 | ndivmenu.innerHTML = ` 457 | 474 | `; 475 | $('#kcg').appendChild(ndivmenu); 476 | 477 | $('#nmenuid_cm').appendChild(ncheckbox()); 478 | $('#nmenuid_ko').appendChild(ncheckbox()); 479 | $('#nmenuid_cc').appendChild(ncheckbox()); 480 | $('#nmenuid_sc').appendChild(ncheckbox()); 481 | $('#nmenuid_pp').appendChild(ncheckbox()); 482 | $('#nmenuid_ls').appendChild(ncheckbox()); 483 | $('#nmenuid_it').appendChild(ncheckbox()); 484 | $('#nmenuid_ec').appendChild(ncheckbox()); 485 | $('#nmenuid_dm').appendChild(ncheckbox()); 486 | $('#nmenuid_sd').appendChild(ncheckbox()); 487 | 488 | $('#nmenuid_ds').onclick = function() { 489 | toggleMenu('hide'); 490 | ndialog(`${tl("数据安全")}`, `${tl("使用正则编写规则")}`, `Save`, function(t) { 491 | let datasecblocklist; 492 | try { 493 | datasecblocklist = `${$(".kdialoginput", t).value}\n`.replace(/\r/g,`\n`).replace(/\n+/g, `\n`); 494 | } catch (e) { 495 | datasecblocklist = gv("k_datasecblocklist", datasec_blocklist_default); 496 | } 497 | sv("k_datasecblocklist", datasecblocklist); 498 | }, `textarea`, gv("k_datasecblocklist", datasec_blocklist_default)); 499 | }; 500 | 501 | $('#nmenuid_sd').onclick = function() { 502 | if ($('.checkbutton', this).classList.contains('checked')) { 503 | $('#xcanwin').style.display = 'none'; 504 | sv("k_showDebug", false); 505 | } else { 506 | $('#xcanwin').style.display = ''; 507 | sv("k_showDebug", true); 508 | } 509 | $('.checkbutton', this).classList.toggle('checked'); 510 | }; 511 | 512 | $('#nmenuid_dm').onclick = function() { 513 | if ($('.checkbutton', this).classList.contains('checked')) { 514 | $('body').classList.remove("kdark"); 515 | sv("k_theme", "light"); 516 | } else { 517 | $('body').classList.add("kdark"); 518 | sv("k_theme", "dark"); 519 | } 520 | $('.checkbutton', this).classList.toggle('checked'); 521 | }; 522 | 523 | $('#nmenuid_cm').onclick = function() { 524 | if ($('.checkbutton', this).classList.contains('checked')) { 525 | sv("k_closeModer", false); 526 | } else { 527 | sv("k_closeModer", true); 528 | } 529 | $('.checkbutton', this).classList.toggle('checked'); 530 | }; 531 | 532 | $('#nmenuid_af').onclick = function() { 533 | toggleMenu('hide'); 534 | ndialog(`${tl("调整间隔")}`, `${tl("建议间隔50秒")}`, `Go`, function(t) { 535 | try { 536 | interval2Time = parseInt($(".kdialoginput", t).value); 537 | } catch (e) { 538 | interval2Time = parseInt(gv("k_interval", 50)); 539 | } 540 | if (interval2Time < 10) { 541 | return; 542 | } 543 | clearInterval(nInterval2); 544 | nInterval2 = setInterval(nInterval2Fun, 1000 * interval2Time); 545 | sv("k_interval", interval2Time); 546 | }, `input`, parseInt(gv("k_interval", 50))); 547 | }; 548 | 549 | $('#nmenuid_ko').onclick = function() { 550 | if ($('.checkbutton', this).classList.contains('checked')) { 551 | $('body').classList.remove("kkeenobservation"); 552 | sv("k_keenObservation", false); 553 | } else { 554 | $('body').classList.add("kkeenobservation"); 555 | sv("k_keenObservation", true); 556 | } 557 | $('.checkbutton', this).classList.toggle('checked'); 558 | }; 559 | 560 | $('#nmenuid_cc').onclick = function() { 561 | if ($('.checkbutton', this).classList.contains('checked')) { 562 | sv("k_clonechat", false); 563 | cloneChat(false); 564 | } else { 565 | sv("k_clonechat", true); 566 | cloneChat(true); 567 | } 568 | $('.checkbutton', this).classList.toggle('checked'); 569 | }; 570 | 571 | $('#nmenuid_pp').onclick = function() { 572 | if ($('.checkbutton', this).classList.contains('checked')) { 573 | $('body').classList.remove("kpurifypage"); 574 | sv("k_cleanlyhome", false); 575 | } else { 576 | $('body').classList.add("kpurifypage"); 577 | purifyPage(); 578 | sv("k_cleanlyhome", true); 579 | } 580 | $('.checkbutton', this).classList.toggle('checked'); 581 | }; 582 | 583 | $('#nmenuid_ls').onclick = function() { 584 | if ($('.checkbutton', this).classList.contains('checked')) { 585 | sv("k_largescreen", false); 586 | } else { 587 | sv("k_largescreen", true); 588 | } 589 | $("main.w-full").classList.toggle('largescreen'); 590 | $('.checkbutton', this).classList.toggle('checked'); 591 | }; 592 | 593 | $('#nmenuid_sc').onclick = function() { 594 | if ($('.checkbutton', this).classList.contains('checked')) { 595 | sv("k_speakcompletely", false); 596 | } else { 597 | sv("k_speakcompletely", true); 598 | } 599 | $('.checkbutton', this).classList.toggle('checked'); 600 | }; 601 | 602 | $('#nmenuid_it').onclick = function() { 603 | if ($('.checkbutton', this).classList.contains('checked')) { 604 | sv("k_intercepttracking", false); 605 | interceptTracking(false); 606 | } else { 607 | sv("k_intercepttracking", true); 608 | interceptTracking(true); 609 | } 610 | $('.checkbutton', this).classList.toggle('checked'); 611 | }; 612 | 613 | $('#nmenuid_ec').onclick = function() { 614 | if ($('.checkbutton', this).classList.contains('checked')) { 615 | sv("k_everchanging", false); 616 | everChanging(false); 617 | } else { 618 | sv("k_everchanging", true); 619 | everChanging(true); 620 | } 621 | $('.checkbutton', this).classList.toggle('checked'); 622 | }; 623 | 624 | $('#nmenuid_cu').onclick = function() { 625 | toggleMenu('hide'); 626 | checkForUpdates(); 627 | }; 628 | 629 | $('#nmenuid_ap').onclick = function() { 630 | supportAuthor(); 631 | }; 632 | 633 | $('#nmenuid_ab').onclick = function() { 634 | window.open(GM_info.script.namespace, '_blank'); 635 | }; 636 | }; 637 | 638 | const setUserOptions = function() { 639 | if (gv("k_showDebug", false) === true) { 640 | $('#nmenuid_sd .checkbutton').classList.add('checked'); 641 | $('#xcanwin').style.display = ''; 642 | } else { 643 | $('#xcanwin').style.display = 'none'; 644 | } 645 | 646 | if (gv("k_theme", "light") === "dark") { 647 | $('#nmenuid_dm .checkbutton').classList.add('checked'); 648 | $('body').classList.add("kdark"); 649 | } 650 | 651 | if (gv("k_closeModer", false) === true) { 652 | $('#nmenuid_cm .checkbutton').classList.add('checked'); 653 | } 654 | 655 | if (gv("k_keenObservation", true) === true) { 656 | $('#nmenuid_ko .checkbutton').classList.add('checked'); 657 | $('body').classList.add("kkeenobservation"); 658 | } 659 | 660 | if (gv("k_clonechat", false) === true) { 661 | $('#nmenuid_cc .checkbutton').classList.add('checked'); 662 | cloneChat(true); 663 | } 664 | 665 | if (gv("k_cleanlyhome", false) === true) { 666 | $('#nmenuid_pp .checkbutton').classList.add('checked'); 667 | purifyPage(); 668 | $('body').classList.add("kpurifypage"); 669 | } 670 | 671 | if (gv("k_largescreen", false) === true) { 672 | $('#nmenuid_ls .checkbutton').classList.add('checked'); 673 | $("main.w-full").classList.add('largescreen'); 674 | } 675 | 676 | if (gv("k_speakcompletely", false) === true) { 677 | $('#nmenuid_sc .checkbutton').classList.add('checked'); 678 | } 679 | 680 | if (gv("k_intercepttracking", false) === true) { 681 | $('#nmenuid_it .checkbutton').classList.add('checked'); 682 | interceptTracking(true); 683 | } 684 | 685 | if (gv("k_everchanging", false) === true) { 686 | $('#nmenuid_ec .checkbutton').classList.add('checked'); 687 | everChanging(true); 688 | } 689 | 690 | //检查更新:首次、每3天 691 | if (gv("k_lastupdate", 0) === 0 || Date.now() - gv("k_lastupdate", 0) >= 1000 * 60 * 60 * 24 * 3) { 692 | sv("k_lastupdate", Date.now()); 693 | checkForUpdates("auto"); 694 | } 695 | 696 | if (gv("k_last_support_author", 0) === 0 || Date.now() - gv("k_last_support_author", 0) >= 1000 * 60 * 60 * 24 * 30) { 697 | sv("k_last_support_author", Date.now()); 698 | supportAuthor(); 699 | } 700 | }; 701 | 702 | const toggleMenu = function(action) { 703 | const ndivmenu = $(".kmenu"); 704 | if (action === "show") { 705 | ndivmenu.classList.remove('hide'); 706 | if ($("#kcg")) { 707 | ndivmenu.style.left = `${$("#kcg").getBoundingClientRect().right + 20}px`; 708 | ndivmenu.style.top = `${$("#kcg").getBoundingClientRect().top}px`; 709 | } 710 | } else { 711 | ndivmenu.classList.add('hide'); 712 | } 713 | }; 714 | 715 | const loadKCG = function() { 716 | let symbol_prt; 717 | if ($("#kcg") !== null) { 718 | return; 719 | } 720 | var kcg_html; 721 | if (kcg_html !== undefined) { 722 | if ($(symbol1_selector)) { 723 | kcg_html.innerHTML = kcg_html._symbol1_innerHTML; 724 | kcg_html.classList.add('kcg-pc'); 725 | kcg_html.classList.remove('kcg-mb'); 726 | symbol_prt = $(symbol1_selector); 727 | } else if ($(symbol2_selector)) { 728 | kcg_html.innerHTML = kcg_html._symbol2_innerHTML; 729 | kcg_html.classList.remove('kcg-pc'); 730 | kcg_html.classList.add('kcg-mb'); 731 | symbol_prt = fp(".sticky", $(symbol2_selector), 4); 732 | //console.log(symbol_prt) 733 | $(symbol2_selector).parentNode.classList.remove('absolute'); 734 | } 735 | symbol_prt.insertBefore(kcg_html, symbol_prt.childNodes[0]); 736 | return; 737 | } 738 | 739 | setIfr(u); 740 | 741 | const ndivkcg = document.createElement("div"); 742 | ndivkcg.id = "kcg"; 743 | 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"); 744 | 745 | const icon = GM_info.script.icon ? GM_info.script.icon : `${GM_info.script.namespace}raw/main/assets/logo.svg`; 746 | ndivkcg._symbol1_innerHTML = `
Keep${ndivkcg.id.slice(1,2).toUpperCase()}hatGPT by x${ndivkcg.id.slice(1,2)}anwin
`; 747 | ndivkcg._symbol2_innerHTML = ``; 748 | 749 | if ($(symbol1_selector)) { 750 | ndivkcg.innerHTML = ndivkcg._symbol1_innerHTML; 751 | ndivkcg.classList.add('kcg-pc'); 752 | ndivkcg.classList.remove('kcg-mb'); 753 | symbol_prt = $(symbol1_selector); 754 | } else if ($(symbol2_selector)) { 755 | ndivkcg.innerHTML = ndivkcg._symbol2_innerHTML; 756 | ndivkcg.classList.remove('kcg-pc'); 757 | ndivkcg.classList.add('kcg-mb'); 758 | symbol_prt = fp(".sticky", $(symbol2_selector), 4); 759 | $(symbol2_selector).parentNode.classList.remove('absolute'); 760 | } 761 | kcg_html = ndivkcg; 762 | symbol_prt.insertBefore(kcg_html, symbol_prt.childNodes[0]); 763 | loadMenu(); 764 | const ndivmenu = $(".kmenu"); 765 | 766 | addStyle(); 767 | setUserOptions(); 768 | }; 769 | 770 | const addStyle = function() { 771 | GM_addStyle(` 772 | :root { 773 | --keenobservation-user-image-url: ''; 774 | --keenobservation-assistant-image-url: ''; 775 | } 776 | 777 | /*日星月异*/ 778 | .ever-changing { 779 | /*左边栏*/ 780 | nav.flex { 781 | background: linear-gradient(to right top, #d0dcff, #f0f0ff, #fff3f3); 782 | padding-right: .6rem; 783 | } 784 | nav.flex #history>div { 785 | height: 3.5rem; 786 | background-color: rgba(255, 255, 255, 0.4); 787 | } 788 | nav.flex #history>div>a { 789 | mask-image: unset !important; 790 | } 791 | nav.flex #history>div .bg-gradient-to-l { 792 | background-image: unset; 793 | } 794 | 795 | nav.flex #history::after { 796 | content: ""; 797 | display: block; 798 | height: 1px; 799 | background: linear-gradient(to right, transparent, #bfbfbf, transparent); 800 | } 801 | 802 | /*左边栏选中条目*/ 803 | nav.flex #history>div.bg-token-sidebar-surface-tertiary { 804 | background-color: #bfcbfd; 805 | } 806 | /*左边栏鼠标滑动*/ 807 | nav.flex #history>div:hover { 808 | background-color: #d5ddff; 809 | } 810 | 811 | /*左边栏时间分类*/ 812 | @layer utilities { 813 | .bg-token-bg-elevated-secondary { 814 | background-color: unset !important; 815 | } 816 | } 817 | 818 | /*左边栏日期*/ 819 | .navdate { 820 | font-size: 0.75rem; 821 | padding-right: 0.5rem; 822 | } 823 | } 824 | /*官方暗色模式*/ 825 | .dark { 826 | .ever-changing { 827 | nav.flex { 828 | background: linear-gradient(to right top, #171717, #060606, #171717); 829 | padding-right: .6rem; 830 | } 831 | nav.flex #history>div { 832 | height: 3.5rem; 833 | background-color: rgba(111, 111, 111, 0.25); 834 | } 835 | nav.flex #history>div>a { 836 | mask-image: unset !important; 837 | } 838 | nav.flex #history>div .bg-gradient-to-l { 839 | background-image: unset; 840 | } 841 | 842 | nav.flex #history::after { 843 | content: ""; 844 | display: block; 845 | height: 1px; 846 | background: linear-gradient(to right, transparent, #535353, transparent); 847 | } 848 | nav.flex #history>div.bg-token-sidebar-surface-tertiary { 849 | background-color: #444; 850 | } 851 | nav.flex #history>div:hover { 852 | background-color: #2f2f2f; 853 | } 854 | 855 | nav.flex #history a .navtitle { 856 | color: #f4f4f4 !important; 857 | } 858 | 859 | nav.flex #history a .navlast { 860 | color: #d0d0d0 !important; 861 | } 862 | } 863 | } 864 | 865 | /*LOGO*/ 866 | #kcg { 867 | background: linear-gradient(to top right, #ff5, #FFE6C6, #F9F9B3); 868 | animation: gradient 6s ease-in-out infinite; 869 | color: #555; 870 | font-weight: bold; 871 | user-select: none; 872 | border-color: #cec86b; 873 | } 874 | @keyframes gradient { 875 | 0%{background-color:#F0B27A;} 876 | 50%{background-color:#FDE184;} 877 | 100%{background-color:#F0B27A;} 878 | } 879 | .kcg-pc { 880 | position: relative; 881 | margin-top: .5rem; 882 | margin-bottom: .5rem; 883 | margin-left: .5rem; 884 | } 885 | .kcg-mb { 886 | position: absolute; 887 | margin-top: .3rem; 888 | margin-bottom: .3rem; 889 | top: 0; 890 | left: .5rem; 891 | bottom: 0; 892 | } 893 | /*暗色模式*/ 894 | .kdark { 895 | #kcg { 896 | background: linear-gradient(to top right, #1a0035, #000, #0c006a); 897 | animation: none; 898 | color: #ffffff; 899 | border-color: #00618e; 900 | } 901 | #kcg img { 902 | filter: invert(1); 903 | } 904 | } 905 | 906 | /*菜单栏*/ 907 | .kmenu { 908 | background: linear-gradient(to top right, #C4F4FF, #E6E6FB, #FFF); 909 | color: #000000; 910 | border: 0.08rem solid #5252D9; 911 | border-radius: 0.625rem; 912 | box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.15); 913 | display: none; 914 | min-width: 12.5rem; 915 | padding: 0.75rem 0; 916 | position: absolute; 917 | z-index: 1000; 918 | top: .1rem; 919 | left: .5rem; 920 | right: .5rem; 921 | font-weight: normal; 922 | font-size: 0.9rem; 923 | line-height: normal; 924 | } 925 | #kcg:hover .kmenu, .kmenu:hover { 926 | display: block; 927 | } 928 | .kmenu li { 929 | display: block; 930 | padding: 0.5rem 0.85rem; 931 | text-align: left; 932 | user-select: none; 933 | display: flex; 934 | align-items: center; 935 | } 936 | .kmenu li:hover { 937 | background-color: #c0caff; 938 | cursor: pointer; 939 | } 940 | /*暗色模式*/ 941 | .kdark { 942 | .kmenu { 943 | background: linear-gradient(to top right, #01000f, #00070d, #00194a); 944 | color: #FFFFFF; 945 | } 946 | .kmenu li:hover { 947 | background-color: #383851; 948 | } 949 | } 950 | 951 | /*净化页面*/ 952 | .kpurifypage { 953 | main .text-token-text-primary .mb-5.font-medium /*游客模式的首页的LOGO下方的问候语*/, 954 | form.w-full .grow .bottom-full /*游客模式的首页的快捷提示词*/, 955 | nav.flex .mb-4 /*游客模式的侧边栏的登录提醒*/, 956 | main .text-token-text-primary .mx-3.items-stretch /*首页的LOGO下方的快捷提示词*/, 957 | main div.shadow-xxs /*输入框上方的GPT-4o的上限提示*/, 958 | main form .text-token-text-secondary /*输入框上方标签*/, 959 | main div.text-center>span /*输入框底部标签*/ 960 | { 961 | display: none; 962 | } 963 | } 964 | 965 | /*明察秋毫*/ 966 | .kkeenobservation { 967 | /*用户气泡优化*/ 968 | main div[data-message-author-role="user"] { 969 | padding-right: 3rem; 970 | } 971 | main div[data-message-author-role="user"]>div.w-full>div { 972 | background-color: #e1eaff; 973 | } 974 | 975 | /*添加用户头像*/ 976 | main div[data-message-author-role="user"]::after { 977 | content: ''; 978 | position: absolute; 979 | right: 0rem; 980 | width: 2rem; 981 | height: 2rem; 982 | background-color: gray; 983 | background-image: var(--keenobservation-user-image-url); 984 | background-size: contain; 985 | border-radius: 50%; 986 | pointer-events: auto; 987 | } 988 | 989 | /*用户气泡下标优化*/ 990 | main .text-token-text-primary .juice\\:flex-row-reverse .rounded-xl { 991 | padding-right: 2.5rem; 992 | } 993 | 994 | /*机器人气泡优化*/ 995 | main div[data-message-author-role="assistant"] { 996 | padding-left: 3.5rem; 997 | padding-right: 3.5rem; 998 | } 999 | main div[data-message-author-role="assistant"]>div.w-full { 1000 | align-items: flex-start; 1001 | padding-top: 0; 1002 | } 1003 | main div[data-message-author-role="assistant"]>div.w-full>div { 1004 | width: auto; 1005 | max-width: 100%; 1006 | border-radius: 1.5rem; 1007 | padding-top: 0.75rem; 1008 | padding-bottom: 0.75rem; 1009 | padding-left: 1.25rem; 1010 | padding-right: 1.25rem; 1011 | background-color: var(--main-surface-secondary); 1012 | } 1013 | 1014 | /*添加机器人头像*/ 1015 | main div[data-message-author-role="assistant"]::after { 1016 | content: ''; 1017 | position: absolute; 1018 | left: 0rem; 1019 | width: 2rem; 1020 | height: 2rem; 1021 | background-color: gray; 1022 | background-image: var(--keenobservation-assistant-image-url); 1023 | background-size: contain; 1024 | border-radius: 50%; 1025 | pointer-events: auto; 1026 | } 1027 | } 1028 | /*官方暗色模式*/ 1029 | .dark { 1030 | .kkeenobservation { 1031 | main div[data-message-author-role="user"]>div.w-full>div { 1032 | background-color: #525452; 1033 | } 1034 | } 1035 | } 1036 | 1037 | 1038 | 1039 | nav { 1040 | position: relative; 1041 | } 1042 | nav div.pt-3\\.5 { 1043 | padding-bottom: .5rem; 1044 | padding-top: .25rem; 1045 | } 1046 | 1047 | .checkbutton { 1048 | height: 1.25rem; 1049 | right: 0.85rem; 1050 | position: absolute; 1051 | } 1052 | .checkbutton:hover { 1053 | cursor: pointer; 1054 | } 1055 | .checked path { 1056 | fill: #30D158; 1057 | } 1058 | .checked circle { 1059 | transform: translateX(14px); 1060 | transition: transform 0.2s ease-in-out; 1061 | } 1062 | 1063 | .largescreen { 1064 | .flex.text-base { 1065 | max-width: unset; 1066 | } 1067 | @media (min-width:1024px) { 1068 | .flex.text-base .lg\\:w-\\[calc\\(100\\%-115px\\)\\] { 1069 | width: calc(100% - 72px); 1070 | } 1071 | form.w-full { 1072 | max-width: 85%; 1073 | margin: auto; 1074 | } 1075 | } 1076 | } 1077 | 1078 | .btn-neutral { 1079 | cursor: pointer; 1080 | } 1081 | 1082 | #new-chat-button + div, #expand-sidebar-bottom-button, #nav-toggle-button, #user-menu ~ div { 1083 | display: none !important; 1084 | max-height: 0 !important; 1085 | } 1086 | 1087 | nav.flex div.overflow-y-auto a.hover\\:pr-4 { 1088 | padding-right: unset; 1089 | } 1090 | nav.flex div.overflow-y-auto { 1091 | scrollbar-width: thin; 1092 | } 1093 | .gptm { 1094 | position: absolute; 1095 | top: 1.15rem; 1096 | left: 0.95rem; 1097 | font-size: 0.7rem; 1098 | font-weight: bold; 1099 | color: white; 1100 | } 1101 | 1102 | #nmenuid_ap { 1103 | color: #00bf78; 1104 | } 1105 | 1106 | nav.flex .transition-all { 1107 | position: unset; 1108 | } 1109 | 1110 | .hide { 1111 | display: none; 1112 | } 1113 | 1114 | `); 1115 | }; 1116 | 1117 | const hookFetch = function() { 1118 | unsafeWindow.fetch = new Proxy(fetch, { 1119 | apply: function (target, thisArg, argumentsList) { 1120 | let fetchReqUrl = ''; 1121 | let fetchReqOptions = {}; 1122 | if (typeof argumentsList[0] === 'string') { 1123 | fetchReqUrl = argumentsList[0]; 1124 | fetchReqOptions = argumentsList[1]; 1125 | } else if (argumentsList[0] instanceof Request) { 1126 | fetchReqOptions = argumentsList[0]; 1127 | fetchReqUrl = fetchReqOptions?.url; 1128 | } 1129 | const fetchReqMethod = fetchReqOptions?.method?.toUpperCase(); 1130 | let fetchRsp; 1131 | try { 1132 | const block_url = 'gravatar\.com|browser-intake-datadoghq\.com|\.wp\.com|intercomcdn\.com|sentry\.io|sentry_key=|intercom\.io|featuregates\.org|/v1/initialize|/messenger/|statsigapi\.net|/rgstr|/v1/sdk_exception'; 1133 | if (gv("k_closeModer", false) && fetchReqUrl.match('/backend-api/moderations(\\?|$)')) { 1134 | //取消审计1 1135 | fetchRsp = Promise.resolve({ 1136 | json: () => {return {}} 1137 | }); 1138 | return fetchRsp; 1139 | } else if (gv("k_closeModer", false) && fetchReqUrl.match('/backend-api/conversation(\\?|$)')) { 1140 | //取消审计2 1141 | const post_body = JSON.parse(argumentsList[1].body); 1142 | post_body.supports_modapi = false; 1143 | argumentsList[1].body = JSON.stringify(post_body); 1144 | } else if (gv("k_intercepttracking", false) && fetchReqUrl.match(block_url)) { 1145 | //拦截跟踪 1146 | console.log(`KeepChatGPT: ${tl("拦截跟踪")}: ${fetchReqUrl}`); 1147 | fetchRsp = Promise.resolve({ 1148 | }); 1149 | return fetchRsp; 1150 | } else if (fetchReqUrl.match('/backend-api/compliance')) { 1151 | //fix openai bug 1152 | fetchRsp = Promise.resolve({ 1153 | json: () => {return {"registration_country":null,"require_cookie_consent":false,"terms_of_use":{"is_required":false,"display":null},"cookie_consent":null,"age_verification":null}} 1154 | }); 1155 | return fetchRsp; 1156 | } 1157 | } catch (e) {} 1158 | fetchRsp = target.apply(thisArg, argumentsList); 1159 | return fetchRsp.then(response => { 1160 | if (fetchReqUrl.match('/backend-api/me(\\?|$)')) { 1161 | //打开网页时,创建数据库。 1162 | return response.text().then(async fetchRspBody => { 1163 | let fetchRspBodyNew = fetchRspBody; 1164 | if (fetchRspBodyNew !== "{}"){ //当前已登录 1165 | let modifiedData = JSON.parse(fetchRspBody); 1166 | document.documentElement.style.setProperty('--keenobservation-user-image-url', `url('${modifiedData.picture}')`); //更新明察秋毫用户头像 1167 | document.documentElement.style.setProperty('--keenobservation-assistant-image-url', `url('https://cdn.oaistatic.com/assets/favicon-180x180-od45eci6.webp')`); //更新明察秋毫机器人头像 1168 | if (!global.st_ec) { 1169 | const email = modifiedData.email; 1170 | global.st_ec = new IndexedDB(`KeepChatGPT_${email}`, 'conversations'); 1171 | } 1172 | delete modifiedData.error; //绕过登录超时 Your session has expired. Please log in again to continue using the app. 1173 | fetchRspBodyNew = JSON.stringify(modifiedData); 1174 | } 1175 | return Promise.resolve(new Response(fetchRspBodyNew, {status: response.status, statusText: response.statusText, headers: response.headers})); 1176 | }); 1177 | } else if (gv("k_everchanging", false) === true && fetchReqUrl.match('/backend-api/conversations\\?.*offset=')) { 1178 | //刷新侧边栏时,更新数据库:id、标题、更新时间。同时更新侧边栏 1179 | return response.text().then(async fetchRspBody => { 1180 | let fetchRspBodyNew = fetchRspBody; 1181 | const b = JSON.parse(fetchRspBody).items; 1182 | let kec_object = {}; 1183 | b.forEach(async el => { 1184 | const update_time = new Date(el.update_time); 1185 | const ec_tmp = await global.st_ec.get(el.id) || {}; 1186 | await global.st_ec.put({id: el.id, title: el.title, update_time: update_time, last: ec_tmp.last, model: ec_tmp.model}); 1187 | kec_object[el.id] = {title: el.title, update_time: update_time, last: ec_tmp.last, model: ec_tmp.model}; 1188 | }); 1189 | setTimeout(function() { 1190 | attachDate(kec_object); 1191 | }, 1000);//有点bug 1192 | return Promise.resolve(new Response(fetchRspBodyNew, {status: response.status, statusText: response.statusText, headers: response.headers})); 1193 | }); 1194 | } else if (gv("k_everchanging", false) === true && fetchReqUrl.match('/backend-api/conversation/(([^/]{4,}?){4}-[^/]{4,}?)(\\?|$)(\\?|$)')) { 1195 | //点击/编辑/删除侧边栏的历史对话时,更新数据库:当前id、当前标题、当前更新时间,当前last,当前model。同时更新侧边栏 1196 | 1197 | return response.text().then(async fetchRspBody => { 1198 | let fetchRspBodyNew = fetchRspBody; 1199 | if (fetchReqMethod === 'GET') { 1200 | //点击/编辑历史对话 1201 | const f = JSON.parse(fetchRspBody); 1202 | const crt_con_id = f && f.conversation_id; 1203 | const crt_con_title = f && f.title; 1204 | let crt_con_update_time = f && f.update_time; 1205 | crt_con_update_time = crt_con_update_time < 10**10 ? crt_con_update_time * 1000 : crt_con_update_time; 1206 | crt_con_update_time = new Date(crt_con_update_time); 1207 | const crt_con_speak_last_keys = f && f.mapping && Object.keys(f.mapping); 1208 | const crt_con_speak_last_id = f.current_node; 1209 | const crt_con_speak_last = f.mapping[crt_con_speak_last_id].message; 1210 | const crt_con_last = crt_con_speak_last.content.parts[0].trim().replace(/[\r\n]/g, ``).substr(0, 100); 1211 | const crt_con_model = crt_con_speak_last.metadata.model_slug; 1212 | await global.st_ec.put({id: crt_con_id, title: crt_con_title, update_time: crt_con_update_time, last: crt_con_last, model: crt_con_model}); 1213 | let kec_object = {}; 1214 | kec_object[crt_con_id] = {title: crt_con_title, update_time: crt_con_update_time, last: crt_con_last, model: crt_con_model}; 1215 | setTimeout(function() { 1216 | attachDate(kec_object); 1217 | }, 300); 1218 | } else if (fetchReqMethod === 'PATCH') { 1219 | //删除历史对话 1220 | const f = JSON.parse(fetchRspBody); 1221 | const crt_con_id = fetchReqUrl.match('/backend-api/conversation/(([^/]{4,}?){4}-[^/]{4,}?)(\\?|$)')[1]; 1222 | const crt_con_title = f && f.title; 1223 | const is_visible = f && f.is_visible; 1224 | if (is_visible) { 1225 | await global.st_ec.delete({id: crt_con_id}); 1226 | } 1227 | } 1228 | return Promise.resolve(new Response(fetchRspBodyNew, {status: response.status, statusText: response.statusText, headers: response.headers})); 1229 | }); 1230 | } 1231 | return response; 1232 | }).catch(error => { 1233 | //console.error(error); 1234 | return Promise.reject(error); 1235 | }); 1236 | } 1237 | }); 1238 | navigator.sendBeacon = function(url, data) {}; 1239 | }; 1240 | 1241 | const everChanging = function(action) { 1242 | if (action === true) { 1243 | $('nav.flex')?.classList.add('knav'); 1244 | $("body").classList.add("ever-changing"); 1245 | attachDate(); 1246 | } else { 1247 | $("body").classList.remove("ever-changing"); 1248 | } 1249 | }; 1250 | 1251 | const attachDate = function(kec_object) { 1252 | $$('nav.flex #history a').forEach(async el => { 1253 | let a_id; 1254 | const a_id_m = el.href.match('/(([^/]{4,}?){4}-[^/]{4,}?)(\\?|$)(\\?|$)'); 1255 | if (a_id_m) { 1256 | a_id = a_id_m[1]; 1257 | } else { 1258 | return; 1259 | } 1260 | let kec_obj_el; 1261 | if (kec_object) { 1262 | kec_obj_el = kec_object[a_id]; 1263 | } else { 1264 | if (global.st_ec) { 1265 | kec_obj_el = await global.st_ec.get(a_id); 1266 | } else { 1267 | kec_obj_el = {}; 1268 | } 1269 | } 1270 | const title = kec_obj_el && kec_obj_el.title || ""; 1271 | const update_time = kec_obj_el && kec_obj_el.update_time || ""; 1272 | const last = kec_obj_el && kec_obj_el.last || ""; 1273 | const model = kec_obj_el && kec_obj_el.model || ""; 1274 | 1275 | if (!title || !update_time) return; 1276 | if (!$('.navtitle', el) || !$('.navdate', el) || !$('.navlast', el)) { 1277 | const cdiv_old = $(`.flex.min-w-0.grow.items-center.gap-2`, el); 1278 | cdiv_old.style.display = "none"; 1279 | const cdiv_new = document.createElement("div"); 1280 | cdiv_new.className = `flex-1 text-ellipsis overflow-hidden break-all relative`; 1281 | cdiv_new.innerHTML = ` 1282 | 1285 | 1288 |
1289 | 1292 | `; 1293 | el.insertBefore(cdiv_new, el.childNodes[1]); 1294 | } else if ($('.navtitle', el).innerHTML !== title || $('.navdate', el).innerHTML !== formatDate2(update_time) || $('.navlast', el).innerHTML !== last) { 1295 | $('.navtitle', el).innerHTML = title; 1296 | $('.navdate', el).innerHTML = formatDate2(update_time); 1297 | $('.navlast', el).innerHTML = htmlEncode(last); 1298 | } 1299 | }); 1300 | 1301 | const sidebar_chat = $("nav.flex div.overflow-y-auto"); 1302 | if (sidebar_chat) { 1303 | if (sidebar_chat.scrollHeight > sidebar_chat.clientHeight) { 1304 | sidebar_chat.classList.add("-mr-2"); 1305 | } else { 1306 | sidebar_chat.classList.remove("-mr-2"); 1307 | } 1308 | } 1309 | }; 1310 | 1311 | const verInt = function(vs) { 1312 | const vl = vs.split('.'); 1313 | let vi = 0; 1314 | for (let i = 0; i < vl.length && i < 3; i++) { 1315 | vi += parseInt(vl[i]) * (1000 ** (2 - i)); 1316 | } 1317 | return vi; 1318 | }; 1319 | 1320 | const checkForUpdates = function(action = "click") { 1321 | const downloadURL = `https://raw.githubusercontent.com/xcanwin/KeepChatGPT/main/KeepChatGPT.user.js`; 1322 | const updateURL = downloadURL; 1323 | GM_xmlhttpRequest({ 1324 | method: "GET", 1325 | url: `${updateURL}?t=${Date.now()}`, 1326 | onload: function(response) { 1327 | const crv = GM_info.script.version; 1328 | const m = response.responseText.match(/@version\s+(\S+)/); 1329 | const ltv = m && m[1]; 1330 | if (ltv && verInt(ltv) > verInt(crv)) { 1331 | ndialog(`${tl("检查更新")}`, `${tl("当前版本")}: ${crv}, ${tl("发现最新版")}: ${ltv}`, `UPDATE`, function(t) { 1332 | window.open(`${downloadURL}?t=${Date.now()}`, '_blank'); 1333 | }); 1334 | } else { 1335 | if (action === "click") { 1336 | ndialog(`${tl("检查更新")}`, `${tl("当前版本")}: ${crv}, ${tl("已是最新版")}`, `OK`); 1337 | } 1338 | } 1339 | } 1340 | }); 1341 | }; 1342 | 1343 | /* 1344 | 克隆对话 1345 | */ 1346 | const cloneChat = function(action) { 1347 | cloneChat.firstTarget = null; 1348 | if (action === true) { 1349 | window.addEventListener('click', cloneChat.listen_Click); 1350 | } else { 1351 | window.removeEventListener('click', cloneChat.listen_Click); 1352 | } 1353 | }; 1354 | 1355 | cloneChat.listen_Click = function(event) { 1356 | event.stopPropagation(); 1357 | const clickedElement = document.elementFromPoint(event.clientX, event.clientY); 1358 | if (clickedElement && clickedElement.matches('main div[data-message-author-role="user"]')) { 1359 | // 获取该元素的边界信息 1360 | const rect = clickedElement.getBoundingClientRect(); 1361 | 1362 | // 伪元素的宽度和高度是2rem 1363 | const logoWidth = 32; 1364 | const logoHeight = 32; 1365 | 1366 | // 计算伪元素所在区域的边界 1367 | const logoRight = rect.right; 1368 | const logoLeft = rect.right - logoWidth; 1369 | const logoTop = rect.top; 1370 | const logoBottom = rect.top + logoHeight; 1371 | 1372 | // 判断鼠标点击的位置是否在伪元素范围内 1373 | if (event.clientX >= logoLeft && event.clientX <= logoRight && event.clientY >= logoTop && event.clientY <= logoBottom) { 1374 | const content = event.target.innerText.trim(); 1375 | $("form.w-full #prompt-textarea").innerHTML = '' 1376 | $("form.w-full #prompt-textarea").focus(); 1377 | document.execCommand('insertText', false, content); 1378 | } 1379 | } 1380 | }; 1381 | 1382 | /* 1383 | 净化页面 1384 | */ 1385 | const purifyPage = function() { 1386 | if (location.href.match(/https:\/\/(chatgpt\.com|chat\.openai\.com)\/\??/)) { 1387 | //添加专属logo 1388 | if ($("main h1") && $("main h1").innerText.match(/^ChatGPT(\nPLUS)?$/)) { 1389 | $("main h1").classList.add('text-gray-200'); 1390 | const nSpan = document.createElement('span'); 1391 | nSpan.className = 'bg-yellow-200 text-yellow-900 py-0.5 px-1.5 text-xs md:text-sm rounded-md uppercase'; 1392 | nSpan.textContent = `KEEP`; 1393 | $("main h1").appendChild(nSpan); 1394 | } 1395 | } 1396 | }; 1397 | 1398 | /* 1399 | 言无不尽 1400 | */ 1401 | const speakCompletely = function() { 1402 | if (gv("k_speakcompletely", false) === true) { 1403 | const continue_svg_selector = `form.w-full .justify-center svg path[d*="M4.47189 2.5C5.02418 2.5 5.47189 2.94772 5.47189 3.5V5.07196C7.17062 3.47759 9.45672 2.5 11.9719 2.5C17.2186 2.5 21.4719 6.75329 21.4719 12C21.4719 17.2467 17.2186 21.5 11.9719 21.5C7.10259 21.5 3.09017 17.8375 2.53689 13.1164C2.47261 12.5679 2.86517"]:not(.ct_clicked)`; 1404 | if ($(continue_svg_selector)) { 1405 | setTimeout(function() { 1406 | fp(`button`, $(continue_svg_selector))?.click(); 1407 | $(continue_svg_selector)?.classList.add('ct_clicked'); 1408 | }, 1000); 1409 | } 1410 | } 1411 | }; 1412 | 1413 | const dataSec = function() { 1414 | muob("form.w-full #prompt-textarea", $(`body`), () => { 1415 | if (gv("k_datasecblocklist", datasec_blocklist_default)) { 1416 | $("form.w-full #prompt-textarea")?.addEventListener('input', dataSec.listen_input); 1417 | $("form.w-full #prompt-textarea")?.addEventListener('paste', dataSec.listen_input); 1418 | } else { 1419 | $("form.w-full #prompt-textarea")?.removeEventListener('input', dataSec.listen_input); 1420 | $("form.w-full #prompt-textarea")?.removeEventListener('paste', dataSec.listen_input); 1421 | } 1422 | }); 1423 | }; 1424 | 1425 | dataSec.listen_input = function(event) { 1426 | let ms = []; 1427 | gv("k_datasecblocklist", datasec_blocklist_default).split(`\n`).forEach(e => { 1428 | if (e) { 1429 | const m = $("form.w-full #prompt-textarea").innerHTML.match(e); 1430 | if (m && m[0]) { 1431 | $("form.w-full #prompt-textarea").innerHTML = $("form.w-full #prompt-textarea").innerHTML.replaceAll(m[0], ``); 1432 | ms.push(m[0]); 1433 | } 1434 | } 1435 | }); 1436 | if (ms.join(`\n`).trim()) { 1437 | ndialog(`⚠️${tl("警告")}`, `${tl("发现敏感数据")}`, `Thanks`, function(t) {}, `textarea`, ms.join(`\n`)); 1438 | } 1439 | }; 1440 | 1441 | const supportAuthor = function() { 1442 | ndialog(`${tl("赞赏鼓励")}`, `· 本项目由兴趣驱使,提升自己的体验,并共享世界。 1443 |
· 如果你喜欢作者的项目,可以给作者一个免费的Star或者Follow。 1444 |
· 如果你希望作者的小猫吃到更好的罐头,欢迎赞赏与激励。`, `更多鼓励方式`, function(t) { 1445 | window.open(`${GM_info.script.namespace}#赞赏`, '_blank'); 1446 | }, `img`, `https://github.com/xcanwin/KeepChatGPT/raw/main/assets/appreciate_wechat.png`); 1447 | } 1448 | 1449 | const interceptTracking = function(action) { 1450 | if (action === true) { 1451 | window.addEventListener('beforescriptexecute', interceptTracking.listen_beforescriptexecute); 1452 | } else { 1453 | window.removeEventListener('beforescriptexecute', interceptTracking.listen_beforescriptexecute); 1454 | } 1455 | }; 1456 | 1457 | interceptTracking.listen_beforescriptexecute = function(event) { 1458 | const scriptElement = event.target; 1459 | if (scriptElement.src.match('widget\.intercom\.io')) { 1460 | event.preventDefault(); 1461 | scriptElement.textContent = ``; 1462 | scriptElement.remove(); 1463 | } 1464 | }; 1465 | 1466 | /* 1467 | 寻找元素的父元素 1468 | */ 1469 | const fp = function(parentSelector, el, level = 5) { 1470 | if (el === null) { 1471 | return null; 1472 | } 1473 | let parent = el.parentNode; 1474 | let count = 1; 1475 | while (parent && count <= level) { 1476 | if (parent && parent.constructor !== HTMLDocument && parent.matches(parentSelector)) { 1477 | return parent; 1478 | } 1479 | parent = parent.parentNode; 1480 | count++; 1481 | } 1482 | return null; 1483 | }; 1484 | 1485 | /* 1486 | fix openai bug 1487 | 帮助openai官方修复bug:Alpha语言环境存在bug导致无法发送信息 1488 | */ 1489 | const fixOpenaiBUG = function() { 1490 | localStorage.removeItem('oai/apps/locale'); 1491 | if (gv("k_lastjob", "") === "") { 1492 | sv("k_lastjob", Date.now().toString() + ",0"); 1493 | } else { 1494 | let d, t; 1495 | [d, t] = gv("k_lastjob", "").split(","); 1496 | if (Date.now() - parseInt(d) >= 1000 * 60 * 60 * 24 * 7 && t<=3) { 1497 | t = parseInt(t) + 1; 1498 | sv("k_lastjob", Date.now().toString() + "," +t); 1499 | } 1500 | } 1501 | }; 1502 | 1503 | /* 1504 | 绕过一部分CF机器人校验 1505 | */ 1506 | const byebyeCF = () => { 1507 | GM_cookie.delete({ 1508 | name: "cf_clearance", 1509 | domain: ".chatgpt.com", 1510 | path: "/" 1511 | }); 1512 | }; 1513 | 1514 | const nInterval1Fun = function() { 1515 | byebyeCF(); 1516 | if ($(symbol1_selector) || $(symbol2_selector)) { 1517 | setIfr(); 1518 | speakCompletely(); 1519 | } 1520 | }; 1521 | 1522 | [symbol1_selector, symbol2_selector].forEach(el => { 1523 | muob(el, $(`body`), () => { 1524 | loadKCG(); 1525 | setIfr(); 1526 | }); 1527 | }); 1528 | 1529 | const nInterval2Fun = function() { 1530 | if ($(symbol1_selector) || $(symbol2_selector)) { 1531 | keepChat(); 1532 | } 1533 | }; 1534 | 1535 | hookFetch(); 1536 | //fixOpenaiBUG(); 1537 | dataSec(); 1538 | 1539 | let nInterval1 = setInterval(nInterval1Fun, 300); 1540 | let interval2Time = parseInt(gv("k_interval", 50)); 1541 | let nInterval2 = setInterval(nInterval2Fun, 1000 * interval2Time); 1542 | 1543 | })(); 1544 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |
4 | 5 | 6 | 7 |
8 | 9 | version 10 | download 11 | stars 12 | forks 13 | python 14 | javascript 15 | 16 |
17 | 18 |
19 | 20 | | 中文 | English | Español | 21 | | --- | --- | --- | 22 | 23 | ## 项目简介 24 | 25 | - 喜欢这个插件的小伙伴,可以给我的GITHUB项目 [KeepChatGPT](https://github.com/xcanwin/KeepChatGPT) 点个⭐️STAR支持一下。 26 | - 这是一款提高```ChatGPT```的数据安全能力和效率的插件。它可以让你的聊天无比丝滑,省去足足几十数百个多余步骤,一劳永逸摆脱各种```报错```和```警告```。并且免费共享大量创新功能,如:自动刷新、保持活跃、数据安全、取消审计、克隆对话、言无不尽、净化页面、展示大屏、拦截跟踪、日新月异、明察秋毫等。让我们的AI体验无比安全、顺畅、丝滑、高效、简洁。 27 | - 没有研发经费,纯用爱发电,欢迎关注。谢谢[赞赏猫粮](#赞赏) 28 | 29 | ## 展示 30 | 31 | | 序号 | 截图 | 32 | | --- | --- | 33 | | 1 | 亮色主题 + 净化页面
| 34 | | 2 | 亮色主题 + 明察秋毫 + 展示大屏 + 日新月异
| 35 | | 3 | 暗色主题 + 明察秋毫 + 展示大屏 + 日新月异
| 36 | | 4 | 移动端 + 净化页面
| 37 | 38 | ## 功能简介 39 | 40 | 1. 支持[调整间隔](#关于-调整间隔-功能) 41 | 2. 支持[数据安全](#关于-数据安全-功能) 42 | 3. 支持[取消审计](#关于-取消审计-功能) 43 | 4. 支持[克隆对话](#关于-克隆对话-功能) 44 | 5. 支持[言无不尽](#关于-言无不尽-功能) 45 | 6. 支持[净化页面](#关于-净化页面-功能) 46 | 7. 支持[展示大屏](#关于-展示大屏-功能) 47 | 8. 支持[拦截跟踪](#关于-拦截跟踪-功能) 48 | 9. 支持[日新月异](#关于-日新月异-功能) 49 | 10. 支持[明察秋毫](#关于-明察秋毫-功能) 50 | 11. 支持多国语言 51 | 12. 支持[电脑系统](#使用方法-电脑系统) 52 | 13. 支持移动系统 ([鸿蒙](#使用方法-鸿蒙系统)、[iOS](#使用方法-iOS系统)、[Android](#使用方法-鸿蒙系统)) 53 | 14. 支持[保持活跃](#关于-保持活跃-功能) 54 | 15. 解决聊天中断 55 | 16. 解决频繁刷新 56 | 17. 解决消息无法发送 57 | 18. 解决以下报错 58 | 59 | | 序号 | 解决以下报错 | 60 | | --- | --- | 61 | | 1 |
NetworkError when attempting to fetch resource. | 62 | | 2 |
Something went wrong. If this issue persists please contact us through our help center at help.openai.com. | 63 | | 3 |
Conversation not found | 64 | | 4 |
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. | 65 | 66 | ## 用户反馈 67 | 68 | - 有好有坏 69 | - 对于好的谢谢大家点赞 70 | - 对于坏的会持续更新 71 | 72 | 73 | 74 | 75 | 76 | 77 | ## 安装渠道 78 | 79 | 官方渠道✅: 80 | 81 | | 序号 | UserScript源 | 备注 | 82 | | --- | --- | --- | 83 | | 1 | [Github开源社区](https://raw.githubusercontent.com/xcanwin/KeepChatGPT/main/KeepChatGPT.user.js) | ✅推荐 | 84 | 85 | ~~虚假渠道~~❌: 86 | 87 | | 序号 | UserScript源 | 备注 | 88 | | --- | --- | --- | 89 | | 1 | [~~谷歌应用商店~~](https://chrome.google.com/webstore/category/extensions) | ⚠️当心,这不是作者上传的。有人抄袭了KeepChatGPT,并且要求用户付费 | 90 | | 2 | [~~微软应用商店~~](https://microsoftedge.microsoft.com/) | ⚠️当心,这不是作者上传的。有人抄袭了KeepChatGPT,并且要求用户付费 | 91 | 92 | ## 使用方法 电脑系统 93 | 94 | 1. 安装```Tampermonkey```,通过 [官网](https://www.tampermonkey.net/); 95 | 2. 安装```KeepChatGPT```,通过 [安装渠道](#安装渠道); 96 | 3. 访问 [ChatGPT](https://chat.openai.com/chat); 97 | 98 | ## 使用方法 鸿蒙系统 99 | 100 | 1. 浏览器用```Firefox```; 101 | 2. 安装```Firefox```,通过 [华为应用市场](https://appgallery.huawei.com/app/C31765)、[官网](https://www.mozilla.org/firefox/browsers/mobile/android/); 102 | 3. 打开```Firefox``` > 右下角```...``` > 附加组件 > 附加组件管理器 > ```Tampermonkey```右边的```+```; 103 | 4. 安装```KeepChatGPT```,通过 [安装渠道](#安装渠道); 104 | 5. 访问 [ChatGPT](https://chat.openai.com/chat); 105 | 106 | ## 使用方法 iOS系统 107 | 108 | 1. 浏览器用```Safari```; 109 | 2. 安装```Stay```,通过 [App Store](https://apps.apple.com/app/id1591620171); 110 | 3. 使用说明参考 [官网](https://github.com/shenruisi/Stay); 111 | 4. 安装```KeepChatGPT```,通过 [安装渠道](#安装渠道); 112 | 5. 访问 [ChatGPT](https://chat.openai.com/chat); 113 | 114 | ## 其他说明 115 | 116 | ### 关于 保持活跃 功能 117 | 118 | - 对比发现,省去10个多余的步骤,顺畅聊天: 119 | 120 | | 实验环境 | 不使用KeepChatGPT插件 | 使用KeepChatGPT插件 | 121 | | :------: | :----------------------------------------------: | :--------------------------: | 122 | | 现象 | 频繁```NetworkError```告警,导致必须刷新网页。 | 不会网络报错,不需要刷新。 | 123 | | 步骤1 | 下发指令 | 下发指令 | 124 | | 步骤2 | 等待结果 | 等待结果 | 125 | | 步骤3 | 遇到网络报错 | 得到结果 | 126 | | 步骤4 | 尝试点击重新下发 | | 127 | | 步骤5 | 再次遇到网络报错 | | 128 | | 步骤6 | 复制刚刚的指令 | | 129 | | 步骤7 | 刷新页面 | | 130 | | 步骤8 | 等待网页加载完 | | 131 | | 步骤9 | 打开刚刚的聊天会话 | | 132 | | 步骤10 | 粘贴刚刚的指令 | | 133 | | 步骤11 | 再次下发指令 | | 134 | | 步骤12 | 再次等待结果 | | 135 | | 步骤13 | 得到结果 | | 136 | 137 | ### 关于 大量用户网络错误 138 | 139 | 1. 原因:算力紧张、使用量大、Cloudflare风控与误杀。解决方案:使用本插件。 140 | 141 | ### 关于 依旧报错 142 | 143 | 1. 原因: 参考 [```关于 大量用户网络错误```](#关于-大量用户网络错误)。解决方案: 更换网络。 144 | 2. 原因: 参考 [```关于 调整间隔 功能```](#关于-调整间隔-功能)。解决方案: 适度调整keep的间隔。 145 | 146 | ### 关于 其他错误 147 | 148 | 1. 出现下述错误信息可参考官方的解决方案: [官方-报错](https://openai.com/policies/usage-policies) 149 | 2. 401 - Invalid Authentication 150 | 3. 401 - Incorrect API key provided 151 | 4. 401 - You must be a member of an organization to use the API 152 | 5. 429 - Rate limit reached for requests 153 | 6. 429 - You exceeded your current quota, please check your plan and billing details 154 | 7. 429 - The engine is currently overloaded, please try again later 155 | 8. 500 - The server had an error while processing your request 156 | 157 | ### 关于 错误信息429 - Too many requests in 1 hour. Try again later 158 | 159 | 1. 原因: 新注册无免费额度,查询 [官网-额度](https://platform.openai.com/account/usage)。解决方案: 换邮箱和手机号注册。 160 | 2. 原因: 老用户用完了额度,查询 [官网-额度](https://platform.openai.com/account/usage)。解决方案: 充值openai。 161 | 3. 原因: Cloudflare的bug。解决方案: 隐私模式、清理cookie。 162 | 4. 原因: 共享网络导致触发风控。解决方案: 更换网络。 163 | 164 | ### 关于 取消审计 功能 165 | 166 | 1. openai会 [审计](https://platform.openai.com/docs/guides/moderation/overview) 用户的所有对话,如果频繁违反 [政策](https://openai.com/policies/usage-policies),可能导致封号。 167 | 2. 勾选了```取消审计```以后,加上你巧妙的提示词(必须),可以最大程度避免封号。 168 | 169 | ### 关于 调整间隔 功能 170 | 171 | 1. 指的是向openai保持在线的时间间隔,单位是```秒```。 172 | 2. 时间间隔越大,则请求越缓和,账号越稳定。 173 | 3. 时间间隔越小,则请求越紧凑,网络错误越少。 174 | 4. 建议间隔```50```秒以上。 175 | 5. 作者平时设置的是```900```秒。 176 | 177 | ### 关于 克隆对话 功能 178 | 179 | 1. 一键快速完成选中、复制、粘贴、编辑 180 | 2. 勾选了```克隆对话```以后,可以通过点击对话内容前的```头像```,快速编辑。 181 | 3. 对比发现,省去5个多余的步骤,顺畅聊天: 182 | 183 | | 实验环境 | 不勾选克隆对话 | 勾选克隆对话 | 184 | | :------: | :--------------------: | :----------: | 185 | | 步骤1 | 下发指令 | 下发指令 | 186 | | 步骤2 | 得到结果 | 得到结果 | 187 | | 步骤3 | 对结果不满意 | 对结果不满意 | 188 | | 步骤4 | 鼠标点击指令的开头不放 | 点击对话头像 | 189 | | 步骤5 | 鼠标滚轮滚动 | 开始调整指令 | 190 | | 步骤6 | 鼠标拖拉到指令的结尾 | | 191 | | 步骤7 | 复制指令 | | 192 | | 步骤8 | 鼠标点击对话框 | | 193 | | 步骤9 | 粘贴指令 | | 194 | | 步骤10 | 开始调整指令 | | 195 | 196 | ### 关于 净化页面 功能 197 | 198 | 1. 净化多余元素。 199 | 2. 勾选了```净化页面```以后,页面焕然一新,享受金标,提升体验感。 200 | 201 | ### 关于 展示大屏 功能 202 | 203 | 1. 拓宽聊天视野```PRO```。 204 | 2. 勾选了```展示大屏```以后,大幅减少鼠标滚动,对话一目了然,提升体验感。 205 | 206 | ### 关于 言无不尽 功能 207 | 208 | 1. 让ChatGPT尽情地表达,没有遗漏。 209 | 2. 勾选了```言无不尽```以后,提问后可以无人值守,享受ChatGPT尽情地表达,直到回复完所有内容。 210 | 3. 经测试,这个功能可以让ChatGPT发言长达5分30秒,大大地突破了原本的60秒限制。 211 | 4. 对比发现,省去21个多余的步骤,顺畅聊天: 212 | 213 | | 实验环境 | 不勾选言无不尽 | 勾选言无不尽 | 214 | | :------: | :-----------------: | :------------: | 215 | | 步骤1 | 下发指令 | 下发指令 | 216 | | 步骤2 | 等待结果 | 等待结果 | 217 | | 步骤3 | 盯着结果 | 得到完整结果 | 218 | | 步骤4 | 得到不完整结果 | | 219 | | 步骤5 | 点击```Continue``` | | 220 | | 步骤6~21 | 步骤2~5重复做4次... | | 221 | | 步骤22 | 等待结果 | | 222 | | 步骤23 | 盯着结果 | | 223 | | 步骤24 | 得到完整结果 | | 224 | 225 | ### 关于 拦截跟踪 功能 226 | 227 | 1. 抓包发现ChatGPT页面都会上传大量的用户环境信息,进行大量的行为分析、用户跟踪。 228 | 2. 勾选了```拦截跟踪```以后,可以拦截大部分的跟踪行为,保护了用户的信息安全,提高页面加载速度。 229 | 3. 经测试,刷新ChatGPT页面会产生```50~100```个网络请求,其中至少```15~65```个网络请求是在跟踪、分析用户! 230 | 4. 作者认为这些网络请求完全没必要!所以,强烈建议注重隐私安全的用户勾选这个功能。 231 | 232 | ### 关于 日新月异 功能 233 | 234 | 1. 增强侧边栏。 235 | 2. 勾选了```日新月异```以后,侧边栏会出现```标题```、```最新消息```、```日期```、```星期```、```对话模型```等,帮助用户快速定位历史的优质的聊天项目。 236 | 237 | | LOGO | 对话模型 | 238 | | --- | --- | 239 | | 黑色气泡 | GPT3.5 模型 | 240 | | 紫色气泡 | GPT4 模型 | 241 | | 紫色气泡 + m | GPT4 Mobile 模型 | 242 | | 紫色气泡 + w | GPT4 Web Browsing 模型 | 243 | | 紫色气泡 + p | GPT4 Plugins 模型 | 244 | | 紫色气泡 + d | GPT4 Code Interpreter 模型 | 245 | 246 | | 不勾选日新月异 | 勾选日新月异 | 247 | | --- | --- | 248 | | | | 249 | 250 | ### 关于 明察秋毫 功能 251 | 252 | 1. 模仿聊天软件的样式,提升用户与机器人的对话气泡的辨别度。 253 | 2. 勾选了```明察秋毫```以后,聊天页面焕然一新,提升体验感。 254 | 255 | ### 关于 数据安全 功能 256 | 257 | 1. 数据安全解决方案,帮助用户拦截敏感信息,避免发生数据安全问题。 258 | 2. 勾选了```数据安全```以后,会在用户编写对话时自动化清理敏感信息(脱敏),并且进行风险提示。 259 | 3. 请根据正则表达式语法编写数据安全规则,不同规则之间用换行间隔。 260 | 4. 默认的数据安全规则还比较初级,需要大家自定义自己的规则。 261 | 5. 大家还可以把自己的姓名、ID、电脑用户名、公司名称、企业域名等作为规则。 262 | 263 | 演示一下效果,如果向对话框编写、粘贴这段提示词: 264 | ``` 265 | C:\Users\my-secret-username\Desktop> python login.py 266 | File "C:\Users\my-secret-username\Desktop\login.py", line 4 267 | if Mobile!"18888888888" and Email=="admin@163.com" : print("https://securiy-domain.com/login") 268 | ^ 269 | SyntaxError: invalid syntax 270 | ``` 271 | 272 | 则会立刻被纠正为: 273 | ``` 274 | C:\Users\\Desktop> python login.py 275 | File "C:\Users\\Desktop\login.py", line 4 276 | if Mobile!"" and Email=="" : print("/login") 277 | ^ 278 | SyntaxError: invalid syntax 279 | ``` 280 | 281 | 282 | 283 | ## 赞赏 284 | 285 | - 本项目由兴趣驱使,提升自己的体验,并共享世界。 286 | - 如果你喜欢作者的项目,可以给作者一个免费的Star或者Follow。 287 | - 如果你希望作者的小猫吃到更好的罐头,欢迎赞赏与激励。 288 | - 可在备注里写上你的ID,谢谢。 289 | 290 | | From | Thanks | 291 | | --- | --- | 292 | | 我的猫 | | 293 | | buymeacoffee | [](https://www.buymeacoffee.com/xcanwin)
点击图片 | 294 | | 爱发电
(支持微信、支付宝) | [](https://afdian.net/a/xcanwin/plan)
点击图片或者扫描 | 295 | | 微信 | | 296 | -------------------------------------------------------------------------------- /assets/KeepChatGPT.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/KeepChatGPT.png -------------------------------------------------------------------------------- /assets/appreciate_afdian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/appreciate_afdian.png -------------------------------------------------------------------------------- /assets/appreciate_buycoffee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/appreciate_buycoffee.png -------------------------------------------------------------------------------- /assets/appreciate_mycat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/appreciate_mycat.jpg -------------------------------------------------------------------------------- /assets/appreciate_wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/appreciate_wechat.png -------------------------------------------------------------------------------- /assets/chat_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/chat_dark.png -------------------------------------------------------------------------------- /assets/chat_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/chat_light.png -------------------------------------------------------------------------------- /assets/error_conversation_not_found.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/error_conversation_not_found.png -------------------------------------------------------------------------------- /assets/error_network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/error_network.png -------------------------------------------------------------------------------- /assets/index_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/index_light.png -------------------------------------------------------------------------------- /assets/index_light_en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/index_light_en.png -------------------------------------------------------------------------------- /assets/index_mobile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/index_mobile.png -------------------------------------------------------------------------------- /assets/index_sidebar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/index_sidebar.png -------------------------------------------------------------------------------- /assets/index_sidebar_everchanging.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/index_sidebar_everchanging.png -------------------------------------------------------------------------------- /assets/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/logo2.png -------------------------------------------------------------------------------- /assets/user_feedback_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/user_feedback_1.png -------------------------------------------------------------------------------- /assets/user_feedback_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/user_feedback_2.png -------------------------------------------------------------------------------- /assets/user_feedback_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/user_feedback_3.png -------------------------------------------------------------------------------- /assets/user_feedback_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/user_feedback_4.png -------------------------------------------------------------------------------- /assets/warn_data_security.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/warn_data_security.png -------------------------------------------------------------------------------- /assets/wrong_audit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/wrong_audit.png -------------------------------------------------------------------------------- /assets/wrong_somthing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xcanwin/KeepChatGPT/91e33fd20c96218fdbffddba4ac3cc635954bea6/assets/wrong_somthing.png -------------------------------------------------------------------------------- /docs/README_EN.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |
4 | 5 | 6 | 7 |
8 | 9 | version 10 | download 11 | stars 12 | forks 13 | python 14 | javascript 15 | 16 |
17 | 18 |
19 | 20 | | 中文 | English | Español | 21 | | --- | --- | --- | 22 | 23 | ## Project Introduction 24 | 25 | - Friends who like this plug -in, you can give my GitHub project [KeepChatGPT](https://github.com/xcanwin/KeepChatGPT) ⭐️Star support it. 26 | - This is a plug -in to improve the data security capacity and efficiency of ```ChatGPT```.It can make your chat extremely smooth, eliminating dozens of unnecessary steps, and once and for all, get rid of various ```errors``` and ```warnings```.And freely share a large number of innovative functions, such as: automatic refresh, active, data security, cancellation of audit, cloning dialogue, endless words, purifying pages, displaying large screens, interception tracking, changing with each other, and inspecting.Let our AI experience extremely safe, smooth, silky, efficient, and concise. 27 | - There is no research and development expenses, and use love to generate electricity purely. Welcome to follow.Thank you for [appreciating cat food](#Sponsor). 28 | 29 | 30 | ## Showcase 31 | 32 | | No. | Screenshot | 33 | | --- | --- | 34 | | 1 | Light Theme + Page Purification
| 35 | | 2 | Light Theme + Meticulousness + Large Screen Display + Constant Updates
| 36 | | 3 | Dark Theme + Meticulousness + Large Screen Display + Constant Updates
| 37 | | 4 | Mobile + Page Purification
| 38 | 39 | ## Feature introduction 40 | 41 | 1. Support [Modify-interval](#About-Modify-interval) 42 | 2. Support [Data-security](#About-Data-security) 43 | 3. Support [Cancel-audit](#About-Cancel-audit) 44 | 4. Support [Conversation-cloning](#About-Conversation-cloning) 45 | 5. Support [Complete-response](#About-Complete-response) 46 | 6. Support [Purified-page](#About-Purified-page) 47 | 7. Support [Wide-display-mode](#About-Wide-display-mode) 48 | 8. Support [Intercept-tracking](#About-Intercept-tracking) 49 | 9. Support [More-chat-info](#About-More-chat-info) 50 | 10. Support [Keen observation](#About-Keen-observation) 51 | 11. Support multiple languages 52 | 12. Support [PC](#Usage-PC) 53 | 13. Support ([Harmony OS](#Usage-Harmony-OS)、[iOS](#Usage-iOS)、[Android](#Usage-Harmony-OS)) 54 | 14. Support [Keep alive](#About-Keep-alive) 55 | 15. Resolve chat interruptions 56 | 16. Resolve frequent refreshes 57 | 17. Resolve messages that could not be sent 58 | 18. Resolve the following errors 59 | 60 | | Serial number | Resolve the following errors | 61 | | --- | --- | 62 | | 1 |
NetworkError when attempting to fetch resource. | 63 | | 2 |
Something went wrong. If this issue persists please contact us through our help center at help.openai.com. | 64 | | 3 |
Conversation not found | 65 | | 4 |
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. | 66 | 67 | ## User feedback 68 | 69 | - There are good and bad 70 | - For the good, thank you for the thumbs up 71 | - The bad ones will be updated continuously 72 | 73 | 74 | 75 | 76 | 77 | 78 | ## Install channels 79 | 80 | Official Channels✅: 81 | 82 | | Serial number | UserScript | Remarks | 83 | | --- | --- | --- | 84 | | 1 | [Github](https://raw.githubusercontent.com/xcanwin/KeepChatGPT/main/KeepChatGPT.user.js) | ✅Recommended | 85 | 86 | ~~Fake channels~~❌: 87 | 88 | | Serial number | UserScript | Remarks | 89 | | --- | --- | --- | 90 | | 1 | [~~Google Play Store~~](https://chrome.google.com/webstore/category/extensions) | ⚠️️Beware, this is not uploaded by the author. Someone copied KeepChatGPT and asked the user to pay for it | 91 | | 2 | [~~Microsoft Store~~](https://microsoftedge.microsoft.com/) | ⚠️️Beware, this is not uploaded by the author. Someone copied KeepChatGPT and asked the user to pay for it | 92 | 93 | ## Usage PC 94 | 95 | 1. Installation ```Tampermonkey```, through the [official website](https://www.tampermonkey.net/); 96 | 2. Installation ```KeepChatGPT```, through the [Install channels](#Install-channels); 97 | 3. Open [ChatGPT](https://chat.openai.com/chat); 98 | 99 | ## Usage Harmony OS 100 | 101 | 1. Browsers ```Firefox```; 102 | 2. Installation ```Firefox```, through the [HUAWEI App Store](https://appgallery.huawei.com/app/C31765) and [official website](https://www.mozilla.org/firefox/browsers/mobile/android/); 103 | 3. Open ```Firefox``` > bottom right corner ```...``` > Add-ons > Add-ons Manager > The one on the right ```+```; 104 | 4. Installation ```KeepChatGPT```, through the [Install channels](#Install-channels); 105 | 5. Open [ChatGPT](https://chat.openai.com/chat); 106 | 107 | ## Usage iOS 108 | 109 | 1. Browsers ```Safari```; 110 | 2. Installation ```Stay```, through the [App Store](https://apps.apple.com/app/id1591620171); 111 | 3. For instructions on use, please refer to [official website](https://github.com/shenruisi/Stay); 112 | 4. Installation ```KeepChatGPT```, through the [Install channels](#Install-channels); 113 | 5. Open [ChatGPT](https://chat.openai.com/chat); 114 | 115 | ## Other Notes 116 | 117 | ### About Keep alive 118 | 119 | - The comparison found that 10 redundant steps were omitted and the chat was smooth 120 | 121 | | Experimental environment | Unuse the KeepChatGPT plugin | Use the KeepChatGPT plugin | 122 | | :------: | :----------------------------------------------: | :--------------------------: | 123 | | phenomenon | Frequent ```NetworkError``` alarm, which causes the web page to be refreshed. | No network error is reported and no refresh is required. | 124 | | Step 1 | Command is issued | Command is issued | 125 | | Step 2 | Wait for the results | Wait for the results | 126 | | Step 3 | A network error message is generated | Get results | 127 | | Step 4 | Try clicking Re-deliver | | 128 | | Step 5 | The network error is reported again | | 129 | | Step 6 | Copy the instruction you just made | | 130 | | Step 7 | Refresh the page | | 131 | | Step 8 | Wait for the page to load | | 132 | | Step 9 | Open the chat session you just | | 133 | | Step 10 | Paste the instruction you just directed | | 134 | | Step 11 | The command is issued again | | 135 | | Step 12 | Wait for the results again | | 136 | | Step 13 | Get results | | 137 | 138 | ### About a large number of user network errors 139 | 140 | 1. Reason: Shortage of computing power, large usage, Cloudflare risk control and manslaughter. Solution: Use this plugin. 141 | 142 | ### About still reporting mistakes 143 | 144 | 1. Reason: Reference [```About a large number of user network errors```](#About-a-large-number-of-user-network-errors). Solution: Replace the network. 145 | 2. Reason: Reference [```About Modify interval```](#About-Modify-interval). Solution: Adjust the interval of Keep moderately. 146 | 147 | ### About Other Errors 148 | 149 | 1. If the following error message appears, please refer to the official solution: [Official - Error Message](https://openai.com/policies/usage-policies) 150 | 2. 401 - Invalid Authentication 151 | 3. 401 - Incorrect API key provided 152 | 4. 401 - You must be a member of an organization to use the API 153 | 5. 429 - Rate limit reached for requests 154 | 6. 429 - You exceeded your current quota, please check your plan and billing details 155 | 7. 429 - The engine is currently overloaded, please try again later 156 | 8. 500 - The server had an error while processing your request 157 | 158 | ### About ERROR429 - Too many requests in 1 hour. Try again later 159 | 160 | 1. Reason: There is no free quota for new registration, please check the [official website - quota](https://platform.openai.com/account/usage). Solution: Change your email address and mobile phone number to register. 161 | 2. Reason: Old users have used up the quota, check the [official website - quota](https://platform.openai.com/account/usage). Solution: Deposit OpenAI. 162 | 3. Reason: Cloudflare's bug. Solution: Privacy mode, clear cookies. 163 | 4. Reason: Risk control is triggered due to network sharing. Solution: Replace the network. 164 | 165 | ### About Cancel audit 166 | 167 | 1. OpenAI [audits](https://platform.openai.com/docs/guides/moderation/overview) all of a user's conversations, which [policy](https://openai.com/policies/usage-policies) can lead to account bans if the policy is frequently violated. 168 | 2. Ticked ```Cancel audit``` In the future, add your clever prompt words (must) to avoid banning to the greatest extent. 169 | 170 | ### About Modify interval 171 | 172 | 1. Refers to the time interval between staying online to OpenAI, in `seconds`. 173 | 2. The larger the time interval, the more relaxed the request and the more stable the account. 174 | 3. The smaller the time interval, the tighter the request and the fewer network errors. 175 | 4. Recommended intervals ```50``` More than a second. 176 | 5. The author usually sets it up ```900``` Second. 177 | 178 | ### About Conversation cloning 179 | 180 | 1. Quickly select, copy, paste, and edit with one click 181 | 2. Ticked ```Conversation cloning``` Later, you can click on the content of the conversation before ```Avatar``` for quick editing. 182 | 3. The comparison found that 5 redundant steps were omitted and the chat was smooth: 183 | 184 | | Experimental environment | Uncheck Conversation cloning | Tick Conversation cloning | 185 | | :------: | :--------------------: | :----------: | 186 | | Step 1 | Command is issued | Command is issued | 187 | | Step 2 | Get results | Get results | 188 | | Step 3 | Not satisfied with the results | Not satisfied with the results | 189 | | Step 4 | Mouse click on the beginning of the command | Click the conversation profile picture | 190 | | Step 5 | Mouse wheel scrolling | Start adjusting the instruction | 191 | | Step 6 | Drag the mouse to the end of the command | | 192 | | Step 7 | Copy the instruction | | 193 | | Step 8 | Mouse click dialog | | 194 | | Step 9 | Paste the instruction | | 195 | | Step 10 | Start adjusting the instruction | | 196 | 197 | ### About Purified page 198 | 199 | 1. Purify excess elements. 200 | 2. Ticked ```Purified page``` In the future, the page will have a new look, enjoy the gold label, and enhance the sense of experience. 201 | 202 | ### About Wide display mode 203 | 204 | 1. Broaden your chatting horizons ```PRO``` 205 | 2. Ticked ```Wide display mode``` In the future, mouse scrolling will be greatly reduced, and the dialogue will be clear at a glance, improving the sense of experience. 206 | 207 | ### About Complete response 208 | 209 | 1. Let ChatGPT express itself to its heart's content, without missing anything. 210 | 2. Ticked ```Complete response``` In the future, you can be unattended after asking a question and enjoy ChatGPT to express yourself to your heart's content until everything is replied. 211 | 3. After testing, this feature can make ChatGPT speak for up to 5 minutes and 30 seconds, greatly breaking the original 60-second limit. 212 | 4. The comparison found that 21 redundant steps were omitted and the chat was smooth: 213 | 214 | | Experimental environment | Uncheck Complete response | Tick Complete response | 215 | | :------: | :-----------------: | :------------: | 216 | | Step 1 | Command is issued | Command is issued | 217 | | Step 2 | Wait for the results | Wait for the results | 218 | | Step 3 | Keep an eye on the results | Get full results | 219 | | Step 4 | Incomplete results are obtained | | 220 | | Step 5 | Click ```Continue``` | | 221 | | Step 6~21 | Step 2 ~ 5 Repeat 4 times ... | | 222 | | Step 22 | Wait for the results | | 223 | | Step 23 | Keep an eye on the results | | 224 | | Step 24 | Get full results | | 225 | 226 | ### About Intercept tracking 227 | 228 | 1. Capturing packets shows that the ChatGPT page uploads a lot of user environment information, performing extensive behavior analysis and user tracking. 229 | 2. Enabling ```Tracking Interception``` can block most tracking behaviors, protecting user information and improving page load speed. 230 | 3. Tests show that refreshing the ChatGPT page generates ```50~100``` network requests, with at least ```15~65``` requests tracking and analyzing users! 231 | 4. The author believes these requests are unnecessary! Hence, users concerned about privacy should enable this feature. 232 | 233 | ### About More chat info 234 | 235 | 1. Enhances the sidebar. 236 | 2. Enabling ```Constant Updates``` will display ```titles```, ```latest news```, ```dates```, ```days of the week```, ```conversation models```, etc., in the sidebar, helping users quickly locate high-quality historical chat items. 237 | 238 | | LOGO | Conversation Model | 239 | | --- | --- | 240 | | Black Bubble | GPT3.5 Model | 241 | | Purple Bubble | GPT4 Model | 242 | | Purple Bubble + m | GPT4 Mobile Model | 243 | | Purple Bubble + w | GPT4 Web Browsing Model | 244 | | Purple Bubble + p | GPT4 Plugins Model | 245 | | Purple Bubble + d | GPT4 Code Interpreter Model | 246 | 247 | | Without Constant Updates | With Constant Updates | 248 | | --- | --- | 249 | | | | 250 | 251 | ### About Keen observation 252 | 253 | 1. Mimics chat software styles to enhance the distinction between user and robot chat bubbles. 254 | 2. Enabling ```Keen observation``` refreshes the chat page's appearance, improving the user experience. 255 | 256 | ### About Data security 257 | 258 | 1. Provides data security solutions, helping users intercept sensitive information to prevent data security issues. 259 | 2. Enabling ```Data security``` automatically cleans sensitive information (desensitizes) and provides risk warnings while users compose dialogues. 260 | 3. Please write data security rules according to regular expression syntax, with different rules separated by new lines. 261 | 4. The default data security rules are basic and need to be customized. 262 | 5. You can add your name, ID, computer username, company name, enterprise domain, etc., to the rules. 263 | 264 | Here's a demonstration: If you type or paste this prompt into the chat box: 265 | ``` 266 | C:\Users\my-secret-username\Desktop> python login.py 267 | File "C:\Users\my-secret-username\Desktop\login.py", line 4 268 | if Mobile!"18888888888" and Email=="admin@163.com" : print("https://securiy-domain.com/login") 269 | ^ 270 | SyntaxError: invalid syntax 271 | ``` 272 | 273 | will be immediately corrected to: 274 | ``` 275 | C:\Users\\Desktop> python login.py 276 | File "C:\Users\\Desktop\login.py", line 4 277 | if Mobile!"" and Email=="" : print("/login") 278 | ^ 279 | SyntaxError: invalid syntax 280 | ``` 281 | 282 | 283 | 284 | ## Sponsor 285 | 286 | - This project is driven by interest, elevating one's own experience, and sharing the world. 287 | - If you like the author's project, you can give the author a free Star or Follow. 288 | - If you want the author's kitten to eat better canned food, welcome to appreciate and motivate. 289 | - You can write your ID in the remarks, thank you. 290 | 291 | | From | Thanks | 292 | | --- | --- | 293 | | My cat | | 294 | | buymeacoffee | [](https://www.buymeacoffee.com/xcanwin)
Click on the image | 295 | | Love power generation
(Support WeChat, Alipay) | [](https://afdian.net/a/xcanwin/plan)
Click on the image or scan | 296 | | WeChat | | 297 | 298 | -------------------------------------------------------------------------------- /docs/README_ES.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |
4 | 5 | 6 | 7 |
8 | 9 | 中文 | English | Español 10 | 11 |
12 | 13 |
14 | 15 | ## Descripción del proyecto 16 | 17 | - Si te gusta este script, por favor apoya mi proyecto en GitHub KeepChatGPT dándole una ⭐️. 18 | - Este es un código abierto, gratuito y eficiente script de extensión de usuario para ChatGPT, que puede hacer que tus chats sean extremadamente fluidos y eliminar de una vez por todas varios errores y advertencias. Ahorrarás 10 pasos adicionales completos y te liberarás de la constante necesidad de actualizar la página. Los autores continúan añadiendo más mejoras, incluyendo la cancelación de auditorías, la clonación de conversaciones, la purificación de la página, la visualización en pantallas grandes, la visualización a pantalla completa, entre otras. 19 | - No hay financiación para la investigación y el desarrollo, esto se realiza puramente con el poder del amor. ¡Eres bienvenido/a a hacer una donación! Gracias por tu apoyo Patrocinadores. 20 | 21 | ## Introducción a las características 22 | 23 | 1. Se ha resuelto el error:`NetworkError when attempting to fetch resource.` 24 | 2. Se ha resuelto el error:`Something went wrong. If this issue persists please contact us through our help center at help.OpenAI.com.` 25 | 3. Se ha resuelto el error:`Conversation not found` 26 | 4. Se ha resuelto el error:`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.` 27 | 5. Se resolvieron las interrupciones frecuentes durante la comunicación 28 | 6. Se resolvió la actualización frecuente de páginas web 29 | 7. Soporte multilingüe 30 | 8. Resuelto el error oficial de que el nombre de usuario en el diálogo se copiaría por error 31 | 9. Soporte gratuito [Cancelar la auditoría de supervisión de backend](#about-cancel-audit-function) 32 | 10. Compatible con dispositivos móviles ([HarmonyOS](#usage-harmonyos-system), [Androide](#usage-android-system), [Ios](#usage-apple-system)) 33 | 11. Soporte libre [Ajustar intervalo de tiempo](#about-adjust-interval-feature) 34 | 12. Apoyo [Fácil clonación y edición no destructiva de diálogos especificados](#about-clone-dialogue-function) 35 | 13. Apoyo [Purificar la página](#about-purify-page-features) 36 | 14. Soporte de visualización de pantalla grande 37 | 15. Soporte de visualización de pantalla completa 38 | 39 | Lo anterior es una breve descripción de las funciones, la descripción detallada de las funciones al final de este artículo. 40 | 41 | Y al final de este artículo [Otras instrucciones](#other-instructions), el autor analiza brevemente [Por qué se producen errores de red a gran escala](#about-why-large-scale-network-errors-occur), soluciones comunes de mensajes de error 42 | 43 | | Num | Después de usar `KeepChatGPT`, la siguiente escena nunca volverá a aparecer | 44 | | --- | --- | 45 | | 1 | | 46 | | 2 | | 47 | | 3 | | 48 | | 4 | | 49 | 50 | ## Comentarios de los usuarios 51 | 52 | * Hay buenos y malos 53 | * Gracias por sus elogios 54 | * Seguirá actualizándose para los malos 55 | 56 | 57 | 58 | ## Comparación 59 | 60 | | Entorno experimental | Sin usar `KeepChatGPT` | Usando `KeepChatGPT` | 61 | | :----------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: | 62 | | Fenómeno | Cuadros de advertencia rojos frecuentes NetworkError en el chat, que aparecen cada diez minutos más o menos, que requieren que la página web se actualice | Nunca más habrá errores de red y no es necesario actualizar la página web | 63 | | Paso 1 | Emitir el mensaje | Emitir el mensaje | 64 | | Paso 2 | Espera el resultado | Espera el resultado | 65 | | Paso 3 | Encontrar un error de red | Obtener el resultado | 66 | | Paso 4 | Intentar hacer clic para reenviar | | 67 | | Paso 5 | Volver a encontrar el error de red | | 68 | | Paso 6 | Copiar el mensaje anterior | | 69 | | Paso 7 | Actualizar la página web | | 70 | | Paso 8 | Espere a que la página web termine de cargarse | | 71 | | Paso 9 | Abrir la sesión de chat anterior | | 72 | | Paso 10 | Pegue el mensaje anterior | | 73 | | Paso 11 | Vuelva a emitir el mensaje | | 74 | | Paso 12 | Espera el resultado de nuevo | | 75 | | Paso 13 | Obtener el resultado | | 76 | 77 | * En comparación, se puede ver que ahorra más de 10 pasos innecesarios y permite un chat fluido. 78 | 79 | ## Mostrar 80 | 81 | * Disfrute de la "Etiqueta de oro exclusiva" gratuita, que representa un cambio dramático en su experiencia de IA: 82 | * 83 | * Para los amigos a los que les gustan los tonos oscuros, puede pasar el cursor sobre la "Etiqueta dorada exclusiva" con el mouse y seleccionar "Tema" para cambiarla a "Etiqueta azul exclusiva": 84 | * 85 | * Moblie: 86 | * 87 | 88 | ## Explicación 89 | 90 | * Omita la verificación de araña de Cloudflare durante la apertura de la página usando Headless. 91 | * Omita la verificación aleatoria de la máquina de Cloudflare sin hacer clic. 92 | * Mantener el principio de minimizar el tráfico. 93 | * Mover el ratón sobre `Exclusive Gold Label` y seleccione `Show Debugging` para ver el proceso de omisión. 94 | 95 | ## Uso 96 | 97 | Los navegadores recomendados son `Chrome`, `Firefox`, `Edge` y otros navegadores compatibles con estos tres. 98 | 99 | 1. Instala la extensión del navegador `Tampermonkey` desde el sitio web de [Tampermonkey](https://www.tampermonkey.net/). 100 | 2. Instala `KeepChatGPT` seleccionando uno de los repositorios de [Instalación de repositorios](#install). 101 | 3. Abre [ChatGPT](https://chat.OpenAI.com/chat) y disfruta de una experiencia sin problemas. 102 | 4. Además, hay una forma más inteligente de hacerlo, que es preguntarle a ChatGPT: "¿Cómo instalar la extensión Tampermonkey? ¿Cómo instalar el script de usuario desde Greasy Fork?" 103 | 104 | ## Uso del sistema HarmonyOS 105 | 106 | 1. El navegador preferido es `Firefox`; 107 | 2. Instalar `Firefox` Aplicación del navegador, puede descargarla desde [Galería de aplicaciones de Huawei](https://appgallery.huawei.com/app/C31765)、[Sitio web oficial de Firefox](https://www.mozilla.org/firefox/browsers/mobile/android/); 108 | 3. Abrir `Firefox` Aplicación del navegador > esquina inferior derecha `...` > Complementos > Administrador de complementos > `+` a la derecha de `Tampermonkey`; 109 | 4. Instalar `KeepChatGPT` userscript, puede elegir un canal para instalar [Canal de instalación](#installation-channel); 110 | 111 | ## Uso del sistema Android 112 | 113 | 1. El navegador preferido es `Firefox`; 114 | 2. Instalar `Firefox` Aplicación del navegador, puede descargarla desde [Tienda de juegos](https://play.google.com/store/apps/details?id=org.mozilla.firefox)、[Sitio web oficial de Firefox](https://www.mozilla.org/firefox/browsers/mobile/android/); 115 | 3. Abrir `Firefox` Aplicación del navegador > esquina inferior derecha `...` > Complementos > Administrador de complementos > `+` a la derecha de `Tampermonkey`; 116 | 4. Instalar `KeepChatGPT` userscript, puede elegir un canal para instalar [Canal de instalación](#installation-channel); 117 | 118 | ## Uso del sistema Apple 119 | 120 | 1. El navegador preferido es `Safari`, otros navegadores están limitados por la política de Apple y rara vez admiten complementos JS; 121 | 2. Instale el `Stay` Aplicación de extensión del navegador, que se puede instalar desde [Tienda de aplicaciones](https://apps.apple.com/app/id1591620171); 122 | 3. Consulte \[Sitio web oficial de la estancia] () para instrucciones; 123 | 4. Instalar `KeepChatGPT` plugin, puede elegir un canal para instalar [Canal de instalación](#installation-channel); 124 | 125 | ## Canal de instalación 126 | 127 | | | Origen UserScript | 128 | | --- | --- | 129 | | 1 | [Github](https://raw.githubusercontent.com/xcanwin/KeepChatGPT/main/KeepChatGPT.user.js) | 130 | | 2 | [GreasyFork](https://greasyfork.org/zh-CN/scripts/462804-keepchatgpt) | 131 | 132 | * El autor solo proporciona el método de instalación del script de usuario, y las fuentes oficiales son solo las dos anteriores, busque las fuentes oficiales. 133 | * El autor piensa que los scripts de usuario son mejores que las extensiones. Todos pueden auditar la seguridad en cualquier momento, y todos pueden averiguar si hay datos cargados en secreto. 134 | * ⚠️[Google App Store](https://chrome.google.com/webstore/category/extensions) y ⚠️[Tienda de aplicaciones de Microsoft](https://microsoftedge.microsoft.com/) no son proporcionados por el autor. Y plagió este proyecto, pero también cobró a los usuarios. 135 | 136 | ## Otras instrucciones 137 | 138 | ### Acerca de por qué se producen errores de red a gran escala 139 | 140 | 1. Ha habido una escasez de potencia informática en el mundo debido a la crisis global de chips, y OpenAI también existe. 141 | 2. OpenAI se convirtió en un éxito instantáneo, y el número de usuarios, el tiempo en línea del usuario y la frecuencia del usuario aumentaron considerablemente al mismo tiempo, lo que agravó la escasez de recursos. 142 | 3. Se ha derivado una gran cantidad de productos de IA y bots de IA, todos llamando a la API de ChatGPT y a la versión web de ChatGPT de forma privada, incluso con mucha más frecuencia que la suma de todos los usuarios reales. 143 | 4. OpenAI se conecta a `Cloudflare`Permite `strong protection rules`e intercepta productos de IA y bots de IA que están conectados de forma privada a OpenAI. 144 | 5. Al igual que el CAPTCHA gráfico, la intención era interceptar bots, pero una vez que existía el riesgo de que el CAPTCHA fuera reconocido, los webmasters desarrollaron el CAPTCHA gráfico para que fuera más complejo, afectando a usuarios reales, pero de hecho interceptando bots de manera efectiva. 145 | 6. `Cloudflare` es un servicio público, sirve a todos los sitios web, y sus reglas de protección y estrategias de control de riesgos son comunes. Muchos sitios web que no desean ser accedidos por rastreadores, bots, piratas informáticos o tráfico pesado se conectarán a Cloudflare, por lo que Cloudflare tiene una gran cantidad de estrategias de control de riesgos. 146 | 7. Un gran número de usuarios extranjeros son redes domésticas, y Cloudflare juzga que sus redes no están en riesgo, por lo que apenas informan de errores. 147 | 8. Un gran número de usuarios domésticos en China utilizan diversas técnicas mágicas de desplazamiento (denominadas `666`). Sin embargo, muchos `666` Las IP han sido o están actualmente incluidas en Cloudflare `strong protection rules` Lista de vigilancia prioritaria. Esta situación puede no ser necesariamente causada por los propios usuarios. Podría ser el resultado de acciones previas que afectan a usuarios posteriores, o la activación frecuente de controles de riesgo por parte de muchas IP en el mismo segmento C. También es posible que los propios usuarios no sepan que están utilizando un `666` IP, que activa los controles de riesgo. En consecuencia, Cloudflare identifica un riesgo potencial en su red, lo que lleva a mensajes de error y la necesidad de verificar la autenticidad de los usuarios reales. 148 | 9. Esto es solo la punta del iceberg, y podría haber varias otras razones subyacentes. 149 | 150 | ### Razones y soluciones para los errores de red incluso cuando se usa este complemento 151 | 152 | 1. Motivo: Consulte [*Con respecto a la función Ajustar intervalo*](#about-adjust-interval-feature). Solución: Ajuste el intervalo de mantenimiento moderadamente. 153 | 2. Motivo: Consulte [*Por qué se producen errores de red masiva*](#about-why-large-scale-network-errors-occur). Solución: cambie la IP, el centro de datos, el proveedor de servicios de Internet y el canal del `666`; La configuración más óptima para una sola `666`. 154 | 155 | ### Razones y soluciones para el mensaje de error 429 - Demasiadas solicitudes en 1 hora. Inténtalo de nuevo más tarde 156 | 157 | 1. En primer lugar, hay muchos tipos de errores 429. Confirme si no se menciona en [*Con respecto a otros errores*](#about-other-errors-causes-and-solutions). Si no es así, considere las siguientes posibilidades: 158 | 2. Motivo: Para los usuarios recién registrados o los usuarios que se registraron con el mismo teléfono, OpenAI no proporciona créditos gratuitos. Compruebe la [Página de uso del sitio web oficial de OpenAI](https://platform.OpenAI.com/account/usage) para más detalles. Solución: Regístrese con un correo electrónico y un número de teléfono diferentes. 159 | 3. Motivo: El uso del crédito se ha agotado. Compruebe la [Página de uso del sitio web oficial de OpenAI](https://platform.OpenAI.com/account/usage) para más detalles. Solución: Recarga para obtener más créditos. 160 | 4. Motivo: Error en Cloudflare. Solución: Utilice el modo de privacidad de un navegador o una instancia de ChatGPT. Si el modo de privacidad funciona normalmente, borre todas las cookies y el almacenamiento local relacionados con el dominio y los subdominios de OpenAI.com en el modo de navegación normal. 161 | 5. Motivo: es posible que no sepas que estás usando un `666` IP. Hay un grupo de "vecinos en línea con la misma salida de IP" que constantemente hacen solicitudes frecuentes para diversos fines. Aunque su tráfico es alto, logran mantenerse por debajo del umbral para evitar desencadenar el error 429. Sin embargo, cuando comienzas a usar este complemento, los arrastra hacia abajo y se quedan perplejos por encontrarse repentinamente con el error 429. Solución: cambie la IP, el centro de datos, el proveedor de servicios de Internet y el canal del `666`; La configuración más óptima para una sola `666`. 162 | 163 | ### Acerca de la función Cancelar auditoría 164 | 165 | 1. De forma predeterminada, todas sus conversaciones son auditadas automáticamente por el oficial de OpenAI. [moderación](https://platform.OpenAI.com/docs/guides/moderation/overview) sistema. Si el sistema de moderación de OpenAI detecta violaciones excesivas o violaciones de la [Políticas de uso de OpenAI](https://OpenAI.com/policies/usage-policies) En sus conversaciones, su cuenta corre el riesgo de ser restringida o incluso prohibida. 166 | 2. Por **habilitante** la función "Cancelar auditoría" de este complemento junto con su inteligente elección de palabras, puede minimizar el impacto en gran medida. 167 | 168 | ### Con respecto a la función Ajustar intervalo 169 | 170 | 1. El valor hace referencia al intervalo de tiempo para *guardar* (manteniendo viva la conexión), medido en *sobras*. 171 | 2. Un intervalo de tiempo más grande significa una velocidad de mantenimiento más lenta, menos impacto en el sitio web y una cuenta más segura. 172 | 3. Un intervalo de tiempo más pequeño significa una velocidad de mantenimiento más rápida y menos ocurrencia de errores de red. 173 | 4. Se recomienda tener un intervalo de *30* segundos o más. 174 | 5. El autor generalmente lo establece en *150* sobras. 175 | 176 | ### Acerca de la función Clonar conversación 177 | 178 | 1. ChatGPT pertenece al proyecto AI prompt. 179 | 2. Una de las cosas que más hace la ingeniería rápida es ajustar repetidamente las palabras rápidas hasta que se descubre que el robot realmente entiende y el resultado cumple con sus requisitos. 180 | 3. Una de las cosas más comunes que hace es ajustar repetidamente la redacción del mensaje antes de estar satisfecho con los resultados copiando y pegando lo que ya ha publicado. 181 | 4. Después de comprobar `Clone dialog`, puede hacer clic en el avatar delante del cuadro de diálogo que desea volver a optimizar, y el cuadro de diálogo aparecerá inmediatamente. 182 | 183 | ### Acerca de las características de la página Purify 184 | 185 | 1. Para los usuarios regulares (no Plus), a menudo se ve que la página de inicio de ChatGPT `https://chat.OpenAI.com/` está lleno de indicaciones inútiles. 186 | 2. Después de comprobar `Purify page`, puede hacer que la página de inicio se vea nueva, disfrutar del estándar de oro similar a los usuarios PLUS y mejorar la experiencia. 187 | 188 | ### Causas y soluciones para otros errores 189 | 190 | Si se produce el siguiente mensaje de error, consulte la solución oficial: [Código de error del documento oficial de OpenAI](https://OpenAI.com/policies/usage-policies) 191 | 401 - Autenticación no válida 192 | 401 - Clave API incorrecta proporcionada 193 | 401 - Debe ser miembro de una organización para usar la API 194 | 429 - Límite de tarifa alcanzado para solicitudes 195 | 429 - Excedió su cuota actual, verifique su plan y los detalles de facturación 196 | 429 - El motor está sobrecargado, inténtelo de nuevo más tarde 197 | 500 - El servidor tuvo un error al procesar su solicitud 198 | 199 | ### Acerca de los usuarios de PLUS no reportarán errores 200 | 201 | * Los usuarios PLUS están condenados al igual que los usuarios comunes. 202 | 203 | ## El patrocinador 204 | 205 | * ¡Si lo encuentras útil, increíble, suave o agradable! 206 | * Si deseas que el pequeño gato del autor pueda tener una mejor comida para gatos y comida enlatada. 207 | * Si este proyecto te ha sido útil. 208 | * Si este proyecto ha mejorado la eficiencia de tu trabajo. 209 | * Si deseas que este proyecto se mantenga continuamente para evitar una nueva ronda de mensajes de error de OpenAI. 210 | * Si deseas que este proyecto continúe actualizándose con más funciones. 211 | * Crear no es fácil, mantener un proyecto requiere tiempo, energía y habilidades técnicas. Se agradece el aprecio y el apoyo. 212 | * Puedes dejar tu DNI en la nota, gracias. 213 | 214 | | Desde | Gracias | 215 | | --- | --- | 216 | | Mi gato | | 217 | | Buymeacoffee | [](https://www.buymeacoffee.com/xcanwin) | 218 | | Afdian
(Soporte wechat y alipay) | [](https://afdian.net/a/xcanwin/plan) | 219 | | Wechat
(A veces no funciona) | | 220 | -------------------------------------------------------------------------------- /tools/kcg_doc_cdn.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | # 作用: 6 | 7 | 本脚本用于实现自动替换KeepChatGPT说明文档(README.md)里的图片链接 8 | 9 | """ 10 | 11 | import os, re 12 | 13 | def save(data, outfile): 14 | if not os.path.exists('test'): 15 | os.mkdir('test') 16 | open(outfile, 'wb').write(data.encode()) 17 | 18 | def main(): 19 | rm = open('README.md', 'rb').read().decode() 20 | kcg_code = open('KeepChatGPT.user.js', 'rb').read().decode() 21 | 22 | cdn_pre = 'https://hub.gitmirror.com/https://raw.githubusercontent.com/xcanwin/KeepChatGPT/main' 23 | version = re.findall(r'// @version\s+(\S*?)\s', kcg_code)[0] 24 | # version = '24.6' 25 | 26 | rm_new = re.sub(r'src="(/assets/.*?)"', r'src="{}\1?v={}"'.format(cdn_pre, version), rm) 27 | print(rm_new) 28 | save(rm_new, 'test/README_CDN.md') 29 | 30 | main() 31 | -------------------------------------------------------------------------------- /tools/kcg_i18n.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | # 作用: 6 | 7 | 本脚本用于实现KeepChatGPT多语言化 8 | 9 | # 使用方法: 10 | 11 | ## 第一步、 12 | 13 | 明确想要本地化的词汇,例如: 14 | 建议间隔30秒 15 | 16 | ## 第二步、 17 | 18 | 翻译成各国的临时语言包,向ChatGPT发送以下指令: 19 | ar,bg,cs,da,de,el,en,eo,es,fi,fr,fr-CA,he,hu,id,it,ja,ka,ko,nb,nl,pl,pt-BR,ro,ru,sk,sr,sv,th,tr,uk,ug,vi,zh-CN,zh-TW 20 | 按照上述国家顺序翻译一句话,并且按照我要求的格式逐行输出 21 | 格式要求:国家缩写: 翻译后的文字 22 | 冒号后面首字母需要大写 23 | 例如翻译"显示调试"的结果是: en: Show debug window 24 | 接下来,请翻译: 建议间隔30秒 25 | 26 | ## 第三步、 27 | 28 | 配置本脚本以下几个变量: 29 | lang:将KeepChatGPT中的lang变量值复制粘贴到这里 30 | new_str:填写想要本地化的词汇,例如建议间隔30秒,随意填,如果重复了就会覆盖 31 | new_str_min:填本地化词汇的英文缩写,例如si,随意填,如果重复了就会覆盖 32 | transle_tmp:将ChatGPT翻译的结果复制粘贴到这里 33 | 34 | ## 第四步、 35 | 36 | 运行,并把结果复制粘贴到KeepChatGPT中的lang变量值。 37 | 38 | """ 39 | 40 | import json, os 41 | 42 | def lang_add(lang, new_str, new_str_min, transle_tmp): 43 | lang["index"].update({new_str: new_str_min}) 44 | transle_tmp = transle_tmp.replace("\r", "") 45 | for t in transle_tmp.split("\n"): 46 | if t.strip(): 47 | key = t.split(":")[0].strip() 48 | value = "".join(t.split(":")[1:]).strip() 49 | lang["local"][key].update({new_str_min: value}) 50 | return lang 51 | 52 | def lang_del(lang, del_str, del_str_min): 53 | if del_str in lang["index"] and del_str_min == lang["index"][del_str]: 54 | del lang["index"][del_str] 55 | for l in lang["local"]: 56 | if del_str_min in lang["local"][l]: 57 | del lang["local"][l][del_str_min] 58 | return lang 59 | 60 | def format_json(lang): 61 | langStr = '' 62 | langStr += '{' + '\n' 63 | langStr += ' "index": %s,' % (json.dumps(lang['index'], ensure_ascii = False)) + '\n' 64 | langStr += ' "local": {' + '\n' 65 | lj = [] 66 | for country, langjson in lang['local'].items(): 67 | lj.append('"%s": %s' % (country, json.dumps(langjson, ensure_ascii = False))) 68 | lj = ',\n'.join(lj) 69 | langStr += lj + '\n' 70 | langStr += ' }' + '\n' 71 | langStr += '}' 72 | return langStr 73 | 74 | def save(data, outfile): 75 | if not os.path.exists('test'): 76 | os.mkdir('test') 77 | open(outfile, 'wb').write(data.encode()) 78 | 79 | def main(): 80 | lang = ''' 81 | { 82 | "index": {"暗色主题": "dm", "显示调试": "sd", "取消审计": "cm", "取消动画": "ca", "关于": "ab", "建议间隔50秒": "si", "调整间隔": "mi", "检查更新": "cu", "当前版本": "cv", "发现最新版": "dl", "已是最新版": "lv", "克隆对话": "cc", "净化页面": "pp", "展示大屏": "ls", "言无不尽": "sc", "拦截跟踪": "it", "日新月异": "ec", "赞赏鼓励": "ap", "警告": "wn", "数据安全": "ds", "发现敏感数据": "dd", "使用正则编写规则": "rr", "明察秋毫": "ko"}, 83 | "local": { 84 | "ar": {"dm": "الوضع الداكن", "sd": "إظهار التصحيح", "cm": "إلغاء التدقيق", "ca": "إلغاء الرسوم المتحركة", "ab": "حول", "si": "اقتراح فاصل زمني 50 ثانية", "mi": "تعديل الفاصل", "cu": "التحقق من التحديثات", "cv": "الإصدار الحالي", "dl": "اكتشف أحدث إصدار", "lv": "أحدث إصدار", "cc": "استنساخ المحادثة", "pp": "تنقية الصفحة", "ls": "عرض الشاشة الكبيرة", "sc": "تحدث بشكل كامل", "it": "اعتراض التتبع", "ec": "التغير المستمر", "ap": "تقدير", "wn": "تحذير", "ds": "أمان البيانات", "dd": "اكتشف البيانات الحساسة", "rr": "استخدم الريجكس لكتابة القواعد", "ko": "الرصد الدقيق"}, 85 | "bg": {"dm": "Тъмна тема", "sd": "Показване на отстраняване на грешки", "cm": "Отказ от одит", "ca": "Отмяна на анимацията", "ab": "За", "si": "Предложете интервал от 50 секунди", "mi": "Промяна на интервала", "cu": "Проверка на актуализации", "cc": "Клониране на разговора", "pp": "Почистване на страницата", "ls": "Показване на голям екран", "sc": "Говорете пълно", "it": "Прихващане на проследяването", "ec": "Непрекъснато променящ се", "ap": "Оценка", "wn": "Предупреждение", "ds": "Сигурност на данните", "dd": "Откриване на чувствителни данни", "rr": "Използвайте регулярни изрази за съставяне на правила", "ko": "Остро наблюдение"}, 86 | "cs": {"dm": "Tmavý režim", "sd": "Zobrazit ladění", "cm": "Zrušení auditu", "ca": "Zrušit animaci", "ab": "O", "si": "Navrhnout interval 50 sekund", "mi": "Upravit interval", "cu": "Kontrola aktualizací", "cc": "Klonovat konverzaci", "pp": "Očistit stránku", "ls": "Zobrazení velkého displeje", "sc": "Mluvte úplně", "it": "Zachytávání sledování", "ec": "Neustále se měnící", "ap": "Ocenění", "wn": "Varování", "ds": "Bezpečnost dat", "dd": "Detekce citlivých dat", "rr": "Použijte regulární výrazy pro psaní pravidel", "ko": "Přesné pozorování"}, 87 | "da": {"dm": "Mørk tilstand", "sd": "Vis fejlfinding", "cm": "Annuller revision", "ca": "Annuller animation", "ab": "Om", "si": "Forslag interval på 50 sekunder", "mi": "Ændre interval", "cu": "Tjek for opdateringer", "cc": "Klon samtalen", "pp": "Rensning af siden", "ls": "Vis stor skærm", "sc": "Fuldfør udtalelsen", "it": "Interceptor sporing", "ec": "Konstant forandring", "ap": "Værdssættelse", "wn": "Advarsel", "ds": "Datasikkerhed", "dd": "Opdage følsomme data", "rr": "Brug regex til at skrive regler", "ko": "Skarp observation"}, 88 | "de": {"dm": "Dunkler Modus", "sd": "Fehlerbehebung anzeigen", "cm": "Prüfung abbrechen", "ca": "Animation abbrechen", "ab": "Über", "si": "Vorschlag für Intervall von 50 Sekunden", "mi": "Intervall bearbeiten", "cu": "Überprüfung auf Updates", "cv": "Aktuelle Version", "dl": "Entdecken Sie die neueste Version", "lv": "ist die neueste Version", "cc": "Konversation klonen", "pp": "Seite bereinigen", "ls": "Großen Bildschirm anzeigen", "sc": "Sprich vollständig", "it": "Tracking abfangen", "ec": "Ständiger Wandel", "ap": "Wertschätzung", "wn": "Warnung", "ds": "Datensicherheit", "dd": "Entdeckung sensibler Daten", "rr": "Verwenden Sie Regex, um Regeln zu schreiben", "ko": "Scharfe Beobachtung"}, 89 | "el": {"dm": "Σκοτεινή θεματολογία", "sd": "Εμφάνιση αποσφαλμάτωσης", "cm": "Ακύρωση ελέγχου", "ca": "Ακύρωση κινούμενων σχεδίων", "ab": "Σχετικά με", "si": "Προτείνετε διάστημα 50 δευτερολέπτων", "mi": "Τροποποίηση διαστήματος", "cu": "Έλεγχος ενημερώσεων", "cc": "Κλωνοποίηση συνομιλίας", "pp": "Καθαρισμός σελίδας", "ls": "Εμφάνιση μεγάλης οθόνης", "sc": "Ολοκλήρωσε την ομιλία", "it": "Ανίχνευση παρακολούθησης", "ec": "Αδιάκοπη αλλαγή", "ap": "Εκτίμηση", "wn": "Προειδοποίηση", "ds": "Ασφάλεια δεδομένων", "dd": "Ανακάλυψη ευαίσθητων δεδομένων", "rr": "Χρησιμοποιήστε regex για να γράψετε κανόνες", "ko": "Εξαιρετική παρατήρηση"}, 90 | "en": {"dm": "Dark mode", "sd": "Show debugging", "cm": "Cancel audit", "ca": "Cancel animation", "ab": "About", "si": "Suggest interval of 50 seconds; The author usually sets 900", "mi": "Modify interval", "cu": "Check for updates", "cv": "Current version", "dl": "Discover the latest version", "lv": "is the latest version", "cc": "Conversation cloning", "pp": "Purified page", "ls": "Wide display mode", "sc": "Complete response", "it": "Intercept tracking", "ec": "More chat info", "ap": "Sponsor", "wn": "Warning", "ds": "Data security", "dd": "Discover sensitive data", "rr": "Use regex to write rules", "ko": "Keen observation"}, 91 | "eo": {"dm": "Malhela moduso", "sd": "Montri depuradon", "cm": "Nuligi kontroli", "ca": "Nuligi animacion", "ab": "Pri", "si": "Sugesti intervalon de 50 sekundoj", "mi": "Modifi intervalon", "cu": "Kontroli ĝisdatigojn", "cc": "Kloni konversacion", "pp": "Pura paĝo", "ls": "Montri grandan ekrane", "sc": "Parolu plene", "it": "Intercepti Trakadon", "ec": "Ĉiam ŝanĝiĝanta", "ap": "Aprobo", "wn": "Averto", "ds": "Datensekureco", "dd": "Malkovru sensitivajn datumojn", "rr": "Uzu regulajn esprimojn por skribi regulojn", "ko": "Akra observado"}, 92 | "es": {"dm": "Modo oscuro", "sd": "Mostrar depuración", "cm": "Cancelar auditoría", "ca": "Cancelar animación", "ab": "Acerca de", "si": "Sugerir un intervalo de 50 segundos", "mi": "Modificar intervalo", "cu": "Comprobar actualizaciones", "cv": "Versión actual", "dl": "Descubre la última versión", "lv": "es la última versión", "cc": "Clonar conversación", "pp": "Purificar página", "ls": "Mostrar pantalla grande", "sc": "Termina tu discurso", "it": "Interceptar Rastreo", "ec": "Cambio constante", "ap": "Apreciación", "wn": "Advertencia", "ds": "Seguridad de datos", "dd": "Descubrir datos sensibles", "rr": "Usa regex para escribir reglas", "ko": "Observación aguda"}, 93 | "fi": {"dm": "Tumma tila", "sd": "Näytä virheenkorjaus", "cm": "Peruuta tarkistus", "ca": "Peruuta animaatio", "ab": "Tietoa", "si": "Ehdota 50 sekunnin väliaikaa", "mi": "Muokkaa väliä", "cu": "Tarkista päivitykset", "cc": "Kloonaa keskustelu", "pp": "Puhdista sivu", "ls": "Näytä suuri näyttö", "sc": "Puhu loppuun asti", "it": "Sieppaa seuranta", "ec": "Jatkuvasti muuttuva", "ap": "Arvostus", "wn": "Varoitus", "ds": "Tietoturva", "dd": "Löytää arkaluonteista dataa", "rr": "Käytä regexiä sääntöjen kirjoittamiseen", "ko": "Tarkka havainnointi"}, 94 | "fr": {"dm": "Mode sombre", "sd": "Afficher le débogage", "cm": "Annuler l'audit", "ca": "Annuler l'animation", "ab": "À propos de", "si": "Suggérer un intervalle de 50 secondes", "mi": "Modifier l'intervalle", "cu": "Vérifier les mises à jour", "cv": "Version actuelle", "dl": "Découvrir la dernière version", "lv": "est la dernière version", "cc": "Cloner la conversation", "pp": "Purifier la page", "ls": "Afficher grand écran", "sc": "Parlez complètement", "it": "Interception de suivi", "ec": "En perpétuelle évolution", "ap": "Appréciation", "wn": "Avertissement", "ds": "Sécurité des données", "dd": "Découvrir des données sensibles", "rr": "Utilisez des regex pour écrire des règles", "ko": "Observation fine"}, 95 | "fr-CA": {"dm": "Mode nuit", "sd": "Afficher le débogage", "cm": "Annuler la vérification", "ca": "Annuler l'animation", "ab": "À propos de", "si": "Suggérer un intervalle de 50 secondes", "mi": "Modifier l'intervalle", "cu": "Vérifier les mises à jour", "cv": "Version actuelle", "dl": "Découvrir la dernière version", "lv": "est la dernière version", "cc": "Cloner la conversation", "pp": "Purifier la page", "ls": "Afficher grand écran", "sc": "Parlez complètement", "it": "Intercepter le suivi", "ec": "Évolution constante", "ap": "Appréciation", "wn": "Avertissement", "ds": "Sécurité des données", "dd": "Découvrir des données sensibles", "rr": "Utilisez des regex pour écrire des règles", "ko": "Observation fine"}, 96 | "he": {"dm": "מצב כהה", "sd": "הצגת התיקון", "cm": "ביטול ביקורת", "ca": "בטל אנימציה", "ab": "אודות", "si": "הצע מרווח של 50 שניות", "mi": "שינוי מרווח", "cu": "בדיקת עדכונים", "cc": "שכפול שיחה", "pp": "טיהור הדף", "ls": "תצוגת מסך גדול", "sc": "דבר במלואו", "it": "התערבות במעקב", "ec": "שינוי מתמיד", "ap": "הערכה", "wn": "אזהרה", "ds": "אבטחת מידע", "dd": "גילוי נתונים רגישים", "rr": "השתמש בביטויים רגולריים לכתיבת כללים", "ko": "תפיסה חדה"}, 97 | "hu": {"dm": "Sötét mód", "sd": "Hibakeresés mutatása", "cm": "Ellenőrzés megszüntetése", "ca": "Animáció törlése", "ab": "Rólunk", "si": "Javaslat 50 másodperces időközre", "mi": "Időköz módosítása", "cu": "Frissítések keresése", "cc": "Beszélgetés klónozása", "pp": "Oldal tisztítása", "ls": "Nagy képernyő megjelenítése", "sc": "Beszélj teljesen", "it": "Követés elfogása", "ec": "Folyamatos változás", "ap": "Elismerés", "wn": "Figyelmeztetés", "ds": "Adatbiztonság", "dd": "Érzékeny adatok felfedezése", "rr": "Használja a regex-et a szabályok írásához", "ko": "Éles megfigyelés"}, 98 | "id": {"dm": "Mode gelap", "sd": "Tampilkan debugging", "cm": "Batalkan audit", "ca": "Batalkan animasi", "ab": "Tentang", "si": "Sarankan interval 50 detik", "mi": "Modifikasi interval", "cu": "Periksa Pembaruan", "cc": "Klon percakapan", "pp": "Membersihkan halaman", "ls": "Tampilkan layar besar", "sc": "Berbicara secara lengkap", "it": "Intersepsi Pelacakan", "ec": "Perubahan terus-menerus", "ap": "Penghargaan", "wn": "Peringatan", "ds": "Keamanan data", "dd": "Temukan data sensitif", "rr": "Gunakan regex untuk menulis aturan", "ko": "Pengamatan tajam"}, 99 | "it": {"dm": "Modalità scura", "sd": "Mostra debug", "cm": "Annulla verifica", "ca": "Annulla animazione", "ab": "Riguardo a", "si": "Suggerisci un intervallo di 50 secondi", "mi": "Modifica intervallo", "cu": "Verifica aggiornamenti", "cv": "Versione attuale", "dl": "Scopri l'ultima versione", "lv": "è l'ultima versione", "cc": "Clona conversazione", "pp": "Purifica pagina", "ls": "Mostra grande schermo", "sc": "Parla completamente", "it": "Intercettare il tracciamento", "ec": "Cambiamento costante", "ap": "Apprezzamento", "wn": "Avvertimento", "ds": "Sicurezza dei dati", "dd": "Scoprire dati sensibili", "rr": "Usa regex per scrivere regole", "ko": "Osservazione acuta"}, 100 | "ja": {"dm": "ダークモード", "sd": "デバッグを表示", "cm": "監査をキャンセル", "ca": "アニメーションのキャンセル", "ab": "について", "si": "50秒間隔を提案する", "mi": "間隔を変更する", "cu": "更新をチェックする", "cv": "現在のバージョン", "dl": "最新バージョンを発見する", "lv": "最新バージョンです", "cc": "会話をクローンする", "pp": "ページを浄化する", "ls": "ビッグスクリーンを表示する", "sc": "完全に話してください", "it": "トラッキングの傍受", "ec": "絶え間ない変化", "ap": "評価", "wn": "警告", "ds": "データセキュリティ", "dd": "機密データを発見する", "rr": "正規表現を使用してルールを書く", "ko": "鋭い観察"}, 101 | "ka": {"dm": "ბნელი რეჟიმი", "sd": "გამოჩენა დებაგი", "cm": "ანულირება აუდიტი", "ca": "ანიმაციის გაუქმება", "ab": "შესახებ", "si": "50 წამის ინტერვალის შეტანა", "mi": "ინტერვალის შეცვლა", "cu": "განახლებების შემოწმება", "cc": "კონვერსაციის კლონირება", "pp": "გვერდის გაწმენდა", "ls": "დიდი ეკრანის გამოსახულება", "sc": "სრულად ილაპარაკეთ", "it": "თვალყური მისმართავა", "ec": "მუდმივი ცვლილება", "ap": "შეფასება", "wn": "გაფრთხილება", "ds": "მონაცემთა უსაფრთხოება", "dd": "საკითხავი მონაცემების გამოცნობა", "rr": "გამოიყენეთ regex წესების დაწერად", "ko": "მკრეფად გამოვიდა"}, 102 | "ko": {"dm": "다크 모드", "sd": "디버깅 표시", "cm": "감사 취소", "ca": "애니메이션 취소", "ab": "관하여", "si": "50초 간격 건의", "mi": "간격 수정", "cu": "업데이트 확인", "cv": "현재 버전", "dl": "최신 버전 찾기", "lv": "최신 버전입니다.", "cc": "대화 복제", "pp": "페이지 정화", "ls": "큰 화면 표시", "sc": "완전히 말하세요", "it": "추적 가로채기", "ec": "끊임없는 변화", "ap": "감사", "wn": "경고", "ds": "데이터 보안", "dd": "민감한 데이터 발견", "rr": "정규 표현식을 사용하여 규칙 작성", "ko": "예리한 관찰"}, 103 | "nb": {"dm": "Mørk modus", "sd": "Vis feilsøking", "cm": "Avbryt revisjonen", "ca": "Avbryt animasjon", "ab": "Om", "si": "Forslag om et intervall på 50 sekunder", "mi": "Endre intervall", "cu": "Sjekk etter oppdateringer", "cc": "Klon samtalen", "pp": "Rens side", "ls": "Vis stor skjerm", "sc": "Snakk fullstendig", "it": "Intercept sporing", "ec": "Kontinuerlig endring", "ap": "Verdsatt", "wn": "Advarsel", "ds": "Datasikkerhet", "dd": "Oppdage sensitiv data", "rr": "Bruk regex for å skrive regler", "ko": "Skarpt observasjon"}, 104 | "nl": {"dm": "Donkere modus", "sd": "Foutopsporing weergeven", "cm": "Controle annuleren", "ca": "Animatie annuleren", "ab": "Over", "si": "Stel een interval van 50 seconden voor", "mi": "Interval wijzigen", "cu": "Controleren op updates", "cc": "Gesprek klonen", "pp": "Pagina zuiveren", "ls": "Groot scherm weergeven", "sc": "Spreek volledig uit", "it": "Onderscheppen van tracking", "ec": "Voortdurende verandering", "ap": "Waardering", "wn": "Waarschuwing", "ds": "Gegevensbeveiliging", "dd": "Gevoelige gegevens ontdekken", "rr": "Gebruik regex om regels te schrijven", "ko": "Scherp observeren"}, 105 | "pl": {"dm": "Tryb ciemny", "sd": "Pokaż debugowanie", "cm": "Anuluj audyt", "ca": "Anuluj animację", "ab": "O", "si": "Zasugeruj interwał 50 sekund", "mi": "Zmień interwał", "cu": "Sprawdź aktualizacje", "cc": "Klonuj rozmowę", "pp": "Oczyść stronę", "ls": "Wyświetl duży ekran", "sc": "Mów całkowicie", "it": "Przechwytywanie śledzenia", "ec": "Ciągłe zmiany", "ap": "Docenienie", "wn": "Ostrzeżenie", "ds": "Bezpieczeństwo danych", "dd": "Wykrywanie wrażliwych danych", "rr": "Użyj regex do pisania reguł", "ko": "Wnikliwa obserwacja"}, 106 | "pt-BR": {"dm": "Modo escuro", "sd": "Mostrar depuração", "cm": "Cancelar auditoria", "ca": "Cancelar animação", "ab": "Sobre", "si": "Sugira um intervalo de 50 segundos", "mi": "Modificar intervalo", "cu": "Verificar atualizações", "cc": "Clonar conversa", "pp": "Purificar página", "ls": "Exibir tela grande", "sc": "Fale completamente", "it": "Interceptar Rastreamento", "ec": "Mudança constante", "ap": "Apreciação", "wn": "Aviso", "ds": "Segurança de dados", "dd": "Descobrir dados sensíveis", "rr": "Use regex para escrever regras", "ko": "Observação aguçada"}, 107 | "ro": {"dm": "Mod întunecat", "sd": "Afișare depanare", "cm": "Anulare audit", "ca": "Anulare animație", "ab": "Despre", "si": "Sugerați un interval de 50 secunde", "mi": "Modificați intervalul", "cu": "Verifică actualizări", "cc": "Clonează conversația", "pp": "Purificare pagină", "ls": "Afișare ecran mare", "sc": "Vorbiți complet", "it": "Interceptarea urmăririi", "ec": "Schimbare continuă", "ap": "Apreciere", "wn": "Avertizare", "ds": "Securitatea datelor", "dd": "Descoperirea datelor sensibile", "rr": "Folosiți regex pentru a scrie reguli", "ko": "Observație fină"}, 108 | "ru": {"dm": "Темный режим", "sd": "Показать отладку", "cm": "Отменить аудит", "ca": "Отменить анимацию", "ab": "О", "si": "Предложить интервал в 50 секунд", "mi": "Изменить интервал", "cu": "Проверить обновления", "cc": "Клонировать диалог", "pp": "Очистить страницу", "ls": "Показать большой экран", "sc": "Говорите полностью", "it": "Перехват отслеживания", "ec": "Постоянное изменение", "ap": "Признательность", "wn": "Предупреждение", "ds": "Безопасность данных", "dd": "Обнаружение конфиденциальных данных", "rr": "Используйте регулярные выражения для написания правил", "ko": "Точное наблюдение"}, 109 | "sk": {"dm": "Tmavý režim", "sd": "Zobraziť ladenie", "cm": "Zrušiť audit", "ca": "Zrušiť animáciu", "ab": "O", "si": "Navrhnúť interval 50 sekúnd", "mi": "Zmena intervalu", "cu": "Kontrola aktualizácií", "cc": "Klonovať konverzáciu", "pp": "Očistiť stránku", "ls": "Zobraziť veľkú obrazovku", "sc": "Hovorte úplne", "it": "Zachytenie sledovania", "ec": "Neustále sa meniace", "ap": "Ocenenie", "wn": "Varovanie", "ds": "Bezpečnosť údajov", "dd": "Objavenie citlivých dát", "rr": "Použite regex na písanie pravidiel", "ko": "Presné pozorovanie"}, 110 | "sr": {"dm": "Тамни режим", "sd": "Прикажи отклањање грешака", "cm": "Откажи ревизију", "ca": "Откажи анимацију", "ab": "О", "si": "Predložiti interval od 50 sekundi", "mi": "Измена интервала", "cu": "Provera ažuriranja", "cc": "Клонирај разговор", "pp": "Прочисти страницу", "ls": "Прикажи велики екран", "sc": "Говорите у потпуности", "it": "Пресретање праћења", "ec": "Непрестана промена", "ap": "Поштовање", "wn": "Упозорење", "ds": "Сигурност података", "dd": "Откривање осетљивих података", "rr": "Користите регуларне изразе за писање правила", "ko": "Прецизно набљудавање"}, 111 | "sv": {"dm": "Mörkt läge", "sd": "Visa felsökning", "cm": "Avbryt revision", "ca": "Avbryt animation", "ab": "Om", "si": "Föreslå intervall på 50 sekunder", "mi": "Ändra intervall", "cu": "Kontrollera uppdateringar", "cc": "Klonar samtal", "pp": "Rensa sidan", "ls": "Visa stor skärm", "sc": "Tala helt klart", "it": "Interceptera spårning", "ec": "Ständig förändring", "ap": "Uppskattning", "wn": "Varning", "ds": "Datasäkerhet", "dd": "Upptäcka känslig data", "rr": "Använd regex för att skriva regler", "ko": "Skarp observation"}, 112 | "th": {"dm": "โหมดมืด", "sd": "แสดงการแก้ไขข้อผิดพลาด", "cm": "ยกเลิกการตรวจสอบ", "ca": "ยกเลิกการเคลื่อนไหว", "ab": "เกี่ยวกับ", "si": "เสนอช่วงเวลา 50 วินาที", "mi": "แก้ไขระยะห่าง", "cu": "ตรวจสอบการอัปเดต", "cc": "โคลนสนทนา", "pp": "ทำความสะอาดหน้า", "ls": "แสดงหน้าจอใหญ่", "sc": "พูดคุยให้เสร็จสิ้น", "it": "การดักจับการติดตาม", "ec": "การเปลี่ยนแปลงตลอดเวลา", "ap": "การประเมินค่า", "wn": "คำเตือน", "ds": "ความปลอดภัยของข้อมูล", "dd": "ค้นพบข้อมูลที่ละเอียดอ่อน", "rr": "ใช้ regex เพื่อเขียนกฎ", "ko": "การสังเกตอย่างชัดเจน"}, 113 | "tr": {"dm": "Karanlık mod", "sd": "Hata ayıklama göster", "cm": "Denetimi İptal Et", "ca": "Animasyonu iptal et", "ab": "Hakkında", "si": "50 saniyelik aralık önerin", "mi": "Aralığı değiştir", "cu": "Güncelleştirmeleri kontrol et", "cc": "Sohbeti kopyala", "pp": "Sayfayı temizle", "ls": "Büyük ekranı görüntüle", "sc": "Tamamlayın konuşmayı", "it": "İzlemeyi Engellemek", "ec": "Sürekli değişim", "ap": "Takdir", "wn": "Uyarı", "ds": "Veri güvenliği", "dd": "Hassas verileri keşfetmek", "rr": "Kuralları yazmak için regex kullanın", "ko": "Keskin gözlem"}, 114 | "uk": {"dm": "Темний режим", "sd": "Показати налагодження", "cm": "Скасувати аудит", "ca": "Скасувати анімацію", "ab": "Про", "si": "Запропонуйте інтервал у 50 секунд", "mi": "Змінити інтервал", "cu": "Перевірити оновлення", "cc": "Клонувати діалог", "pp": "Очистити сторінку", "ls": "Відобразити великий екран", "sc": "Говоріть повністю", "it": "Перехоплення відстеження", "ec": "Постійна зміна", "ap": "Вдячність", "wn": "Попередження", "ds": "Безпека даних", "dd": "Виявлення конфіденційних даних", "rr": "Використовуйте регулярні вирази для написання правил", "ko": "Точне спостереження"}, 115 | "ug": {"dm": "تېما كۆرسىتىش", "sd": "كۆرسەتكەن يۇقىرىلاش", "cm": "ئەمەلدىن قالدۇرۇش", "ca": "ئېنىماتىكىنى بىكار قىلىش", "ab": "ئۇچۇرلىق", "si": "50 سىكونتلىك ئارىلىقنى سۇنۇشتۇرۇش", "mi": "ئارىلىق ئۆزگەرتىش", "cu": "يېڭىلانما كۆزەت", "cc": "كۆپچەي ئىككىلىش", "pp": "چۈشۈرۈش بەت", "ls": "كۆرسىتىش چوڭ ئېكران", "sc": "تاماملا سۆزلىشىڭىز", "it": "قولايلىنىش تىزىتكۈن", "ec": "تەڭشەك ئىستىقامەت", "ap": "قىلىش", "wn": "ئاگاھلاندۇرۇش", "ds": "مەلۇمات بىخەتەرلىكى", "dd": "سىزىقلىق مەلۇماتنى تاپشۇرۇش", "rr": "قائىدىلەرنى يېزىش ئۈچۈن regex نى ئىشلىتىڭ", "ko": "ئاڭلىتىش قىممىتى"}, 116 | "vi": {"dm": "Chế độ tối", "sd": "Hiển thị gỡ lỗi", "cm": "Hủy đánh giá", "ca": "Hủy hoạt hình", "ab": "Về", "si": "Đề xuất khoảng thời gian 50 giây", "mi": "Sửa khoảng cách", "cu": "Kiểm tra cập nhật", "cc": "Sao chép cuộc trò chuyện", "pp": "Làm sạch trang", "ls": "Hiển thị màn hình lớn", "sc": "Nói đầy đủ", "it": "Chặn Theo Dõi", "ec": "Luôn thay đổi", "ap": "Đánh giá", "wn": "Cảnh báo", "ds": "Bảo mật dữ liệu", "dd": "Phát hiện dữ liệu nhạy cảm", "rr": "Sử dụng regex để viết quy tắc", "ko": "Quan sát tinh tế"}, 117 | "zh-CN": {"dm": "暗色主题", "sd": "显示调试", "cm": "取消审计", "ca": "取消动画", "ab": "关于", "si": "建议间隔50秒以上,作者平时设置的是900秒", "mi": "调整间隔", "cu": "检查更新", "cc": "克隆对话", "pp": "净化页面", "ls": "展示大屏", "sc": "言无不尽", "it": "拦截跟踪", "ec": "日新月异", "ap": "赞赏鼓励", "wn": "警告", "ds": "数据安全", "dd": "你输入的内容里存在以下敏感数据,已为你自动化脱敏", "rr": "本功能会将聊天输入框里的敏感信息进行脱敏和警告
请根据正则表达式语法编写数据安全规则,不同的规则用换行间隔", "ko": "明察秋毫"}, 118 | "zh-TW": {"dm": "暗黑模式", "sd": "顯示調試", "cm": "取消稽核", "ca": "取消動畫", "ab": "關於", "si": "建議間隔50秒,作者平時設置的是900秒", "mi": "調整間隔", "cu": "檢查更新", "cc": "複製對話", "pp": "淨化頁面", "ls": "顯示大螢幕", "sc": "言無不盡", "it": "拦截追踪", "ec": "日新月異", "ap": "讚賞鼓勵", "wn": "警告", "ds": "資料安全", "dd": "發現敏感數據", "rr": "使用正則表達式撰寫規則", "ko": "明察秋毫"} 119 | } 120 | } 121 | ''' 122 | 123 | lang = json.loads(lang) 124 | 125 | new_str = "明察秋毫" 126 | 127 | new_str_min = "ko" 128 | 129 | transle_tmp = """ 130 | ar: الرصد الدقيق 131 | bg: Остро наблюдение 132 | cs: Přesné pozorování 133 | da: Skarp observation 134 | de: Scharfe Beobachtung 135 | el: Εξαιρετική παρατήρηση 136 | en: Keen observation 137 | eo: Akra observado 138 | es: Observación aguda 139 | fi: Tarkka havainnointi 140 | fr: Observation fine 141 | fr-CA: Observation fine 142 | he: תפיסה חדה 143 | hu: Éles megfigyelés 144 | id: Pengamatan tajam 145 | it: Osservazione acuta 146 | ja: 鋭い観察 147 | ka: მკრეფად გამოვიდა 148 | ko: 예리한 관찰 149 | nb: Skarpt observasjon 150 | nl: Scherp observeren 151 | pl: Wnikliwa obserwacja 152 | pt-BR: Observação aguçada 153 | ro: Observație fină 154 | ru: Точное наблюдение 155 | sk: Presné pozorovanie 156 | sr: Прецизно набљудавање 157 | sv: Skarp observation 158 | th: การสังเกตอย่างชัดเจน 159 | tr: Keskin gözlem 160 | uk: Точне спостереження 161 | ug: ئاڭلىتىش قىممىتى 162 | vi: Quan sát tinh tế 163 | zh-CN: 明察秋毫 164 | zh-TW: 明察秋毫 165 | """ 166 | 167 | # 删除字段 168 | # del_str = "展示全屏" 169 | # del_str_min = "fs" 170 | # lang = lang_del(lang, del_str, del_str_min) 171 | 172 | # 添加字段 173 | lang = lang_add(lang, new_str, new_str_min, transle_tmp) 174 | 175 | langStr = format_json(lang) 176 | print(langStr) 177 | save(langStr, 'test/lang.txt') 178 | 179 | main() 180 | --------------------------------------------------------------------------------