Comment 2 for bug 1314890

Revision history for this message
Aaron Wells (u-aaronw) wrote : Re: wishlist: button to reliably copy secret URLs

Huh, I thought for sure I'd already filed a wishlist about this one myself, but I can't find one, so maybe I forgot.

I have definitely researched this one before. My favorite choice was zeroclipboard (http://zeroclipboard.org/), which I seem to recall is what github uses. There's even a handy jQuery library for it to make it easier: http://www.steamdev.com/zclip/

I also looked into what gerrit uses, but that wasn't as satisfactory because it was an older library that was no longer being updated. I think it also didn't support translations as well either.

Interestingly, YouTube doesn't have a "copy" button like github and gerrit. Instead in YouTube, when you bring up the "share" dialog, the URL or embed iframe code are within a text field where the text is already selected and you just have to hit Control-C to copy it. So that's another way we could go.