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

210
Vistas
How to prevent pages from detecting the user left a page / clicked outside of the window?

I'm just wondering, is it possible to prevent certain pages from detecting (probably through JS) that I have left the current window environment?

Some pages reset a timer if you leave the active/focused window for something else, for example.

Do I need to use greasemonkey for this?

Thank you

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I managed to write a Greasemonkey script for it that works, it prevents pages from knowing you got out (and in) while open:

// ==UserScript==
// @name         Block Page Unfocus
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Prevents webpages from knowing you unfocused the page.
// @author       You
// @include *
// @grant        none
// ==/UserScript==

window.onblur = function() {
 document.activeElement.blur();
 }
window.onfocus = function() {
 document.activeElement.blur();
 }
about 4 years ago · Juan Pablo Isaza Denunciar
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