Input Junkie - A feature I'd like
[Recent Entries][Archive][Friends][User Info]
07:58 am
[Link] |
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. comments so far on that entry.
|
|
| | I think that's the intent of the IE "blog" accelerator. I'll see if I can make a greasemonkey script that will do that.
Thanks, but someone at the dreamwidth comments may have a solution, so please wait a bit. here it is anyway: http://pastebin.com/4hd7JR7xI 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) ![[User Picture]](http://l-userpic.livejournal.com/10838332/4632) | | 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]](http://l-userpic.livejournal.com/10838332/4632) | | From: | darius |
| Date: | March 5th, 2012 05:43 pm (UTC) |
|---|
| | | (Link) |
|
It seems to just pick up its own url. ![[User Picture]](http://l-userpic.livejournal.com/10838332/4632) | | 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. Still not working. What do you mean by "invoke the bookmark"? ![[User Picture]](http://l-userpic.livejournal.com/10838332/4632) | | 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]](http://l-userpic.livejournal.com/46492260/4128378) | | From: | dcseain |
| Date: | March 6th, 2012 01:25 am (UTC) |
|---|
| | | (Link) |
|
Way cool! Thank you! ![[User Picture]](http://l-userpic.livejournal.com/10838332/4632) | | From: | darius |
| Date: | March 6th, 2012 03:48 am (UTC) |
|---|
| | | (Link) |
|
You're welcome! 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]](http://l-userpic.livejournal.com/10838332/4632) | | 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]](http://l-userpic.livejournal.com/97969616/5405934) | | 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) dcseain found that it doesn't work on flash pages. ![[User Picture]](http://l-userpic.livejournal.com/10838332/4632) | | 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. |
|