Hacks

The following projects are hacks, tools and explorations the Mozilla Labs staff as well as the wider community built – often as side projects or to scratch a particular need. We don’t treat them as proper Labs projects – you might find them useful, interesting or just fun to play with.

All projects are released under open licenses (please see the specific license for each project for details) so feel free to hack away. Please note: These aren’t supported by Labs directly, if you find a problem please contact the author or use the project’s support system (issue tracker, etc).

 

deminifier
by Patrick Walton
This is a simple JavaScript deminifier add-on for Firefox 4, untested in Firefox 3.6. To use it, view the source of any page (Cmd+U) and click the Deminify button, which can be found either at the top right of the displayed source or next to a script tag.

docstract
by Lloyd Hilaiel
docstract parses documentation out of JavaScript source and outputs JSON.

doctest.js
by Ian Bicking
doctest.js is a testing framework for Javascript, using a simple example-response format and with easy patterns for testing asynchronous code.

Doctor JS
by Dave Herman
Doctor JS is a JavaScript code analyzer, complete with polymorphism, prototypes, exceptions and callbacks.

Emscripten
by Alon Zakai
Emscripten is an LLVM-to-JavaScript compiler. It lets you compile C or C++ code into JavaScript (through LLVM), basically letting you run that C/C++ code on the web.

Framerate Monitor
by Patrick Walton
The Framerate Monitor Add-on allows you to find jank and performance problems in the Firefox UI; Web developers should find it useful too: It works on CSS transitions and JavaScript animations built using mozRequestAnimationFrame().

jschannel
by Lloyd Hilaiel
A JavaScript library which implements fancy IPC semantics on top of postMessage.

JSONSelect
by Lloyd Hilaiel
CSS-like selectors for JSON.

jstask
by Dave Herman
A cooperative multithreading library (built on SpiderMonkey generators).

Piranha
by Patrick Walton
Experimental profiler for Android, allows for getting performance data on consumer Android phones.

Slurp
by Anant Narayanan
Import your del.icio.us bookmarks into Firefox 4 (and keep your tags & notes).

structs.js
by Dave Herman
First-class binary datatypes (built on SpiderMonkey typed arrays).

unsearched
by Anant Narayanan
Remembers to clear your search box so you don’t have to.

About Mozilla Labs

We are a team of engineers & designers - and a community of explorers, experimenters, thinkers and creators. Together we imagine and build the future of the browser and the Web. Join us and help invent the future.

Newsletter

Enter your email address here to subscribe to our mailing list for announcements: