Skip to content

Commit 6fcb5c9

Browse files
committed
improve #688 (#687, #677, #678, #681, #682)
1 parent b494193 commit 6fcb5c9

File tree

9 files changed

+20
-16
lines changed

9 files changed

+20
-16
lines changed

src/_locales/de/main.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
"Please login at https://chatgpt.com first": "Bitte zuerst bei https://chatgpt.com anmelden",
4747
"Please login at https://claude.ai first": "Bitte zuerst bei https://claude.ai anmelden",
4848
"Please login at https://bing.com first": "Bitte zuerst bei https://bing.com anmelden",
49-
"Then open https://chatgpt.com/api/auth/session": "Dann öffne https://chatgpt.com/api/auth/sitzung",
49+
"Then open https://chatgpt.com/api/auth/session": "Dann öffne https://chatgpt.com/api/auth/session",
5050
"And refresh this page or type you question again": "Klicken Sie anschließend auf die Schaltfläche Wiederholen in der oberen rechten Ecke",
5151
"Consider creating an api key at https://platform.openai.com/account/api-keys": "Erwägen Sie ein API-Schlüssel unter https://platform.openai.com/account/api-keys zu erstellen",
5252
"OpenAI Security Check Required": "OpenAI-Sicherheitscheck erforderlich",
53-
"Please open https://chatgpt.com/api/auth/session": "Bitte öffne https://chatgpt.com/api/auth/sitzung",
53+
"Please open https://chatgpt.com/api/auth/session": "Bitte öffne https://chatgpt.com/api/auth/session",
5454
"Please open https://chatgpt.com": "Bitte öffne https://chatgpt.com",
5555
"New Chat": "Neuer Chat",
5656
"Summarize Page": "Seite zusammenfassen",

src/_locales/ja/main.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
"Please login at https://chatgpt.com first": "最初に https://chatgpt.com にログインしてください",
4747
"Please login at https://claude.ai first": "最初に https://claude.ai にログインしてください",
4848
"Please login at https://bing.com first": "最初に https://bing.com にログインしてください",
49-
"Then open https://chatgpt.com/api/auth/session": "次にhttps://chatgpt.com/api/auth/sessionにアクセス",
49+
"Then open https://chatgpt.com/api/auth/session": "次に https://chatgpt.com/api/auth/session にアクセス",
5050
"And refresh this page or type you question again": "次に、右上の「再試行」ボタンをクリックします",
51-
"Consider creating an api key at https://platform.openai.com/account/api-keys": "https://platform.openai.com/account/api-keysでAPIキーを作成してください",
51+
"Consider creating an api key at https://platform.openai.com/account/api-keys": "https://platform.openai.com/account/api-keys でAPIキーを作成してください",
5252
"OpenAI Security Check Required": "OpenAIのセキュリティチェックが必要です",
53-
"Please open https://chatgpt.com/api/auth/session": "https://chatgpt.com/api/auth/sessionにアクセスしてください",
54-
"Please open https://chatgpt.com": "https://chatgpt.comにアクセスしてください",
53+
"Please open https://chatgpt.com/api/auth/session": "https://chatgpt.com/api/auth/session にアクセスしてください",
54+
"Please open https://chatgpt.com": "https://chatgpt.com にアクセスしてください",
5555
"New Chat": "新しいチャット",
5656
"Summarize Page": "ページをまとめる",
5757
"Translate": "翻訳",
@@ -131,7 +131,7 @@
131131
"Please keep https://chatgpt.com open and try again. If it still doesn't work, type some characters in the input box of chatgpt web page and try again.": "https://chatgpt.com を開いたままにして、もう一度試してください。それでもうまくいかない場合は、chatgpt webページの入力ボックスにいくつかの文字を入力してからもう一度試してください。",
132132
"Open Side Panel": "サイドパネルを開く",
133133
"Generating...": "生成中...",
134-
"moonshot token required, please login at https://kimi.moonshot.cn first": "moonshotトークンが必要です。最初にhttps://kimi.moonshot.cnにログインしてください",
134+
"moonshot token required, please login at https://kimi.moonshot.cn first": "moonshotトークンが必要です。最初に https://kimi.moonshot.cn にログインしてください",
135135
"Hide context menu of this extension": "この拡張機能のコンテキストメニューを非表示",
136136
"Custom Claude API Url": "カスタムClaude APIのURL"
137137
}

src/_locales/ko/main.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
"Please login at https://chatgpt.com first": "https://chatgpt.com 에서 로그인하세요.",
4747
"Please login at https://claude.ai first": "https://claude.ai 에서 로그인하세요.",
4848
"Please login at https://bing.com first": "https://bing.com 에서 로그인하세요.",
49-
"Then open https://chatgpt.com/api/auth/session": "그런 다음 https://chatgpt.com/api/auth/session을 열거나 다시 질문을 입력하세요.",
49+
"Then open https://chatgpt.com/api/auth/session": "그런 다음 https://chatgpt.com/api/auth/session 을 열거나 다시 질문을 입력하세요.",
5050
"And refresh this page or type you question again": "그런 다음 오른쪽 상단의 재시도 버튼을 클릭합니다.",
51-
"Consider creating an api key at https://platform.openai.com/account/api-keys": "https://platform.openai.com/account/api-keys에서 API 키를 생성하는 것을 고려하세요.",
51+
"Consider creating an api key at https://platform.openai.com/account/api-keys": "https://platform.openai.com/account/api-keys 에서 API 키를 생성하는 것을 고려하세요.",
5252
"OpenAI Security Check Required": "OpenAI 보안 검사 필요",
53-
"Please open https://chatgpt.com/api/auth/session": "https://chatgpt.com/api/auth/session을 열어주세요.",
54-
"Please open https://chatgpt.com": "https://chatgpt.com을 열어주세요.",
53+
"Please open https://chatgpt.com/api/auth/session": "https://chatgpt.com/api/auth/session 을 열어주세요.",
54+
"Please open https://chatgpt.com": "https://chatgpt.com 을 열어주세요.",
5555
"New Chat": "새로운 대화",
5656
"Summarize Page": "페이지 요약",
5757
"Translate": "번역",

src/background/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ try {
287287
}
288288
},
289289
{
290-
urls: ['https://*.openai.com/*'],
290+
urls: ['https://*.openai.com/*', 'https://*.chatgpt.com/*'],
291291
types: ['xmlhttprequest'],
292292
},
293293
['requestBody'],

src/config/index.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ export async function getPreferredLanguageKey() {
389389
*/
390390
export async function getUserConfig() {
391391
const options = await Browser.storage.local.get(Object.keys(defaultConfig))
392+
if (options.customChatGptWebApiUrl === 'https://chat.openai.com')
393+
options.customChatGptWebApiUrl = 'https://chatgpt.com'
392394
return defaults(options, defaultConfig)
393395
}
394396

src/manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"128": "logo.png"
1111
},
1212
"host_permissions": [
13+
"https://*.chatgpt.com/*",
1314
"https://*.openai.com/*",
1415
"https://*.bing.com/*",
1516
"https://*.poe.com/*",

src/manifest.v2.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"unlimitedStorage",
1717
"tabs",
1818
"webRequest",
19+
"https://*.chatgpt.com/*",
1920
"https://*.openai.com/",
2021
"https://*.bing.com/",
2122
"wss://*.bing.com/*",

src/rules.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@
5151
{
5252
"operation": "set",
5353
"header": "origin",
54-
"value": "https://tcr9i.chatgpt.com"
54+
"value": "https://tcr9i.chat.openai.com"
5555
},
5656
{
5757
"operation": "set",
5858
"header": "referer",
59-
"value": "https://tcr9i.chatgpt.com/v2/2.4.5/enforcement.6c9d6e9be9aa044cc5ce9548b4abe1b0.html"
59+
"value": "https://tcr9i.chat.openai.com/v2/2.4.5/enforcement.6c9d6e9be9aa044cc5ce9548b4abe1b0.html"
6060
}
6161
]
6262
},
6363
"condition": {
64-
"requestDomains": ["tcr9i.chatgpt.com"],
64+
"requestDomains": ["https://tcr9i.chat.openai.com"],
6565
"resourceTypes": ["xmlhttprequest"]
6666
}
6767
}

src/services/apis/chatgpt-web.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export async function generateAnswersWithChatgptWebApi(port, question, session,
236236
.join('; ')
237237
oaiDeviceId = (
238238
await Browser.cookies.get({
239-
url: 'https://openai.com/',
239+
url: 'https://chatgpt.com/',
240240
name: 'oai-did',
241241
})
242242
).value

0 commit comments

Comments
 (0)