From c3e2d11c963b5222cfd71d5adf29f5d4534cb5e2 Mon Sep 17 00:00:00 2001 From: pionxzh Date: Sun, 10 May 2026 21:54:56 +0800 Subject: [PATCH] fix: drop oaifree.com support and update description --- package.json | 6 +++--- src/constants.ts | 3 --- vite.config.ts | 11 +---------- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index c663764..03e7d93 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,9 @@ "title": "ChatGPT Exporter", "title:zh-CN": "ChatGPT Exporter", "title:zh-TW": "ChatGPT Exporter", - "description": "Easily export the whole ChatGPT conversation history for further analysis or sharing.", - "description:zh-CN": "轻松导出 ChatGPT 聊天记录,以便进一步分析或分享。", - "description:zh-TW": "輕鬆匯出 ChatGPT 聊天紀錄,以便進一步分析或分享。", + "description": "Export ChatGPT conversations with one click — backup & share effortlessly!", + "description:zh-CN": "一键导出 ChatGPT 对话,轻松备份与分享", + "description:zh-TW": "一鍵導出 ChatGPT 對話,輕鬆備份與分享", "author": "pionxzh", "license": "MIT", "engines": { diff --git a/src/constants.ts b/src/constants.ts index 1367197..3b2b3eb 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,16 +1,13 @@ const API_MAPPING: Record = { 'https://chat.openai.com': 'https://chat.openai.com/backend-api', 'https://chatgpt.com': 'https://chatgpt.com/backend-api', - 'https://new.oaifree.com': 'https://new.oaifree.com/backend-api', } -// export const baseUrl = 'https://chat.openai.com' export const baseUrl = new URL(location.href).origin export const apiUrl = API_MAPPING[baseUrl] export const KEY_LANGUAGE = 'exporter:language' export const KEY_FILENAME_FORMAT = 'exporter:filename_format' -// export const KEY_OFFICIAL_JSON_FORMAT = 'exporter:official_json_format' export const KEY_TIMESTAMP_ENABLED = 'exporter:enable_timestamp' export const KEY_TIMESTAMP_24H = 'exporter:timestamp_24h' export const KEY_TIMESTAMP_MARKDOWN = 'exporter:timestamp_markdown' diff --git a/vite.config.ts b/vite.config.ts index aa3b078..d13ff9d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -54,17 +54,8 @@ export default defineConfig({ 'https://chatgpt.com/gpts/*', 'https://chatgpt.com/share/*', 'https://chatgpt.com/share/*/continue', - - 'https://new.oaifree.com/', - 'https://new.oaifree.com/?model=*', - 'https://new.oaifree.com/c/*', - 'https://new.oaifree.com/g/*', - 'https://new.oaifree.com/gpts', - 'https://new.oaifree.com/gpts/*', - 'https://new.oaifree.com/share/*', - 'https://new.oaifree.com/share/*/continue', ], - 'icon': 'https://chat.openai.com/favicon.ico', + 'icon': 'https://chatgpt.com/favicon.ico', 'run-at': 'document-end', }, build: {