BlogJetThis FireFox Extension 0.2
James Avery wrote a BlogJet BlogThis context menu handler for FireFox. Right now it's married to a default install path on the C:\ drive. The code to pull a registry value in a FireFox extension could look about like the following right now.
function getBlogJetRegistryValue()
{
try {
const HKCU = 3;
const targetClass = "@mozilla.org/browser/shell-service;1";
const registryKey =
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\BlogJet.exe";
const registryValue = ""; // (Default)
var reg = Components.classes[targetClass].getService(
Components.interfaces.nsIWindowsShellService);
return reg.getRegistryEntry(HKCU, registryKey, registryValue);
} catch (ex) {
alert("Could not locate registry value!Key/Value:\n\n" + registryKey +
registryValue + "\n\nException:\n" + ex);
}
}
This call seems to be in a bit of flux/turnaround, it's basically the same problem the NewsGator context menu was having with FireFox 9.x.
You're welcome to download a thusly modified version of James' blogJetThis in both xpi and zip formats if it saves you the xul editing yourself.
Updated: Using HKLM value posted by Dmitry in comments. Zip and XPI updated as well.