leon icon indicating copy to clipboard operation
leon copied to clipboard

Can this be registered as a browser?

Open slootsky opened this issue 3 years ago • 2 comments

Is it possible to make the URL cleaner the target for default browser in Android?

It would be nice to have an this as my default browser (I'm not expecting actual browser behavior) so that it can strip all the tracking junk and then I can copy the URL to the browser myself.

slootsky avatar Jul 29 '22 03:07 slootsky

Well, I could add an intent-filter to the manifest which handles all HTTP intents. But this would show Leon as a "browser" for every user, which might not be desired. It seems intent filters can be somewhat programmatically enabled / disabled by using an activity-alias, which I never used before. So a bit of investigation is required on my side.

svenjacobs avatar Jul 29 '22 09:07 svenjacobs

Another reason this'd be useful is when 1 elects not to have a default browser, so 1 could directly open a URL w/ this & then use Verify to redirect wherever.

TPS avatar Aug 04 '22 11:08 TPS

This will be available in the next release.

svenjacobs avatar Sep 17 '22 22:09 svenjacobs

This is disabled by default. You'll find a switch to enable this in the app settings. However after enabling it, on newer Android versions you might have to set Leon as the default browser in the OS settings as well.

svenjacobs avatar Sep 17 '22 23:09 svenjacobs

However after enabling it, on newer Android versions you might have to set Leon as the default browser in the OS settings as well.

If there is no default browser, it'll open up a list of browsers, which should include Léon. I'll confirm whenever I get to test the F-droid build.

TPS avatar Sep 18 '22 00:09 TPS

Should hopefully be available on F-Droid in a few days.

svenjacobs avatar Sep 18 '22 10:09 svenjacobs

oh! AWESOME! THANK YOU

slootsky avatar Sep 18 '22 19:09 slootsky