nancylebov: (green leaves)
nancylebov ([personal profile] nancylebov) wrote2012-03-05 07:58 am

A feature I'd like

A copy feature which would pick up both the highlighted material on a page and the page's url.

Having that picked up in one pass would make quoting with attribution handier.

[identity profile] nancylebov.livejournal.com 2012-03-05 06:38 pm (UTC)(link)
It seems to just pick up its own url.

[identity profile] darius.livejournal.com 2012-03-05 07:05 pm (UTC)(link)
That's because that's the page you had open, unless I'm confused. I saved the 'click this' link as a bookmark, then came back to this page and selected something, then invoked the bookmark. This produced "http://nancylebov.livejournal.com/533562.html#comments" plus the selected text.

[identity profile] nancylebov.livejournal.com 2012-03-05 07:21 pm (UTC)(link)
Still not working. What do you mean by "invoke the bookmark"?

[identity profile] darius.livejournal.com 2012-03-05 07:35 pm (UTC)(link)
Here's what I did in Firefox:

There's a toolbar at the top of the window for bookmarks, which can be enabled via the View menu (View -> Toolbars -> Bookmarks toolbar). At http://wry.me/hacking/copywithattribution.html drag "click this" into that toolbar.

Back on this page, "click this" should still be in the bookmarks toolbar. Select some text on this page, then click that "click this". When I do this, a dialog box pops up with this page's URL plus the highlighted text.

If I messed up and you want to let me know your browser version (typically via Help -> About), I'll try to figure it out.

[identity profile] dcseain.livejournal.com 2012-03-06 01:25 am (UTC)(link)
Way cool! Thank you!

[identity profile] darius.livejournal.com 2012-03-06 03:48 am (UTC)(link)
You're welcome!

[identity profile] nancylebov.livejournal.com 2012-03-06 01:45 am (UTC)(link)
[personal profile] dcseain talked me through it. It turned out that I wasn't registering that I needed to move "click this" rather than the url.

My only excuse is that I had no idea that anything other than a url *could* be moved onto a toolbar.

Thanks for writing it.
Edited 2012-03-06 01:49 (UTC)

[identity profile] darius.livejournal.com 2012-03-06 03:48 am (UTC)(link)
You're welcome. Sorry for the trouble -- I'm used to writing only for other programmers.

I'll see if I can polish it a bit, probably tomorrow.
ext_12246: (smiley)

[identity profile] thnidu.livejournal.com 2012-03-06 05:18 am (UTC)(link)
This would be great, but I'm ... Huh? :-) First it didn't work, then it did:
http://nancylebov.livejournal.com/533562.html?style=mine&nc=11#comments If I messed up and you want to let me know your browser version (typically via Help -> About), I'll try to figure it out.
This is gonna be cool. Thanks!

eta: Ah. It doesn't work in gmail, but those aren't real webpages, in some way or other. That's where I happened to try it first.
Edited 2012-03-06 05:24 (UTC)

[identity profile] nancylebov.livejournal.com 2012-03-06 11:43 am (UTC)(link)
[livejournal.com profile] dcseain found that it doesn't work on flash pages.

[identity profile] darius.livejournal.com 2012-03-05 07:37 pm (UTC)(link)
The other way to invoke the bookmark is by finding it in the Bookmarks menu and clicking it there. Don't have to bother with the toolbar then.