From e99b0300337e56b8cac283ed293d7af3fb28f239 Mon Sep 17 00:00:00 2001 From: Mic Date: Wed, 30 Apr 2025 22:23:50 +0200 Subject: [PATCH] Update chatgpt_getRegenerateButton to detect read aloud icon instead of thumb up icon --- js/mzta-chatgpt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index 3ec86530..27be3ad0 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -89,8 +89,8 @@ function chatgpt_getRegenerateButton() { } } for (const mainSVG of document.querySelectorAll('main svg.icon-md-heavy')) { - if (mainSVG.querySelector('path[d^="M12.1318 2.50389C12.3321"]')){ // thumb up icon found - //console.log(">>>>>>>>>> found thumb up icon!"); + if (mainSVG.querySelector('path[d^="M11 4.9099C11 4.47485"]')){ // read aloud icon found + //console.log(">>>>>>>>>> found read aloud icon!"); return mainSVG.parentNode.parentNode; } }