How to disable the firebug with JavaScript?

807 views
Skip to first unread message

Hao Dong

unread,
Jul 8, 2013, 9:49:30 PM7/8/13
to fir...@googlegroups.com
    I have a web page contains some js code. I don't want others to inspect them. So How I can detect the existence of Firebug and disable it with my JavaScript code?

Sebastian Zartner

unread,
Jul 9, 2013, 1:59:30 AM7/9/13
to fir...@googlegroups.com
Sorry, but this simply isn't possible. People don't need Firebug to look at the code of a website. Also for privacy and security reasons we're trying to avoid Firebug being detectable by websites.

What you can do, though, is to minimize your JavaScript code, so it's less readable for people inspecting it.

Sebastian

Michael

unread,
Jul 15, 2013, 2:21:58 PM7/15/13
to fir...@googlegroups.com
Let me ask the opposite:

On Jul 8, 2013, at 10:59 PM, Sebastian Zartner wrote:

What you can do, though, is to minimize your JavaScript code, so it's less readable for people inspecting it.

Sebastian

Having seen some of that "obfuscated" java script, where the script writes code into the document body for later execution, is it possible to see the "final" document / final java script that is actually run?

---
This message was composed with the aid of a laptop cat, and no mouse

Sebastian Zartner

unread,
Jul 15, 2013, 3:34:48 PM7/15/13
to fir...@googlegroups.com
What you can do, though, is to minimize your JavaScript code, so it's less readable for people inspecting it.

Sebastian

Having seen some of that "obfuscated" java script, where the script writes code into the document body for later execution, is it possible to see the "final" document / final java script that is actually run?

Sure, if the JavaScript is executed using eval(), it should be listed within the Location Menu inside the Script panel. If it is attached by dynamically creating a <script> tag, you'll even see it within the HTML panel.

Sebastian
Reply all
Reply to author
Forward
0 new messages