1

How would I go about if I wanted to make a javascript code that will detect any script being runned by the web console?

I know that if I write this code:

if (window.console && window.console.chrome) {
//is open
};

I will be able to see if the console is running. But I want to detect if any code is being runned.

Insanic
  • 71
  • 9
  • 1
    Possible duplicate of [Detect if any JavaScript function is running](https://stackoverflow.com/questions/8790099/detect-if-any-javascript-function-is-running) – mrogers May 25 '17 at 18:33
  • 1
    No, you can never detect what the user is doing with your page on his computer. – Bergi May 25 '17 at 18:40
  • what kind of script are you considering here? a script that access your javascript funcions or a script that does some variable assignment ? eg: global.func(), where global is present in your code or var x =1 ; – karthick May 25 '17 at 18:40

0 Answers0