{"id":5507,"date":"2010-09-16T22:17:22","date_gmt":"2010-09-16T22:17:22","guid":{"rendered":"http:\/\/17.6"},"modified":"2010-09-16T22:17:22","modified_gmt":"2010-09-16T22:17:22","slug":"6","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/labs\/2010\/09\/6\/","title":{"rendered":"Zaphod 1.0 Released"},"content":{"rendered":"<p>Today we are launching Zaphod, an addon for integrating the Narcissus JavaScript engine into Firefox 4.<\/p>\n<p>Narcissus is neither as fast nor as feature-rich as SpiderMonkey, BUT it is substantially easier to read, understand, and (critically) modify.\u00a0 If you have a new feature idea, Narcissus is an ideal tool.\u00a0 With the Zaphod addon, you can also integrate Narcissus into the browser as your JS engine in order to do some real meaningful tests.\u00a0 Also, since your changes will be separate from the browser code base, you can more easily share your ideas with others.<\/p>\n<p>Zaphod will process any script tag with a type of &#8220;application\/narcissus&#8221; using the Narcissus engine.\u00a0 Since SpiderMonkey will ignore script tags of an unknown type, it won&#8217;t interfere with Narcissus.\u00a0 Also, you can specify the script type of the page as Narcissus with a meta tag:<\/p>\n<blockquote><p><strong>&lt;meta http-equiv=&#8221;Content-Script-Type&#8221; content=&#8221;application\/narcissus&#8221; \/&gt;<\/strong><\/p><\/blockquote>\n<p>Doing so will cause Narcissus to execute the various on* listeners specified for different elements.\u00a0 (Unfortunately, SpiderMonkey will also execute them, which may or may not cause issues).<\/p>\n<p>However, Zaphod also provides an additional alternative.\u00a0 Click on the Mozilla icon in the bottom right of your browser window, and it will disable SpiderMonkey and use Narcissus for parsing all JavaScript on any page you visit.After you are done experimenting, click on the icon again and SpiderMonkey will be reset to your JavaScript engine.<\/p>\n<p>At the moment, Zaphod does not work well with the more JavaScript-heavy sites like GMail, but we have <a title=\"examples\" href=\"http:\/\/www.bias2build.com\/narcissus\/\" target=\"_self\">several examples<\/a> available for experimentation.\u00a0 Enjoy!\ufeff<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we are launching Zaphod, an addon for integrating the Narcissus JavaScript engine into Firefox 4. Narcissus is neither as fast nor as feature-rich as SpiderMonkey, BUT it is substantially easier to read, understand, and (critically) modify.\u00a0 If you have &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/labs\/2010\/09\/6\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1438,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[926,1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/labs\/wp-json\/wp\/v2\/posts\/5507"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/labs\/wp-json\/wp\/v2\/users\/1438"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/labs\/wp-json\/wp\/v2\/comments?post=5507"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/labs\/wp-json\/wp\/v2\/posts\/5507\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/labs\/wp-json\/wp\/v2\/media?parent=5507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/labs\/wp-json\/wp\/v2\/categories?post=5507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/labs\/wp-json\/wp\/v2\/tags?post=5507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}