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

204
Vistas
Temporarily disabling javascript alerts from a certain page?

I'm making code edits to my website within cPanel's file manager. With the latest update of cPanel v.104, after saving my file, control+Z does not revert my changes.

Now, A javascript alert pops up asking: "Are you sure you want to save? The file will be overwritten."

I hypothesize that a redefinition of the alert function, locally via my javascript console could stop this behavior and thus reclaim my control+Z ability.

window.alert = function() {};

Well, this does successfully disable alerts when I throw it in the console. Is it incorrect methodology to paste this in the console? Is there something else I should do?

Here is a thread tracking this issue: https://forums.cpanel.net/threads/cpanel-40934-website-com-says-are-you-sure-you-want-to-save-the-file-will-be-overwritten.701853/

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

0

Alert box is used to provide the user some information. When trying to receive approval or disapproval, confirm() is used.

Try pasting this code in your web dev tools console.

window.confirm = function() {};
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