From 4b8222d0c2fb6cf4b8de0f96796d923be9d9b1da Mon Sep 17 00:00:00 2001 From: yoannchb-pro <71560747+yoannchb-pro@users.noreply.github.com> Date: Mon, 20 Mar 2023 22:51:21 -0400 Subject: [PATCH] v1.0.0 --- extension/moodle-gpt.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extension/moodle-gpt.js b/extension/moodle-gpt.js index 6c3fa59..71ff7ae 100644 --- a/extension/moodle-gpt.js +++ b/extension/moodle-gpt.js @@ -126,14 +126,14 @@ chrome.storage.sync.get(["moodleGPT"]).then(function (storage) { async function reply(hiddenButton, form, query) { if (config.cursor) hiddenButton.style.cursor = "wait"; - const question = normalizeText( - form.textContent.replace("Texte de la question", "") - ); + form.querySelector(".accesshide")?.remove(); + + const question = normalizeText(form.textContent); const inputList = form.querySelectorAll(query); const response = await getChatGPTResponse( - `Give a short response as possible for this question, reply in this langage "${config.langage}", only show the result: + `Give a short response as possible for this question, reply in this langage "${config.langage}" and only show the result: ${question} - (if you have to choose between multiple results only show the corrects one)` + (If you have to choose between multiple results only show the corrects one and do not change the initial text)` ); if (config.logs) {