I want to replace the src attribute for all images matching a regex using Greasemonkey scripting.
Example:
Replace http://aff.kooora.com/i/z3.gif
Just an alternative.
In this Greasemonkey script, ProxyLoadIMG, this is accomplished without using regex.
It was created to load images through a proxy.
Only the images. Links and other content remains untouched.
var proxy = 'https://proxytea.appspot.com/'
for (var x=0; x
http://aff.kooora.com/i/any.jpg becomes https://proxytea.appspot.com/aff.kooora.com/i/any.jpg
http://aff.kooora.com/i/z3.gif becomes https://proxytea.appspot.com/aff.kooora.com/i/z3.gif
and so on...
No RegEx needed :)