From ff7156e8072f00682100c38b6c6ec681b960856d Mon Sep 17 00:00:00 2001 From: ishan dutta Date: Fri, 10 May 2024 19:38:33 +0530 Subject: [PATCH] chatgpt_fixed --- src/content-script/ChatGPTQuery.tsx | 4 ++-- src/manifest.json | 5 ++++- src/manifest.v2.json | 6 +++++- src/popup/App.tsx | 6 +++--- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/content-script/ChatGPTQuery.tsx b/src/content-script/ChatGPTQuery.tsx index 0a5f63e..883183d 100644 --- a/src/content-script/ChatGPTQuery.tsx +++ b/src/content-script/ChatGPTQuery.tsx @@ -301,8 +301,8 @@ function ChatGPTQuery(props: Props) { return (

Please login and pass Cloudflare check at{' '} - - chat.openai.com + + chatgpt.com {retry > 0 && (() => { diff --git a/src/manifest.json b/src/manifest.json index 031a96b..80ddf24 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -10,7 +10,10 @@ "48": "logo.png", "128": "logo.png" }, - "host_permissions": ["https://*.openai.com/"], + "host_permissions": [ + "https://*.openai.com/", + "https://*.chatgpt.com/" + ], "permissions": [ "storage" ], "background": { "service_worker": "background.js" diff --git a/src/manifest.v2.json b/src/manifest.v2.json index 556604f..d0dc1e2 100644 --- a/src/manifest.v2.json +++ b/src/manifest.v2.json @@ -10,7 +10,11 @@ "48": "logo.png", "128": "logo.png" }, - "permissions": ["storage", "https://*.openai.com/"], + "permissions": [ + "storage", + "https://*.openai.com/", + "https://*.chatgpt.com/" + ], "background": { "scripts": ["background.js"] }, diff --git a/src/popup/App.tsx b/src/popup/App.tsx index de757b7..7c06d97 100644 --- a/src/popup/App.tsx +++ b/src/popup/App.tsx @@ -55,14 +55,14 @@ function App() { ) } if (accessTokenQuery.data) { - return