I use tiny java scripts in my bookmarks to access artificial intelligence online services that summarize papers, find information about any selected text, or just search online.
To do so, you only need to create a bookmark and paste the following code in the URL field:
Summarize the current webpage using labs.kagi.com (not online anymore ☹):
javascript:Qr=window.location.href;if(Qr){void(window.open('https://labs.kagi.com/ai/sum?url='+escape(Qr)+'&expand=1'))}
Use you.com to find information about the selected text:
javascript:Qr=document.getSelection();if(Qr){void(window.open('https://you.com/search?q='+escape(Qr)+'&fromSearchBar=true&tbm=youchat'))}
Same, but using perplexity.ai:
javascript:Qr=document.getSelection();if(Qr){void(window.open('https://playgroundai.com/search?q='+escape(Qr)))}
Translate selected text with DeepL (change en
and es
to your favorite languages):
javascript:Qr=document.getSelection();if(Qr){void(window.open('https://www.deepl.com/translator#en/es/'+escape(Qr)))}
Search the selected text in DuckDuckGo:
javascript:Qr=document.getSelection();if(Qr){void(window.open('https://duckduckgo.com/?q='+escape(Qr)))}
I typically use short names to fit as many bookmarks as possible in my bookmarks toolbar. Then, when you are in a webpage that you want to summarize, or you select the text of your interest, you just need to hit that bookmark and let Firefox do the rest 🙂
