andy-portmen / open-in

Send URLs from one browser to another one
http://add0n.com/open-in.html
172 stars 113 forks source link

how to only automatically open links in the other browser if the current tab is domain.com and the link leads to a different domain? #98

Open Ryder17z opened 3 months ago

Ryder17z commented 3 months ago

I'd like to have a custom script that is essentially like this:

pseudo-code:

if( current_tab.url == "discord.com" ) {
  if( string.find(link.target_url,"discord.com" == 0 ) // Link leads to external website, open in external browser
    openin( default, link.target_url );
  else openin( self, linktarget_url ); // Link is to another part of discord.
}

Why?

Discord refuses to fix the above issues and thus, I'm forced to run it within some variant of chrome-ium.