diff --git a/en/searchurl/bingAI/js/bing.js b/en/searchurl/bingAI/js/bing.js index fc4791c..52b81f8 100644 --- a/en/searchurl/bingAI/js/bing.js +++ b/en/searchurl/bingAI/js/bing.js @@ -295,14 +295,5 @@ restartNewChat.onclick = async () => { restart_button.onclick(); } -async function searchSuggestionsAddOnclick(){ - let adds = document.querySelectorAll("#SearchSuggestions>a"); - for(let add in adds){ - adds[add].onclick = (event)=>{ - if(searchSuggestions.style.opacity>=1){ - send(event.target.innerHTML); - } - } - } -} + diff --git a/en/searchurl/bingAI/js/parserReturn.js b/en/searchurl/bingAI/js/parserReturn.js index 05b4af4..3dc18db 100644 --- a/en/searchurl/bingAI/js/parserReturn.js +++ b/en/searchurl/bingAI/js/parserReturn.js @@ -412,7 +412,7 @@ function porserSuggestedResponses(suggestedResponses) { for (let i = 0; i < suggestedResponses.length; i++) { let a = document.createElement('a'); a.innerHTML = suggestedResponses[i].text; + a.onclick = (event)=>{send(event.target.innerHTML);} searchSuggestions.appendChild(a); } - searchSuggestionsAddOnclick(); -} \ No newline at end of file +}