Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
There is a similar thing already written, minus the automatic part. You set it as your default browser and lets you do all sorts of things to the link before opening it in a browser. It lets you choose which app to use the link in afterwards. You can unshort urls, it checks for malware or redirects… You get the picture. Not sure if this helps with what you are after:
There is a similar thing already written, minus the automatic part. You set it as your default browser and lets you do all sorts of things to the link before opening it in a browser. It lets you choose which app to use the link in afterwards. You can unshort urls, it checks for malware or redirects… You get the picture. Not sure if this helps with what you are after:
https://f-droid.org/packages/com.trianguloy.urlchecker/