Is there something similar to the Greasemonkey script system for a browser in iOS?
At the moment there is the GreasePocket project in the works.

Have a look at their website, but it's far from a finished product, it will also probably need to be run on a JailBroken device.