nancylebov: (green leaves)
[personal profile] nancylebov
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.

Date: 2012-03-05 01:29 pm (UTC)
schemingreader: (Default)
From: [personal profile] schemingreader
Some websites I've cut and pasted from seem to have that already.

Date: 2012-03-05 04:21 pm (UTC)
siderea: (Default)
From: [personal profile] siderea
That's totally doable. What browser do you use?

Date: 2012-03-06 03:36 am (UTC)
From: [personal profile] houseboatonstyx
There's a feature in some versions of Opera called "Copy to Note", though I've never been able to find it or use it. Some other browsers seem to be trying something like it.

https://www.google.com/search?rlz=1C1CHMC_enUS396US397&aq=f&sourceid=chrome&ie=UTF-8&q=%22copy+to+note%22

Date: 2012-03-05 01:54 pm (UTC)
From: [identity profile] henrytroup.livejournal.com
I think that's the intent of the IE "blog" accelerator.

Date: 2012-03-05 05:20 pm (UTC)
From: [identity profile] thesaucernews.livejournal.com
I'll see if I can make a greasemonkey script that will do that.

Date: 2012-03-05 05:38 pm (UTC)
From: [identity profile] nancylebov.livejournal.com
Thanks, but someone at the dreamwidth comments may have a solution, so please wait a bit.

Date: 2012-03-05 08:02 pm (UTC)
From: [identity profile] thesaucernews.livejournal.com
here it is anyway: http://pastebin.com/4hd7JR7x

I wanted to get it to work with a particular keypress but i couldn't, and i have to run today. But, basically, select text and then press a key and it prompts with the text and a url to copy from.

If there are problems I can fix them tonight.

All this said, though, the bookmarklet darius wrote is probably a more flexible solution.

This is what it does:

A copy feature which would pick up both the highlighted material on a page and the page's url. (via: http://nancylebov.livejournal.com//533562.html)

Date: 2012-03-05 05:39 pm (UTC)
From: [identity profile] darius.livejournal.com
Here's a quick try -- highlight some text and click this (). Should work the same as a bookmark.

Hopefully it can be done better -- I've never written a bookmarklet before.

Date: 2012-03-05 05:43 pm (UTC)
From: [identity profile] darius.livejournal.com
Livejournal did something to the markup, so I copied it here: http://wry.me/hacking/copywithattribution.html

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

Date: 2012-03-05 07:05 pm (UTC)
From: [identity profile] darius.livejournal.com
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.

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

Date: 2012-03-05 07:35 pm (UTC)
From: [identity profile] darius.livejournal.com
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.

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

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

Date: 2012-03-06 01:45 am (UTC)
From: [identity profile] nancylebov.livejournal.com
[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 Date: 2012-03-06 01:49 am (UTC)

Date: 2012-03-06 03:48 am (UTC)
From: [identity profile] darius.livejournal.com
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.

Date: 2012-03-06 05:18 am (UTC)
ext_12246: (smiley)
From: [identity profile] thnidu.livejournal.com
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 Date: 2012-03-06 05:24 am (UTC)

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

Date: 2012-03-05 07:37 pm (UTC)
From: [identity profile] darius.livejournal.com
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.

May 2025

S M T W T F S
    123
45678910
11 121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 15th, 2025 04:40 am
Powered by Dreamwidth Studios