fix: drop oaifree.com support and update description

This commit is contained in:
pionxzh
2026-05-10 21:54:56 +08:00
parent cf1ad3b408
commit c3e2d11c96
3 changed files with 4 additions and 16 deletions

View File

@@ -7,9 +7,9 @@
"title": "ChatGPT Exporter", "title": "ChatGPT Exporter",
"title:zh-CN": "ChatGPT Exporter", "title:zh-CN": "ChatGPT Exporter",
"title:zh-TW": "ChatGPT Exporter", "title:zh-TW": "ChatGPT Exporter",
"description": "Easily export the whole ChatGPT conversation history for further analysis or sharing.", "description": "Export ChatGPT conversations with one click — backup & share effortlessly!",
"description:zh-CN": "轻松导出 ChatGPT 聊天记录,以便进一步分析或分享", "description:zh-CN": "一键导出 ChatGPT 对话,轻松备份与分享",
"description:zh-TW": "輕鬆匯出 ChatGPT 聊天紀錄,以便進一步分析或分享", "description:zh-TW": "一鍵導出 ChatGPT 對話,輕鬆備份與分享",
"author": "pionxzh", "author": "pionxzh",
"license": "MIT", "license": "MIT",
"engines": { "engines": {

View File

@@ -1,16 +1,13 @@
const API_MAPPING: Record<string, string> = { const API_MAPPING: Record<string, string> = {
'https://chat.openai.com': 'https://chat.openai.com/backend-api', 'https://chat.openai.com': 'https://chat.openai.com/backend-api',
'https://chatgpt.com': 'https://chatgpt.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 baseUrl = new URL(location.href).origin
export const apiUrl = API_MAPPING[baseUrl] export const apiUrl = API_MAPPING[baseUrl]
export const KEY_LANGUAGE = 'exporter:language' export const KEY_LANGUAGE = 'exporter:language'
export const KEY_FILENAME_FORMAT = 'exporter:filename_format' 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_ENABLED = 'exporter:enable_timestamp'
export const KEY_TIMESTAMP_24H = 'exporter:timestamp_24h' export const KEY_TIMESTAMP_24H = 'exporter:timestamp_24h'
export const KEY_TIMESTAMP_MARKDOWN = 'exporter:timestamp_markdown' export const KEY_TIMESTAMP_MARKDOWN = 'exporter:timestamp_markdown'

View File

@@ -54,17 +54,8 @@ export default defineConfig({
'https://chatgpt.com/gpts/*', 'https://chatgpt.com/gpts/*',
'https://chatgpt.com/share/*', 'https://chatgpt.com/share/*',
'https://chatgpt.com/share/*/continue', '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', 'run-at': 'document-end',
}, },
build: { build: {