Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 2, 2024 · 1 comment

Comments

@Ryder17z
Copy link

Ryder17z commented Jun 2, 2024

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?

  • "Automatic Update Loop" on Linux, keeping you locked out of your account at times
Enter , TAB keys not working in Firefox and sometimes not in various Chrome-ium browsersI want to use Discord in Firefox but there is a bug that makes the TAB key and the Enter key totally useless. Instead of sending a message it will only insert new lines no matter what you do. You have to go into the accessibility settings and enable a send button and click it every single time you want to send anything. You cannot even click on a suggested emoji to have it auto-completed.

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

@Aymkdn
Copy link

Aymkdn commented Nov 7, 2024

I'd also like something similar!

I think it could be done using the Open with Custom Mouse Event section of the options, however in the case of Web Outlook (opened in Chrome as an app), there is a Content Security Policy that prevents the use of this option:

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'nonce-KF81jkpTwIGYvuldNluWpQ==' *.res.office365.com *.fluidpreview.office.net *.cdn.office.net *.df.onecdn.static.microsoft .public.onecdn.static.microsoft wss://.delve.office.com:443 shellprod.msocdn.com amcdn.msauth.net amcdn.msftauth.net *.bing.com *.skype.com *.skypeassets.com *.delve.office.com *.cdn.office.net *.df.onecdn.static.microsoft *.public.onecdn.static.microsoft static.teams.microsoft.com teams.microsoft.com cdn.forms.office.net blob: 'report-sample' 'self' 'wasm-unsafe-eval' *.yammer.com". Either the 'unsafe-inline' keyword, a hash ('sha256-rZxJS5MFwh1YMl80XvsqrsFib3FHoUUubykW42fy7b0='), or a nonce ('nonce-...') is required to enable inline execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants