You need to wait until the UI has finished loading. I don't know the code base, so I can't tell you whether there is a special event you need to listen to or it's enough to listen for the 'load' event. If nothing like this is available, you'll probably have to wait for some time using the setTimeout() function.
Sebastian On Tuesday, June 7, 2016 at 11:24:14 AM UTC+2, KSatti wrote: > > I have tried to use appendChild ( ) but the parent to which i want my > button to be appended is always returned as NULL. > > On Tuesday, June 7, 2016 at 1:55:00 PM UTC+5, Sebastian Zartner wrote: >> >> Note that Firebug Lite is unmaintained for years and you're encouraged to >> use the Firefox DevTools instead, which can also be extended >> <https://developer.mozilla.org/en-US/docs/Tools#Extending_the_devtools>. >> >> Having said that, Firebug Lite is written purely in JavaScript, so, you >> may add buttons to it by using standard DOM functions like appendChild() >> <https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild> once >> it's loaded. >> >> Sebastian >> >> On Tuesday, June 7, 2016 at 9:06:28 AM UTC+2, KSatti wrote: >>> >>> Need to add the custom buttons as displayed in the image attached. Is >>> there any possibility to do it? >>> >> -- You received this message because you are subscribed to the Google Groups "Firebug" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/firebug. To view this discussion on the web visit https://groups.google.com/d/msgid/firebug/ce887877-2855-4390-a352-849a2bd63a22%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
