Did you know that if you’ve got Firebug for Firefox installed, you can use it for debugging your own code? By calling
console.log("Here's a message!");
Firebug will print the message to it’s internal message log. Neat!
Now, that’s all good. But let’s say you’re on a project that’s not using a Javascript preprocessor to minify and strip debugging […]
Continue reading about A Javascript debugging tip for Firebug (or “Stop using alert()!”)
After lots of code, tests, and fun, I’ve produced a Firefox extension to add a useful, new feature to Twitter, as opposed to writing Twitter extensions as a joke
Simply put, the extension provides autocomplete for Twitter usernames from your own list of friends while you’re using the web interface at twitter.com. It’s totally […]
Continue reading about Twitter Autocomplete (Tw-autocomplete Firefox Extension)
One hugely important thing in coding is debugging. Unfortunately, a lot of Javascript debugging gets done via alert() calls. This gets awkward quickly, with the alerts affecting timing, and just being annoying if you have to dump large amounts of data out.
Firebug is a great development tool, and has a really handy logging interface that […]
OK. Because this was confusing the hell out of me, I had to post about figuring it out.
Let’s say you’re a developer writing a Mozilla Firefox Extension that searches for text on a page (or rather, in a browser window). If you have a button that has the following functionality attached onclick:
var webBrowserFind = getBrowser().selectedBrowser.webBrowserFind;
webBrowserFind.searchString […]
Continue reading about Finding text from a Firefox Extension