Sometimes I need to copy many link addresses and I would like a hotkey for this. As far as I know there is no browser that supports that out of the box. Is it possible to customize this behavior?

I want to assign a shortcut or hotkey like CTRL+C" (e.g. CTRL+D) to the function "Copy link address". In Chrome I need to rightclick the link and then select the option.

Is this possible in Chrome or Firefox? I would prefer those two but if it not possible I would accept another browser as well.

I came up with the following temporary solution for Chrome (Thanks to surfasb)

AutoHotKey Script

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
Click right
Loop 5
    Send {Down}
Send {Enter}

I would still prefer a browser customization, but until someone posts one I will go with this.


You can use AutoHotkey to make this happen.

  • Thank you. I wrote a script (see above). If no better solution comes up I will accept yours. – ayckoster Sep 18 '11 at 15:22
  • Yeah, I know it isn't a perfect solution, but it's the fastest and the most benefit. I'm sure if you pay a Chrome dev ten bucks he'll write one real quick. My 2 cents. – surfasb Sep 18 '11 at 16:54
  • On that note, it won't be the first time I've bribed a freeware dev to include a feature I've want. . . – surfasb Sep 18 '11 at 16:57

A different Chrome-specific Autohotkey script than in the question:

SendMode Input

#IfWinActive, ahk_class Chrome_WidgetWin_1
Send, {AppsKey}
Send, e

Using e instead of the loop is a strict improvement, since it doesn’t rely on the Copy Link Location being specifically the 6th entry, and doesn’t require a loop. I have read that this can conflict with Firebug, but I do not have that installed (does Firebug even have any advantages over the built-in Chrome devtools these days?).

The other change is AppsKey, and that’s more of a use-case thing. By using AppsKey, the currently-active link (e.g. highlighted, or selected with Tab) is the one that has its link copied, regardless of where the mouse is. This is much closer to the behavior of the default Copy command, and allows truly keyboard-only link copying (e.g. going down a list with Tab and using Alt+C on each).

  • For me, AppsKey didn't open a menu which contains the right entry (copy link location or similar), however "e" was perfect for the basic mouse right-click menu as a shortcut key. Not sure how this works currently. Possibly nowadays Chrome has a built-in "Copy link address" in the menu with "e" as the shortcut. – Jim Hoyle Dec 16 '20 at 7:26

From your script, it looks like you're doing this:

  1. Float over link with mouse
  2. Hit your shortcut key (Ctrl+C)

You could instead;

  1. Right click the link
  2. Press "a" (firefox) ("Copy Link Location")
  • Ah, nm you deleted the script. – surfasb Sep 18 '11 at 17:01
  • I was referring to the script in the OP – RJFalconer Sep 18 '11 at 17:05

You can copy all links to clipboard with the Firefox linky plugin.

  • Thank you for the tip, but I do not want to copy all addresses. I usually browse very fast through different pages and want to select specific links. Still in some cases linky could be useful. – ayckoster Sep 18 '11 at 13:50

AutoHotkey is certainly your best bet for resolving this most elegantly. I too copy link addresses quite frequently, but have become accustomed to the following solution:

  1. Alt + D (brings cursor focus to address bar in IE, Firefox, even Windows Explorer - likely Chrome)
  2. Ctrl + C

Try Ctrl+E on chrome when you right-click on a link.

  • 2
    Welcome to Super User! Please read the question again carefully. Your answer does not answer the original question. – DavidPostill May 23 '16 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.