Changing Javascript on an HTML page out of my control [duplicate]
This question already has an answer here: Stop execution of Javascript function (client side) or tweak it 4 answers I'm using an HTML page out of my control. It defines a Javascript function in an inline <script> tag and calls it in <body onload="..."> : <html> ... <body onload="init()"> <script type="text/javascript" language="javascript"> function init() { ... } </script> ... How can I change that function before it's called? I've tried to use Greasemonkey to modify the script or to insert another script just after it to override the function, but it doesn't seem to have any effect. Brock