3 ms·
I made a basic one for Kagi’s summarizer service. javascript:(function()%7Bwindow.location.href%20%3D%20%60https%3A%2F%2Fkagi.com%2Fsummarizer%2Findex.html%3Ft
by al_borland 2y ago
I made a basic one for Kagi’s summarizer service.
javascript:(function()%7Bwindow.location.href%20%3D%20%60https%3A%2F%2Fkagi.com%2Fsummarizer%2Findex.html%3Ftarget_language%3D%26summary%3Dtakeaway%26url%3D%24%7BencodeURIComponent(window.location.href)%7D%60%7D)()
I have it in my todos to make some for their other offerings, like the new translations service they just released.
This one is very niche, but I was getting 100% in Tears of the Kingdom and the map didn’t tell me how many Koroks (or whatever else) I had left. So I threw this one together to tell me. It just counts the elements of a certain type and displays an alert with the number.
javascript:(function()%7Bfunction%20countTitles(title)%20%7Bconst%20elementsWithTitle%20%3D%20document.querySelectorAll(%60%5Btitle%3D%22%24%7Btitle%7D%22%5D%60)%3Bconst%20count%20%3D%20elementsWithTitle.length%3Breturn%20count%3B%7Dalert(countTitles(%22Korok%20Seed%22)%20%2B%20(countTitles(%22Korok%20Seed%20x2%22)*2))%7D)()
- gabrielsroka 2y agojavascript:location='https://kagi.com/summarizer/index.html?target_language=&summary=takeaway&url='+encodeURIComponent(location) javascript:alert([['Korok Seed'], ['Korok Seed x2', 2]].reduce((a, [t, m=1]) => a + document.querySelectorAll(`[title="${t}"]`).length * m, 0))
- xigoi 2y agoIf Kagi is your default seacch engine, you can simply write !summ before the address to summarize it.