plugin-requests icon indicating copy to clipboard operation
plugin-requests copied to clipboard

Direct redirect for custom embed links (i.e. fxtwitter, vxtwitter, phixiv) to their native apps.

Open risbi0 opened this issue 1 year ago • 2 comments

Discord Account

No response

Plugin Description

Right now, when clicking on links that is modified to customize/fix the embed, it first goes to the in-built browser before loading the native app. I suggest that it directly goes to the native app if it's possible.

Go into more detail...

No response

Request Agreement

  • [X] I have made sure my plugin is possible and abides by the rules!

  • [X] I did indeed check to make sure my plugin request is original!

risbi0 avatar Apr 14 '24 02:04 risbi0

Apps that support deep linking already handle url intents You might have to turn on the links in the system settings for that app

rushiiMachine avatar Apr 14 '24 02:04 rushiiMachine

More technical explanation, in case someone's confused (like myself): replace domains when opening links that redirect you to a different website.

I see two ways to implement this:

  • Have a list of domains to replace. Requires knowing all these different domains (like fxtwitter) beforehand.
  • Make a request first and see if it gets redirected, then try to open the final location. Might be tricky to implement, but makes sense in the long run. The initial request might slow down opening links though (probably insignificant). This also doesn't handle JS redirects, but I hope no such website utilizes those lol, that'd be horrible.

jedenastka avatar Apr 14 '24 12:04 jedenastka