Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There is a website that I like visiting which uses a Javascript that does not work on Linux with Iceweasel. Looking into the source, I have found a simple way to fix it, so what I would like to do is set up something like Fiddler2's AutoResponder feature that will intercept a request for the bad Javascript, returning the fixed Javascript from the local filesystem instead.

What is the simplest way to do this?

Note: The webmaster has refused to use my fixed version of the script.

share|improve this question

1 Answer 1

Have you looked into using GreaseMonkey? Depending on when the JS is loaded (and how it's executed) - that may be the perfect solution.

share|improve this answer
    
Yes, I looked into Greasemonkey, but unfortunately by the time that the Greasemonkey script executes, the error has already occurred. –  Daniel Trebbien Mar 10 '11 at 0:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.