Tuesday, November 29, 2011
Yet more code released
- From
- S Page <XXXXXXXXXXXXXXXXXXX>
- To
- sean@conman.org
- Subject
- your "program that will select the URL and HTML from the Firefox primary text selection" ?
- Date
- Tue, 29 Nov 2011 15:43:56 -0800
Hey there, I'm trying to find a command-line program that will output the HTML of Firefox's current selection. Klipper, xsel, xclip, etc. all just deal with the plain text. None of them admit to doing the content negotiation.
In http://boston.conman.org/2008/12/03.1 you investigated and hacked away and came up with a program. Awesome … so where is it, can you share it?
In my case I just want to grab the actual HTML of a humongous dynamic Facebook page, so big that Firefox's Select All then View Selection Source exhausts memory.
Your hack of composing the various clipboard formats into a mini citation is really cool, I wish something like Klipper had such templating ability.
Cheers,
–
=S Page
Wow! Somebody's interested in something I wrote! Very cool!
And yes, I did make the source code available, although there's no documentation, it uses a library I no longer maintain, and it might be a bit temperamental to use, but it is available.
And I nearly forgot—the program xselect.c
, a program I wrote that can be used to
query and get the various forms of the current X11 selection buffer.