Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!