Skip to content

Commit

Permalink
Support chatgpt new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
chenqianhe committed May 9, 2024
1 parent 153bf4a commit cd89f9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
{
"js": ["scripts/content.js"],
"matches": [
"https://chat.openai.com/*"
"https://chat.openai.com/*",
"https://chatgpt.com/*"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion scripts/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cd89f9e

Please sign in to comment.