Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
Chrome devtools opening detection false positive

I have a content script in a browser extension which will detect if the devtools is opened by the user (Chrome only).

var antihack = function() {};
antihack.toString = function() {
 var host = window.location.host.replace(/^www\./i, "");
 chrome.runtime.sendMessage({type: 'antihack', origin: host});
 console.log('%c Warning do not paste code into this window.','color:red;font-size:16px;');
 clearInterval(checker);
}
var checker = setInterval(()=>{
  console.profile(antihack)
}, 1000)

When i look at the stats i see a lot more warnings than i would expect and also very sharp daily increases. I would expect around 5% of users opening the devtools but i am well over 20%.

Is there any possibility of false positive triggering it without opening the devtools manually ?

The extension is currently unpublished until i find the reason. The script to detect the devtools opening is currently the most reliable i have found working on the latest version of Chrome, i sourced my code from stackoverflow

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda