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

Shortcut conflicts with download link #18

Open
texastoland opened this issue Feb 17, 2021 · 2 comments
Open

Shortcut conflicts with download link #18

texastoland opened this issue Feb 17, 2021 · 2 comments

Comments

@texastoland
Copy link

Option-clicking an unsupported link (#17) accidentally downloads it. Shift might be better or making it customizable.

@dkmin
Copy link

dkmin commented Nov 14, 2022

same here +1

thanks

@cocoaaa
Copy link

cocoaaa commented Mar 25, 2023

A temporary solution would be to clone this repo to your local machine, change the shortcut set in the content.tsx file (link) to alt+shift+click by changing the code to if (event.altKey && event.shiftKey && event.target instanceof HTMLAnchorElement && event.target.href).
For other available event keycodes, see doc here.

Then, you'd need to load your codebase to chrome by going to the extension page (e.g. chrome://extensions or brave://extensions) and follow these steps:

  • Enable developer mode (on the top right)
  • Click "Load Unpacked" (on the top left) that shows up once you enable the developer mode
  • Select the root folder of your codebase.
  • Once your codebase is loaded, you can disable the original Link Preview extension and start using the one you just modified.

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

3 participants