It is a little hard to explain but here’s what I’m trying to accomplish.

I use a tool called Kagi Summarizer a lot. To use it I can go to the website and paste in the url I want to summarize.

Or I can append the page that I want to summarize like so: https://kagi.com/summarizer/index.html?target_language=&summary=summary&url=https%3A%2F%2Fwww.nytimes.com%2F2023%2F12%2F14%2Fscience%2Fneanderthal-sleep-morning-people.html

This works super well as a bookmarklet but sometimes on android I want to share a url from another app and have it auto open in the kagi summarizer.

I tried to make a PWA to do this but FF for android doesn’t have the share_target functionality to share to it. So the PWA works fine but only if it is installed in chrome, which I don’t want.

I’m looking for an app where I can share text/url to it and it will automatically append that text to a url and open it in the browser.

Anyone know of something like this?

  • RBG@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    13
    ·
    10 months ago

    Can you not just add this as another “search engine” in Firefox for Android? I assume you mean Firefox with FF. I use Mull and there I can define alternative search engines, like so:

    Then all you need to do is copy your text, go to browser, set the search bar to use this new “search engine” and paste your text like you’d do for a normal search.

    • ray@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      10 months ago

      That’s probably the easiest thing I’ve seen so far. Still a bit of a pain when sharing from other apps but I might give it a try.

      • RBG@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 months ago

        If you set it as default search engine, it works easily with sharing with the firefox app. But then you have to switch search engines for every time you search something else in that app.

        Another workaround could be to install another firefox fork to only use it for this search. You can set up your intended search there and then only use that app for sharing search terms to it.

        You can do that with Fennec, Mull and whatever else is out there.

    • kowcop@aussie.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      10 months ago

      I stumbled across this the other day…

      As a shortcut to configuring it, you can go to the site (like Kagi) and if they have a text field to paste into (or a search field) you can generally right click on the field and select ‘add keyword for this search’… so say you add ‘kagi’ as a search term (in the cmdlet) in the browser address bar you would just type kagi <paste url> and hit enter

  • ali@lemmy.ca
    link
    fedilink
    English
    arrow-up
    7
    ·
    10 months ago

    Have a look at Automate (like Tasker but with free features). It has a Content Shared module as input. Then you can process and output its text. Might be worth a try for what you’re trying to do.

    • ray@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 months ago

      I took a quick look and this looks promising but I’m not sure how to use the pattern checker module.

      Could you please explain a little more what would be replaced?

      • stepanzak@iusearchlinux.fyi
        link
        fedilink
        English
        arrow-up
        3
        ·
        10 months ago

        Take a look at this wiki page and this file in this repo. There’s this item in the file:

          "Summarize This": {
            "regex1": "^(https?):\/\/(\\S*)$",
            "regex": "^(?!.*(smmry.))(.*)",
            "replacement": "https:\/\/smmry.com\/$2#&SM_LENGTH=10",
            "enabled": "true"
          }
        

        Looks like exactly what you want.

        The app, URLCheck, is absolutely awesome btw. I have it set as my default browser and now every time I open an url, I can choose which app should open it. And if it’s a web browser, I can choose whether I want to open it in the browser tab or in the custom tab in the app. And it can do much more. But you don’t have to set it as a default browser, you can just share to it.

  • Pantherina@feddit.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    10 months ago

    If you are on stock Android you are already giving all the data to Google. If you open a page in Chrome or not doesnt really matter.

    But maybe try another Chromium browser? Cromite is currently the best for all Android versions, Vanadium only for GrapheneOS

    You could also create a custom search engine in Firefox, select it and paste the url as search string