From cd89f9e81478d0bef18aa6551e5d28febc792706 Mon Sep 17 00:00:00 2001 From: chenqianhe <1278095698@qq.com> Date: Thu, 9 May 2024 12:03:22 +0800 Subject: [PATCH] Support chatgpt new domain --- manifest.json | 3 ++- scripts/content.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 29cb7a7..d544080 100644 --- a/manifest.json +++ b/manifest.json @@ -16,7 +16,8 @@ { "js": ["scripts/content.js"], "matches": [ - "https://chat.openai.com/*" + "https://chat.openai.com/*", + "https://chatgpt.com/*" ] } ], diff --git a/scripts/content.js b/scripts/content.js index c9b1648..8bc8276 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -11,7 +11,7 @@ var currentURL; new MutationObserver(() => { if (window.location.href !== currentURL) { currentURL = window.location.href; - if (currentURL.startsWith('https://chat.openai.com/')) { + if (currentURL.startsWith('https://chat.openai.com/') || currentURL.startsWith('https://chatgpt.com/')) { if (document.readyState === 'complete' || document.readyState !== 'loading') { injectCustomElement(); } else {