I’m using GrapheneOS, the default Vanadium browser works great but it doesnt block ads. I want to install a 2nd browser just for youtube and my specific Google account for youtube. I also tried Newpipe and similar apps, but they cant use my Google’s playlist and comments. I need them, that is why I think to use a 2nd browser.

Is there a way to set Youtube links (youtube.com, m.youtube.com…etc) to be opened in a non default browser, say Brave or Firefox?

  • Solumbran@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    4 days ago

    There’s things like URLCheck that allow you to check and decide on how URLs are handled, but it might be overkill

    • mazzilius_marsti@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      3 days ago

      i thought its overkill too, but i tried it out and it works surprisingly well. I use the Automation script like this, alao using Via because for some reasons Firefox/Brave keep playing audio even when you minimize. Everything from Unshort to Toast are the defaults, I only added the last 2:

      “Unshort bit.ly”: { “regex”: “https?:\/\/bit\.ly\/.", “action”: “unshort”, “enabled”: false }, “Send everything to webhook”: { “regex”: ".”, “action”: “webhook”, “enabled”: false }, “Toast example”: { “regex”: “TrianguloY”, “action”: “toast”, “args”: { “text”: “👋🙂” } }, “YouTube to Secondary Browser”: { “regex”: ".*(youtube\.comyoutu\.be).*", “action”: “open”, “args”: { “package”: “mark.via.gp, “enabled”: true, “stop”: true }, “Everything else to Vanadium”: { “regex”: “.*”, “action”: “open”, “args”: { “package”: “app.vanadium.browser” }, “enabled”: true, “stop”: true } }

      It works. If I tap a Youtube link, Via / Brave / Firefox opens. Otherwise, it is Vanadium.

  • python@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    4 days ago

    No need for outside tools, go to Settings>Apps>Default Apps>Opening Links and set which apps open which links. No idea if it’s an Android or a Graphene feature, since I’m on Graphene as well. I’ve set up Revanced to handle all my Youtube links, works flawlessly.

    • mazzilius_marsti@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 days ago

      that unfortunately only works if you have another app (not browser) that can play Youtube video like Revanced or NewPipe. If you have 2 browsers and no Youtube apps installed, there will be no options to select the youtube.com links.

      • masterofn001@lemmy.ca
        link
        fedilink
        English
        arrow-up
        5
        ·
        edit-2
        3 days ago

        I am on graphene.

        Give me a minute.

        Go to settings > apps > default apps > opening links

        Select vanadium > select in browser
        Should now say don’t allow to open links.

        Set your preferred browser to open in app.

        Test.

        • mazzilius_marsti@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          4
          ·
          3 days ago

          thanks but i swear i must be missing something here:

          1. Settings / Apps / Defaults Apps / Opening Links

          2. Vanadium => Open in browser. It now says Dont allow to open links

          3. Firefox => Open in App. It now says Allow to open links

          I assume Vanadium is still aet as Default browser in Settings/Appa/Default App / Browser app. Then, I only do the steps you show above.

          Test: tap on anylink => vanadium opens.

  • M1k3y@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    You can open a link in a specific Browser using share. When you long press a link and select share > Firefox, you will open it in Firefox. Probably works with all browsers.

  • Onomatopoeia@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    4 days ago

    Have you tried Grayjay? It’s supposed to support using your account.

    Alternatively there are a couple browsers specifically for making a website behave like an app: Hermit and Native Alpha.