Is there any easy way (via extension) to modify the "src" attribute of images 
on wiki pages?

I see hooks for modifying href values - LinkBegin and LinkEnd.  But I don't see 
something similar for images, whose URLs seem to be produced via File::getUrl().

Purpose: I want to add a querystring parameter onto the ends of the URLs, 
turning <img src="foo.jpg"/> into <img src="foo.jpg?timestamp=xxxxxxxxxxx"/> to 
aid with caching.

Thanks,
DanB

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to