whisper.cat/weboasis/js/suggestions.min.js

1 line
385 B
JavaScript
Raw Normal View History

2023-10-05 23:28:32 +11:00
const corsUrl="https://cors.weboasis.workers.dev/corsproxy/?apiurl=",selectedUrl="https://duckduckgo.com/ac/?q=",searchTerm=searchInput.placeholder;let AutoComp=[];async function fetchAutoComp(a){AutoComp=[];let b=await fetch(corsUrl+selectedUrl+a);data=await b.json(),await data.map(a=>{AutoComp.push(a.phrase)}),selectedIndex=-1,buildHelp()}function handleSearchReset2(){buildHelp()}