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

129
Vistas
Any way to intercept and modify external static javascript in an HTML? tamper monkey or grease monkey or any other way

I have a page that loads javascript using a <script src="some/script.js"> tag. I wanted to replace a string in the external javascript file. And I found no way to do this in chrome. local overrides could work, but I don't want to keep the devtools open to make this work.

I tried the following

window.onbeforescriptexecute = function(e)=>(modifier code)

or

window.addEventListener("beforescriptexecute", (e)=>{modifier code});

But they don't work at all. I also tried this snippet here, still with no luck.

How can I make this work?

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