Monthly Archives: April 2011

Upcoming project

The last few weeks I was working on developing some Firefox extensions. I found out that it’s pretty hard to find code snippets. What you’ll find are just some general information like which methods exists for a Firefox class. But … Continue reading

Posted in jQuery & Javascript, Personal | 3 Comments

OS flag firefox extension / Componente

Are you looking for a way to detect which operating system (OS) is used from the inside an Firefox extension? http://www.quirksmode.org/js/detect.html <- wrong way Right way: var OS = Components.classes[“@mozilla.org/xre/app-info;1”].getService(Components.interfaces.nsIXULRuntime).OS; alert(OS);

Posted in jQuery & Javascript | 6 Comments