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

202
Vistas
How to disable a shortcut used by a website with a userscript (SquareSpace ESC)?

Some websites made with SquareSpace (for example this website) redirect the user to the login page when ESC is pressed. How can I prevent this redirection? (I am not the owner of this website so I can't disable this feature in the Website Settings)

This is what I tried but this doesn't prevent the redirection from happening:

 if (document.getElementsByTagName("head")[0].innerHTML.includes("squarespace") ==true){
        window.addEventListener("keydown", dispatchkeyboardSquareSpace);
       function dispatchkeyboardSquareSpace(key) {
       if (key.key == "Escape") { ///66 = b   https://keycode.info/
           console.log("escape neutralized because squarespace")
           };
       }
   }
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try this (it should be self explanatory):

Static.SQUARESPACE_CONTEXT.websiteSettings.useEscapeKeyToLogin = false;
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