fix on Firefox >= 29 and code cleanups
disable DOM inspector sidebar addon when devtool panel is disabled