link-preview-sidebar icon indicating copy to clipboard operation
link-preview-sidebar copied to clipboard

Shortcut conflicts with download link

Open texastoland opened this issue 4 years ago • 2 comments

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

texastoland avatar Feb 17 '21 23:02 texastoland

same here +1

thanks

dkmin avatar Nov 14 '22 00:11 dkmin

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.

cocoaaa avatar Mar 25 '23 23:03 cocoaaa