forked from iusondemand/artificial-intelligence-links
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookmarklet.htm
More file actions
1 lines (1 loc) · 783 Bytes
/
bookmarklet.htm
File metadata and controls
1 lines (1 loc) · 783 Bytes
1
<a href='javascript:(function(){!function(){var e=prompt("Enter search term:");if(e){var t=document.createElement("div");t.style.position="fixed",t.style.top="10px",t.style.right="10px",t.style.padding="10px",t.style.backgroundColor="white",t.style.border="1px solid black",t.style.zIndex="10000",t.style.maxHeight="80vh",t.style.overflowY="auto",document.body.appendChild(t),fetch("https://gloxa.ai/link/search.php?q="+encodeURIComponent(e)).then((e=>e.json())).then((e=>{e.error?t.innerHTML="<p>"+e.error+"</p>":e.forEach((e=>{var n=document.createElement("a");n.href=e.url,n.target="_blank",n.textContent=e.name,n.style.display="block",n.style.marginBottom="5px",t.appendChild(n)}))})).catch((e=>{t.innerHTML="<p>Error fetching links: "+e.message+"</p>"}))}}();}());'>Ai Link</a>