Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.
#c::
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.

share|improve this question
add comment

4 Answers 4

up vote 2 down vote accepted

You can use AutoHotkey to make this happen.

share|improve this answer
    
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
add comment

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")
share|improve this answer
    
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
add comment

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

share|improve this answer
    
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
add comment

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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