Will Fris's WordPress Weblog

When you are developing a page and use firebug stuff inside your script, you might find that in other browsers your javascript does not get executed.

You could include the external javascript file to enable firebug inside other browsers. This can be done since firebug is written out with javascript, isn’t that nice?
Instructions can be found on firebug’s website.

Another option is to provide fake-functions||methods||thingies||whatever that will capture the firebug-calls from your script and do nothing at all besides that.

As demonstrated in many places, for instance:

However, it didn’t work here. (
Ubuntu 8.04 i.e. Hardy Heron
FireFox 3. 0.3(a.t.m.)
FireBug installed from the Ubuntu repostiories

So I fiddled somewhat:
if (window.console){
  for (index in window.console){
    console.log(index + ' >' + window.console[index]);

This gives me everything of window.console if I am not mistaken.

Long story short, no window.console.firebug || console.firebug
So I decided to do a check for something else, namely firebugVersion()
Which give me this script:

if (!window.console || !window.console.firebugVersion)
  var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
  window.console = {};
  for (i in names)
    window.console[names[i]] = function() {};

This works for me,
not giving me errors in Opera
and giving me console-stuff in firefox.


I have adapted hixie‘s solution to embed flash movies.
Although Roberto Scano‘s method seems to be the same, it is somewhat different.
In the browser on my platform Roberto’s method shows me two alternative messages, which I find excessive.
I also came across Jason Gill‘s method, a version quite like hixie’s though not hixie’s, Jason says.

I like Hixie and Gill their approaches. What I do not understand though, is Read the rest of this entry »

{20080422}   quicker then innerHTML

In this article a method is described which is supposed to be quicker then javascript’s innerHTML and also the DOM-way, it’s a combination of both of those.

et cetera