1

On various websites you can discover messages (mostly for developers) when you open the Developer Tools. For instance on Facebook you get this message:

enter image description here

But how do they hide the reference from which line this code is fired?

When I type console.log or any other function from the Console API there is always a reference link like app.js:20 on the right end of line.

BDL
  • 21,052
  • 22
  • 49
  • 55
morkro
  • 4,336
  • 5
  • 25
  • 35
  • possible duplicate of [How does Facebook disable the browser's integrated Developer Tools?](http://stackoverflow.com/questions/21692646/how-does-facebook-disable-the-browsers-integrated-developer-tools) – Quentin Jun 13 '14 at 16:05
  • FYI, The reference is shown in Firefox. – XrXr Jun 13 '14 at 16:13
  • Thanks for the link @Quentin but that's only a basic explanation of how to disable/manipulate the console Object. I will try to fix that out based on that code and hopefully give an answer here. – morkro Jun 13 '14 at 16:24

0 Answers0