Yet more code released

From: S Page <XXXXXXXXXXXXXXXXXXX>
To: sean@conman.org
Subject: your "program that will select the URL (Uniform Resource Locator) and HTML (HyperText Markup Language) 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 [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 [2] 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 [3], a program I wrote that can be used to query and get the various forms of the current X11 selection buffer.

[1] /boston/2008/12/03.1

[2] /boston/2008/12/03/blockquote.tar.gz

[3] /boston/2011/11/29/xselect.c

Gemini Mention this post

Contact the author