how to use the function of the firebug

29 views
Skip to first unread message

liuping

unread,
Jul 29, 2013, 3:47:24 AM7/29/13
to fir...@googlegroups.com
who can tell me, it's there any way for me to use those function of firebug, such as "include","$",etc,in my extensions for firebug. thank you very much!

Sebastian Zartner

unread,
Jul 29, 2013, 6:01:06 AM7/29/13
to fir...@googlegroups.com, Simon Lindholm
$ is just an equivalent for document.querySelector(). See the description in our wiki.
And include shouldn't be used to include external scripts into your extension's code. That would open a security whole.

If you just want to call these functions from within your extension, please follow the other thread about this topic.

Sebastian

liuping

unread,
Jul 30, 2013, 11:29:55 PM7/30/13
to fir...@googlegroups.com, Simon Lindholm
thank you! i just want to simplify the operation of "include"

在 2013年7月29日星期一UTC+8下午6时01分06秒,Sebastian Zartner写道:

Sebastian Zartner

unread,
Jul 31, 2013, 2:46:45 AM7/31/13
to fir...@googlegroups.com, Simon Lindholm
thank you! i just want to simplify the operation of "include"
Please explain that in more detail. Do you want to
  1. include code from a page and use it in your extension
  2. include other scripts within your extension into a script (i.e. have a modular script structure)

Sebastian

Reply all
Reply to author
Forward
0 new messages