From 12ed454bb5e42a8741fea02724e218b53f616804 Mon Sep 17 00:00:00 2001 From: Ignacio Oneto Date: Sun, 5 May 2024 09:14:43 -0300 Subject: [PATCH 1/2] fix url --- README.md | 2 +- chrome-extension/content.js | 2 +- chrome-extension/manifest.json | 2 +- chrome-extension/popup.html | 2 +- legacy/talk-to-chatgpt.js | Bin 51664 -> 51646 bytes 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index aef7ca5..4e61153 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The extension can be downloaded from here: * From the **Edge Web store** here: https://microsoftedge.microsoft.com/addons/detail/talktochatgpt/bkkdkngklccknmoalpoakglipbibafpn * Manual installation option, detailed further below -After installing the extension, open or reload the ChatGPT page ( https://chat.openai.com/ ) and you should be seeing a 'Start' button on the top right corner of the page. After you click Start, you will be asked for permission to use your Microphone. This is required to enable voice recognition. +After installing the extension, open or reload the ChatGPT page ( https://chatgpt.com/ ) and you should be seeing a 'Start' button on the top right corner of the page. After you click Start, you will be asked for permission to use your Microphone. This is required to enable voice recognition. ![Talk-to-GPT Widget](/images/260-main.png?raw=true "Talk-to-ChatGPT Widget") diff --git a/chrome-extension/content.js b/chrome-extension/content.js index 3c7386e..167e39b 100644 --- a/chrome-extension/content.js +++ b/chrome-extension/content.js @@ -3,7 +3,7 @@ // Author : C. NEDELCU // Version : 2.9.0 (03/12/2023) // Git repo : https://github.com/C-Nedelcu/talk-to-chatgpt -// Chat GPT URL : https://chat.openai.com/chat +// Chat GPT URL : https://chatgpt.com // How to use : https://www.youtube.com/watch?v=VXkLQMEs3lA // Credits : C. NEDELCU (code), pixelsoda (GUI), S. James (GUI) diff --git a/chrome-extension/manifest.json b/chrome-extension/manifest.json index 1e9edc1..859d9a1 100644 --- a/chrome-extension/manifest.json +++ b/chrome-extension/manifest.json @@ -14,7 +14,7 @@ "content_scripts":[ { "matches":[ - "https://chat.openai.com/*" + "https://chatgpt.com/*" ], "js": ["jquery.min.js", "fontawesome.min.js", "content.js"] } diff --git a/chrome-extension/popup.html b/chrome-extension/popup.html index c149700..b4397b5 100644 --- a/chrome-extension/popup.html +++ b/chrome-extension/popup.html @@ -8,7 +8,7 @@

ChatGPT home page. + you need to open the ChatGPT home page. Once you are logged in, a box will display at the top right corner of your screen with a 'START' button. Click START to start talking. diff --git a/legacy/talk-to-chatgpt.js b/legacy/talk-to-chatgpt.js index d4311b8c6a619a99db0c3c4d811d8da0d7d475dd..c07b040f51c3c1eff90acc48334f264e591fdbdf 100644 GIT binary patch delta 28 kcmcaGnR(x2<_(FAyy*-D3?&SD49N`n47r;d7z0iK0EY4i-T(jq delta 46 ycmdltnfbzG<_(FA@_G#U3 Date: Sun, 5 May 2024 09:48:58 -0300 Subject: [PATCH 2/2] change getting textarea --- chrome-extension/content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome-extension/content.js b/chrome-extension/content.js index 167e39b..ee909df 100644 --- a/chrome-extension/content.js +++ b/chrome-extension/content.js @@ -1101,10 +1101,9 @@ const buttonActions = { CN_CURRENT_MESSAGE = null; } -// Declare descriptor caches and textarea element outside of any function to cache them. +// Declare descriptor caches. let textareaDescriptorCache = null; let prototypeDescriptorCache = null; -const textarea = jQuery("#prompt-textarea")[0]; // Moved setNativeValue out of CN_SetTextareaValue to avoid re-defining it. function setNativeValue(element, value) { @@ -1128,6 +1127,7 @@ function setNativeValue(element, value) { // The main function that sets the textarea value and triggers an input event function CN_SetTextareaValue(text) { + const textarea = jQuery("#prompt-textarea")[0]; setNativeValue(textarea, text); textarea.dispatchEvent(new Event('input', { bubbles: true })); }