Slashdot Mirror


Mozilla Jetpack, an API For Standards-Based Add-Ons

revealingheart writes "Mozilla Labs have released a prototype extension called Jetpack: An API for allowing you to write Firefox add-ons using existing web technologies to enhance the browser (e.g. HTML, CSS and Javascript), with the goal of allowing anyone who can build a Web site to participate in making the Web a better place to work, communicate and play. Example add-ons are included on the Jetpack website. While currently only a prototype, this could lead to a simpler and easier to develop add-on system, which all browsers could potentially implement."

42 comments

  1. I want a real jetpack by Geoffrey.landis · · Score: 4, Funny

    Not some software thing!

    --
    http://www.geoffreylandis.com
    1. Re:I want a real jetpack by Anonymous Coward · · Score: 0

      You want a backpack with jets? Who do you think you are, Boba the Fett? Do you bounty hunt for Jabba the Hut to finance your 'Vette?

    2. Re:I want a real jetpack by Anonymous Coward · · Score: 0

      Best. First. Post. Ever.

      I salute you, sir.

        -AC

    3. Re:I want a real jetpack by Anonymous Coward · · Score: 0

      How the Heck was this marked as "insightful' and not funny?!?!

    4. Re:I want a real jetpack by Geoffrey.landis · · Score: 1

      You want a backpack with jets?
      Who do you think you are, Boba the Fett?
      Do you bounty hunt
      for Jabba the Hut
      to finance your 'Vette?

      Say, not bad, but your scansion kinda falls apart on that last line. Maybe, "to get money to finance your 'Vette"?

      Also, I'm not sure about rhyming "hunt" with "Hutt".

      --
      http://www.geoffreylandis.com
    5. Re:I want a real jetpack by DocHoncho · · Score: 1

      He forgot to credit MC Chris
      http://www.youtube.com/watch?v=QRhnw1gFuDA

      --
      Celebrity worship is a poor substitute for Deity worship and costs more to boot.
  2. Cough*Chrome*cough by Ethanol-fueled · · Score: 2, Insightful

    Google, you listenin'?

    1. Re:Cough*Chrome*cough by Facegarden · · Score: 1

      Google, you listenin'?

      Agreed!

      --
      Worldwide Military budgets: $2100 billion. Worldwide Space Exploration budgets: $38 billion. Really, world? Really?
  3. I use IE you insensitive clod! by $RANDOMLUSER · · Score: 4, Funny

    What are these web-standards of which you speak?

    --
    No folly is more costly than the folly of intolerant idealism. - Winston Churchill
    1. Re:I use IE you insensitive clod! by Locke2005 · · Score: 1

      There are 3 ways to design a standard: the right way, the wrong way, and the Microsoft way (which is kinda like the wrong way, only with greater vendor lock-in.)

      --
      I've abandoned my search for truth; now I'm just looking for some useful delusions.
    2. Re:I use IE you insensitive clod! by Daengbo · · Score: 1

      Or to implement a standard -- see ODF the Microsoft way.

    3. Re:I use IE you insensitive clod! by chord.wav · · Score: 1

      IE IS standards-compliant, just a different set of standards...

    4. Re:I use IE you insensitive clod! by Anonymous Coward · · Score: 0

      Once upon a time (about 15 years ago), Microsoft was making internet standard non-compliant products. From indifference, incompetence, and for competitive advantage. It's the culture.

      Bill came to town, gave a talk, and was asked what Microsoft's position on internet standards was.

      He got a really goofy grin, stared up at the ceiling, paused, and replied "Well, it depends what you mean by "staanndards"".

      -----
      Microsoft - crippling web programming for more than a decade. Currently fighting off canvas.

  4. What? More ways to hack a browser? by djnewman · · Score: 0, Flamebait

    Just what we need - more ways to mess up a browser. I thought we were supposed to be working towards standards not adding more extensions!

    1. Re:What? More ways to hack a browser? by FooAtWFU · · Score: 1

      Theoretically, JetPack's API could be implemented by multiple browsers, so you could write one cutesy little extension for all of them.

      --
      The World Wide Web is dying. Soon, we shall have only the Internet.
    2. Re:What? More ways to hack a browser? by Facegarden · · Score: 4, Insightful

      Just what we need - more ways to mess up a browser. I thought we were supposed to be working towards standards not adding more extensions!

      The idea *is* to use standards! People already make add-ons, they might as well be interoperable too.
      Does this not make sense to you?
      -Taylor

      --
      Worldwide Military budgets: $2100 billion. Worldwide Space Exploration budgets: $38 billion. Really, world? Really?
    3. Re:What? More ways to hack a browser? by Anonymous Coward · · Score: 0

      I was just thinking about that. I think should be considered Web 3.0; don't just reinvent the webpage, but the interface as well.

  5. got xul? by mikedeanklein · · Score: 2, Insightful

    What about xul (xml, css, js)?

    1. Re:got xul? by K.+S.+Kyosuke · · Score: 1

      I guess they will have to fix the xmlns, as there is not only XUL anymore. :-)

      --
      Ezekiel 23:20
    2. Re:got xul? by Anonymous Coward · · Score: 0

      "Standard-based". XUL isn't.

  6. Standards... by Z_A_Commando · · Score: 5, Interesting

    This is great for Firefox. I really hope this takes off, pardon the unintended pun. I'm just a little leery about the other browser makers picking this up and running with it. It will need to at least be a de facto standard before Google, Apple, Opera or Microsoft even consider using it. If it's controlled by Mozilla, they're not going to want to.

    Also, (at least to me) the fact that it's difficult to write an add-on for a browser if you don't have anything but basic web development skills is what add-ons so useful. You know they're probably not going to be half-baked and have someone who (hopefully) knows what they're doing supporting it. Jetpack could lower the skill set bar too low. So to sum up, great for Firefox, but I don't think this is something that will be used across browsers once it's fully implemented, which it's not (yet)

    1. Re:Standards... by Anonymous Coward · · Score: 1, Interesting

      It will need to at least be a de facto standard before Google, Apple, Opera...

      Isn't this very similar if not the same as Opera's widgets?

    2. Re:Standards... by Anonymous Coward · · Score: 0

      If Google, Apple, Opera, and Microsoft don't adopt this because it's not "de facto standard", that leaves Mozilla. Their current plugin interface might as well be called a standard, implemented by one. This won't be a "de facto standard" until after Google, Apple, and Microsoft implement it in addition to Mozilla.

  7. They just re-invented Greasemonkey by Animats · · Score: 3, Insightful

    I think they just re-invented Greasemonkey. But not well.

    At least with Greasemonkey, there's a well-defined language. It's all Javascript. This thing seems to have some horrible mess of intermixed Javascript, CSS, and HTML. Plus it has JQuery built in, and a special symbol ("$") for it. (For a moment, I thought I was reading Perl.)

    Having done some non-trivial work with Greasemonkey, I'm not sure this thing is a step up.

    1. Re:They just re-invented Greasemonkey by sr.+bigotes · · Score: 4, Informative

      You have no idea what you are talking about. Calling a mix of HTML, CSS, and JS a "mess" is uniformed FUD. The vast majority of the visible web is based on these three technologies, and at least in their current form, they are designed to work together pretty well. I'm not sure how you could have written any scripts in your life and not come to this conclusion. What exactly did you do with GreaseMonkey if you weren't using it to manipulate HTML and CSS?

      Also, jQuery is terribly popular. Not including support for it would have been a huge oversight. Did you just step out of a time machine from 1999?

    2. Re:They just re-invented Greasemonkey by buchner.johannes · · Score: 3, Insightful

      1 Mozilla uses Javascript for all addons, so I guess they have some idea of it.

      2 You can't program native UI-Elements with Greasemonkey, and even if, they would live inside the website as Greasemonkey is more for "patching" existing websites.
      Browser addons should survive a website navigation.

      This thing seems to have some horrible mess of intermixed Javascript, CSS, and HTML.

      This is called the web.

      --
      NB: The message above might reflect my opinion right now, but not necessarily tomorrow or next year.
    3. Re:They just re-invented Greasemonkey by dreemernj · · Score: 2, Funny

      You have no idea what you are talking about. Calling a mix of HTML, CSS, and JS a "mess" is uniformed FUD. The vast majority of the visible web is based on these three technologies, and at least in their current form, they are designed to work together pretty well. I'm not sure how you could have written any scripts in your life and not come to this conclusion. What exactly did you do with GreaseMonkey if you weren't using it to manipulate HTML and CSS?

      Also, jQuery is terribly popular. Not including support for it would have been a huge oversight. Did you just step out of a time machine from 1999?

      Not trying to be a grammar nazi, but damn I want to see what Uniformed FUD looks like. I'm thinking hiking boots, bermuda shorts, maybe one of those weird mailman safari hats...

      --
      1 (short ton / firkin) = 89.1432354 slugs / keg
    4. Re:They just re-invented Greasemonkey by Anonymous Coward · · Score: 1, Interesting

      ...they are designed to work together pretty well. I'm not sure how you could have written any scripts in your life and not come to this conclusion.

      I'm not sure how you could have written any scripts in your life and actually come to this conclusion, short of never having programmed in anything other than PHP and the various "web" languages. But language diatribes aside, even if you concede that web languages are the best thing since sliced bread, this "standard" is still pretty crappy.

      Also, jQuery is terribly popular. Not including support for it would have been a huge oversight.

      There is a difference between supporting jQuery and codifying jQuery into the specification. Allowing jQuery to be used by extensions or even implementions of the specification would be acceptable, but requiring jQuery to be used by implementors is just stupid.

      What they've produced is a specification, and a fairly-incomplete one at that. They haven't produced a standard since it appears that they haven't gotten input from other potential implementors. You can't just create a specification that meets your own needs perfectly and call it a standard. Standards are about hammering out the differences between many sets of interests to provide a common interface to a common domain.

      As it is, I can't see this as anything more than Mozilla announcing its willingness to explore a common extension API with other browser vendors.

    5. Re:They just re-invented Greasemonkey by JPortal · · Score: 1

      Uhm, "$" is not a "special symbol". It's a valid symbol that can be used in any Javascript variable names.

    6. Re:They just re-invented Greasemonkey by Bitsy+Boffin · · Score: 1

      Also, jQuery is terribly popular. Not including support for it would have been a huge oversight.

      Bollocks.

      Specifically including "mozilla developer favorite javascript library" is not the right thing for them to do AT ALL.

      By basing this around jQuery (and it looks like the jetpack code is dependant on it rather than just "supporting" it), I believe it is is fair to say that you pretty much say to developers using mootools, or prototype or any other library (and there are many) "my way or the highway", owing to the pollution caused by all common javascript libraries making it inherently incompatible.

      The correct way to do this, would have been to write it in bog standard javascript, do not pollute the dom or javasacript objects any more than absolutely necessary, encapsulate everything you need in a single object.

      --
      NZ Electronics Enthusiasts: Check out my Trade Me Listings
    7. Re:They just re-invented Greasemonkey by Bitsy+Boffin · · Score: 1

      Poster is talking regards jQuery, and other javascript libraries, which typically use a function named "$" to select & augment elements from the dom.

      By using jQuery and thus polluting the global function namespace in this manner, they exclude the ability to use other javascript libraries.

      --
      NZ Electronics Enthusiasts: Check out my Trade Me Listings
    8. Re:They just re-invented Greasemonkey by JPortal · · Score: 2, Insightful

      That may be a valid criticism, but "For a moment, I thought I was reading Perl" indicates ignorance of JS in general?

    9. Re:They just re-invented Greasemonkey by AlXtreme · · Score: 1

      The correct way to do this, would have been to write it in bog standard javascript, do not pollute the dom or javasacript objects any more than absolutely necessary, encapsulate everything you need in a single object.

      All you'd have to do is run:

      jQuery.noConflict();

      and your DOM/JS scope is clean. So if you want to use bog standard JS or any other library, the above is all you need to know about jQuery.

      The reason the Jetpack dev's probably went for jQuery is because it is small, plays nice with other libraries and is easily extensible.

      --
      This sig is intentionally left blank
    10. Re:They just re-invented Greasemonkey by asdf7890 · · Score: 1

      The reason the Jetpack dev's probably went for jQuery is because it is small, plays nice with other libraries and is easily extensible.

      And, for the above reasons, it is common for web oriented devs to be at least a little familiar with it already (which should reduce the severity of the average learning curve, making the new feature more likely to gain a critical mass of followers).

    11. Re:They just re-invented Greasemonkey by maraist · · Score: 1

      Just enable jQuery.noConflict() then use jQuery.foo() like I do.

      --
      -Michael
    12. Re:They just re-invented Greasemonkey by maraist · · Score: 1

      jQuery solves a totally different problem than prototype.. prototype is a bucket of widgets, whereas jQuery is more like a ruby-extension to javascript. It allows you to program in an expressive meta-language. This happens to make widgets easier to build as well, but the key is your custom API on top of library X,Y,Z can be coded using jQuery. I do this with Yahoo YUI all the time, for example.

      Can't speak to mootools. But with a few exceptions, jQuery can work in conjunction with other javascript frameworks (zero namespace collisions at least - unless you want to use jQuery as a global in your library)

      I assert that raw javascript + CSS + DOM == PITA. I know that some people disagree, but I think they're massochistic (quirks == spice v.s. quirks == productivity-obstacle).

      --
      -Michael
  8. Oh great... by Thantik · · Score: 1, Funny
    So now I can have a badly coded addon that spans 5 horizontal widths, has tons of flash advertisements, and a tag?

    THATS GREAT!!!

    1. Re:Oh great... by Anonymous Coward · · Score: 0

      You know you don't have to download that poorly coded addon, right?

    2. Re:Oh great... by Tokerat · · Score: 2

      So now I can have a badly coded addon that spans 5 horizontal widths, has tons of flash advertisements, and a <blink> tag?

      THATS GREAT!!!

      You see, the reason it's an add-on is because it's OPTIONAL!!!

      Idiot.

      --
      CAn'T CompreHend SARcaSm?
  9. obligatory by Anonymous Coward · · Score: 1, Funny

    my backpack's got jets!

    1. Re:obligatory by __aaclcg7560 · · Score: 1

      But does it call home (a la Chrome)?

  10. The solution: by Tiles · · Score: 1

    Don't install it.