Item logo image for ChatGPT Conversation Pruner

ChatGPT Conversation Pruner

ExtensionTools6 users
Item media 1 (screenshot) for ChatGPT Conversation Pruner

Overview

# ChatGPT Conversation Pruner 🧹 This Chrome Extension (Manifest V3) addresses the issue where the conversation list retrieved…

# ChatGPT Conversation Pruner 🧹 This Chrome Extension (Manifest V3) addresses the issue where the conversation list retrieved upon opening a session with a high number of exchanges on ChatGPT Web (`chatgpt.com`) (`/backend-api/conversation/{conversation-id}`) becomes enormous and slows down loading. It does this by **compressing the retrieved response (JSON) to lighten the initial page load**. ## Caution This extension only proxies `window.fetch` to reduce response sizes. However, its underlying mechanism allows it to read content from chatgpt.com (though it does not perform such processing). It does not collect any information or perform any unnecessary processing. Nevertheless, many users may feel uneasy. For those concerned, the source code is publicly available below. Please download it (after verifying the source code is safe) and run the extension in developer mode. https://github.com/blono/ChatGPTConversationPruner Please be aware that some developers release extensions with seemingly useful features initially, then later update them to secretly read screen information and send it elsewhere once user adoption grows. --- ## What It Does ✅ - Hooks only the **GET** request for `https://chatgpt.com/backend-api/conversation/{conversation-id}` - Compresses the returned JSON, retaining only the **last N exchanges + the first 1 exchange** - Passes requests **completely through** if `method != GET` - The `keep-tail-count` setting is fetched from `chrome.storage.sync` (default value = 50 if unset) --- ## Why is this needed? (Background) 🧠 When opening a ChatGPT session, it first fetches the **entire conversation history** in bulk via the following API: - `https://chatgpt.com/backend-api/conversation/{conversation-id}` Long conversations can result in massive JSON files, slowing down page initialization and input. ### Why DOM removal didn't solve it I tried the approach of "lightening the load by removing DOM elements for past prompts/responses" (e.g., thinning out `article[data-testid^=“conversation-turn-”]`), but: - **The core process of fetching the massive JSON and parsing parent-child relationships during initial load** still occurs - **Minor freezes upon actions like pressing the send button** still persist While somewhat effective, simply trimming the DOM did not provide a fundamental solution. Therefore, this extension reduces the amount of data the browser processes by **minimizing the fetch response (JSON) itself, not the DOM**. After installation, the extension is located at: Windows: %LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensions\hbmapaedobplefdhpdogkdacaodpalnj Mac: ~/Library/Application Support/Google/Chrome/Default/Extensions\hbmapaedobplefdhpdogkdacaodpalnj If you wish to verify whether there are any differences from the source code on GitHub or if any suspicious processing is occurring, please check the files at the above paths. --- ChatGPT Web(`chatgpt.com`)で **やり取りの回数が多いセッションを開いた瞬間の会話一覧取得**(`/backend-api/conversation/{conversation-id}`)が巨大になって重くなる問題に対して、**取得レスポンス(JSON)を縮めてページ初期表示を軽くする**ための Chrome Extension(Manifest V3)です。 ## 注意 window.fetch を Proxy してレスポンスを小さくする処理しかしていませんが、仕組み上 chatgpt.com の内容を読み取れるようになっています(そのような処理はしていませんが)。 一切情報収集など余計な処理はしていませんが、多くの方は不安だと思うので、そういう方は以下よりソースコードを公開しているので、ダウンロードし(ソースコードに問題がないことを確認したうえで)開発者モードで拡張機能を動作させてください。 https://github.com/blono/ChatGPTConversationPruner 最初は役立ちそうな機能として拡張機能を公開し、利用者が増えた段階で画面上の情報を勝手に読み取ってどこかに送信するようなアップデートをする人も世の中に居るので、お気を付けください。 --- ## できること ✅ - `https://chatgpt.com/backend-api/conversation/{conversation-id}` の **GET** だけをフック - 返ってきた JSON を **最後の N 往復分 + 最初の 1 往復** を残す形で縮小 - `method != GET` の場合は **完全に素通し** - 設定値 `keep-tail-count` は `chrome.storage.sync` から取得(未設定ならデフォルト値 = 50) --- ## これは何のため?(背景)🧠 ChatGPT のセッションを開くと、まず以下の API で **会話全履歴**を一括取得します。 - `https://chatgpt.com/backend-api/conversation/{conversation-id}` 会話が長いとこの JSON が巨大になり、ページの初期表示や入力が重くなることがあります。 ### DOM 削除方式では解決できなかった理由 「過去のプロンプト / 回答の DOM 要素を remove して軽くする」方式(例: `article[data-testid^="conversation-turn-"]` を間引く)を試しましたが、 - **初期ロード時に巨大な JSON を取得・親子関係などをパースする処理自体**は発生してしまう - **送信ボタン押下時などにプチフリーズ**する問題は依然残る という問題があり、ある程度の効果はあったものの DOM を削るだけでは根本解決ができませんでした。 そのためこの拡張では、**DOM ではなく fetch レスポンス(JSON)そのものを縮める**ことで、ブラウザが処理するデータ量を減らします。 インストール後の拡張機能は Windows: %LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensions\hbmapaedobplefdhpdogkdacaodpalnj Mac: ~/Library/Application\ Support/Google/Chrome/Default/Extensions\hbmapaedobplefdhpdogkdacaodpalnj に存在します。 GitHub 上のソースコードと差分がないかや、怪しい処理をしていないかなどを確認したい場合上記パスからご確認ください。

Details

  • Version
    0.1.1
  • Updated
    February 4, 2026
  • Offered by
    ぽっぽ
  • Size
    27.66KiB
  • Languages
    English
  • Developer
    Email
    google.dev.crook436@simplelogin.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

Manage extensions and learn how they're being used in your organization
The developer has disclosed that it will not collect or use your data.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes

Support

For help with questions, suggestions, or problems, visit the developer's support site

Google apps