?

Log in

No account? Create an account
A feature I'd like - Input Junkie
March 5th, 2012
07:58 am

[Link]

Previous Entry Share Next Entry
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.

This entry was posted at http://nancylebov.dreamwidth.org/529856.html. Comments are welcome here or there. comment count unavailable comments so far on that entry.

(17 comments | Leave a comment)

Comments
 
From:henrytroup
Date:March 5th, 2012 01:54 pm (UTC)
(Link)
I think that's the intent of the IE "blog" accelerator.
(Deleted comment)
[User Picture]
From:nancylebov
Date:March 5th, 2012 05:38 pm (UTC)
(Link)
Thanks, but someone at the dreamwidth comments may have a solution, so please wait a bit.
(Deleted comment)
[User Picture]
From:darius
Date:March 5th, 2012 05:39 pm (UTC)
(Link)
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.
[User Picture]
From:darius
Date:March 5th, 2012 05:43 pm (UTC)
(Link)
Livejournal did something to the markup, so I copied it here: http://wry.me/hacking/copywithattribution.html
[User Picture]
From:nancylebov
Date:March 5th, 2012 06:38 pm (UTC)
(Link)
It seems to just pick up its own url.
[User Picture]
From:darius
Date:March 5th, 2012 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.
[User Picture]
From:nancylebov
Date:March 5th, 2012 07:21 pm (UTC)
(Link)
Still not working. What do you mean by "invoke the bookmark"?
[User Picture]
From:darius
Date:March 5th, 2012 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.
[User Picture]
From:dcseain
Date:March 6th, 2012 01:25 am (UTC)
(Link)
Way cool! Thank you!
[User Picture]
From:darius
Date:March 6th, 2012 03:48 am (UTC)
(Link)
You're welcome!
[User Picture]
From:nancylebov
Date:March 6th, 2012 01:45 am (UTC)
(Link)
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 at 2012-03-06 01:49 am (UTC)
[User Picture]
From:darius
Date:March 6th, 2012 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.
[User Picture]
From:thnidu
Date:March 6th, 2012 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 at 2012-03-06 05:24 am (UTC)
[User Picture]
From:nancylebov
Date:March 6th, 2012 11:43 am (UTC)
(Link)
dcseain found that it doesn't work on flash pages.
[User Picture]
From:darius
Date:March 5th, 2012 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.
nancybuttons.com Powered by LiveJournal.com