While right-click BlogThis is still a bit of a sore spot for me, a question in the BlogThis Howto forum (for which the questioner owes me $10) made me realize that there is one advantage to hosting the script locally: you can have as many different custom BlogThis context menus as you like. I use BlogThis in two ways: sometimes I just want to link to the site, and so all I want is the default link with the page title as text, but when I want to blog some text from the page, I want

<a href="">example</a> :

<blockquote><i>The text that I am quoting from the page</i></blockquote>

but I’m far too lazy to stick the blockquotes in every time. However, if you aren’t afraid of registry editing (which you should be), it’s not hard to create your own custom BlogThis:

  • Backup your registry, or it’s your own damn fault when you break your computer.
  • Make a copy of your local blogthis.pyra file and name it blogquote.pyra
  • Open blogquote.pyra in a text editor, and change the line that starts “sel=… to:
    sel = "<blockquote><i>" + escape(doc.selection.createRange().text) + "</i></blockquote>";
  • Start regedit, and search for blogthis
  • Select MenuExt (the “folder” that contains the BlogThis key) and create a new key named BlogQuote!
  • Double click BlogQuote!’s (Default) value, and change the value data to the location of blogquote.pyra (e.g. c:\blogthis\blogquote.pyra)
  • Add a new Binary value to BlogQuote!, name it contexts, then double click it to change the value data to 31
  • Close any open IE windows, and then restart IE, select some text, and try out your BlogQuote!

Now if only the popup would leave out the link if you didn’t pass it a url, so we could have the long begged for BlogNothing!


Comment by Tim #
2002-01-30 13:32:09

Nice one Phil. I’ve finally got round to hosting the script locally and this looks like an interesting hack to try out. Hope you got your $10!

Comment by Mark Crane #
2002-02-02 09:02:08

I am the loser who offered Phil $10 for this. I even offered to pay him, but told him it would be a cash transaction because Paypal goes on the credit card, and I am trying to imagine justifying this to my wife when the bill comes:

wife: ”Uh, who is Phil Ringnalda, and why did you send him $10?”

me: ”Well, there’s this thing called blogger, and what’s called a right-click contextual menu that’s written in this language called Javascript which isn’t really java. . . oh never mind! He’s a male stripper!”

(Phil graciously allowed me to post this explanation in lieu of payment)

Comment by Gerry DR #
2009-11-01 21:24:42

HI Phil
I love your Blog This, but when I went to upload it to my new computer, it appeared that it won’t work with Firefox 3.5.4 !!!

Are you planning to upgrade the code to work with this version of Firefox?

You’d make a lot of people very happy if you do.


Gerry DR

Name (required)
E-mail (required - never shown publicly)
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <del datetime="" cite=""> <dd> <dl> <dt> <em> <i> <ins datetime="" cite=""> <kbd> <li> <ol> <p> <pre> <q cite=""> <samp> <strong> <sub> <sup> <ul> in your comment.