Excerpt bookmarklets: Cite a source with one click!

Date view Thread view Subject view Author view

From: Dan Connolly (connolly@w3.org)
Date: Sat Aug 26 2000 - 22:38:14 PDT


[[[
Excerpt

Dan is always asking for this and doing it by hand. I have never seen an
editor which
will do it automatically.

    Copy to the clipboard a BLOCKQUOTE with inside it a copy of the
selected
    text, linked back to the original document from which it came. [...]

(Connolly, Aug 2000): Try these bookmarklets, i.e. javascript hacks:

    HTML excerpt
    email excerpt
]]]

-- Tim Berners-Lee - Editing User Interface
http://www.w3.org/DesignIssues/Editor#Excerpt
Sun, 27 Aug 2000 02:46:55 GMT

They seem to work in NS4 but not IE. It's a cheap hack.

Once you put it in your toolbar, you just select text
on any page in the web and click the bookmarklet, and
it generates a mail message such as this one,
containing an excerpt ala the one above.
(The other one generates some HTML in
a window.)

I do this by hand so much... I expect to save
about an hour a day. This is so tedious to do
by hand, but it's so fun to have the computer
finally do it for me that I think I'll do
another one just for fun:

[[[
Developed for the Foresight Institute to enable
                       critical discussions and enhance productivity for
                       those using the web, CritSuite takes vital steps
                       toward a truly connected and interactive Web
                       structure.

                       CritSuite consists of three pieces of integrated
                       software which allow individuals to comment on
                       and view existing hypertext documents (CritLink),
to
                       navigate the Web using a graphical interface
                       (CritMap), and to archive email exchanges using
                       the features of hypertext (CritMail).
]]]

-- CritSuite: public annotation on the whole Web since 1997
http://crit.org/http://crit.org/index.html
Thu, 01 Jan 1970 00:00:00 GMT

hmmm... bug: if there's no HTTP Last-Modified header,
this thingy reports the beginning of the epoch.

TODO: enhance the email thingy to intelligently
fill in the To field of the email, by finding a link to
a mailto address with rel="made" or rel="reply-to".

Patent pending. ;-) Hm... seriously, I better
publish the code to establish prior art just in case.
I hereby release the code to the public domain:

javascript:void(window.open("").document.write("<blockquote>"+document.getSelection()+"<address><a
href=&apos;"+location.href+"&apos;>"+document.title+"</a><br />"+new
Date(document.lastModified).toUTCString()+"</address></blockquote>"))

javascript:location.href='mailto:?SUBJECT='+escape(document.title)+'&BODY='+escape('[[[\n'+document.getSelection()+'\n]]]\n\n--
'+document.title+'\n'+location.href+'\n'+new
Date(document.lastModified).toUTCString())

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Aug 26 2000 - 22:42:22 PDT