Welcome to Community Server Sign in | Join | Help

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.

Published Monday, August 09, 2004 7:09 PM by grant

Comments

Monday, August 09, 2004 7:17 PM by grant

# re: BlogJetThis FireFox Extension 0.2

Tuesday, August 10, 2004 8:15 AM by grant

# re: BlogJetThis FireFox Extension 0.2

Awesome! I will work from this version, I have two more changes to make then hopefully BlogJet will start including this with their install packages.

Thanks!
-James
Tuesday, August 10, 2004 10:05 AM by grant

# re: BlogJetThis FireFox Extension 0.2

Cool! Thanks for contributing code, guys. I'd like to point out that there's a better (and standard) registry key to get BlogJet's path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\BlogJet.exe
value "Path"

Tuesday, August 10, 2004 9:54 PM by grant

# re: BlogJetThis FireFox Extension 0.2

Ok I give up. I want to add your name to the BlogJetThis extension as a contributor.. but I can't find you name anywhere on your blog... anywhere! I tried your contact form and it errors.... I take it you dont want anyone contacting you?

Shoot me an email with your name and I will add it. (javery AT infozerk DOT com)

-James
Friday, August 13, 2004 4:25 PM by grant

# BlogJetThis! Extension for FireFox 0.3

Tuesday, August 31, 2004 6:18 PM by grant

# re: BlogJetThis FireFox Extension 0.2

Is this open source (GPL)? Can I hack it for other blog tools?
Thursday, September 09, 2004 2:05 PM by grant

# re: BlogJetThis FireFox Extension 0.2

Brad: No idea what <a href="http://dotavery.com/blog/">James'</a> take is (and it's his take that matters), but I would personally encourage it.
Friday, October 01, 2004 6:08 AM by grant

# re: BlogJetThis FireFox Extension 0.2

This won't install in FF 1.0PR with a 'not compatible with this version of FireFox' error. Any chance of an update? Thanks, Paul
Friday, October 01, 2004 6:11 AM by grant

# re: BlogJetThis FireFox Extension 0.2

Doh, and now I will post this on the correct blog...
Anonymous comments are disabled