>>162
jQueryが得意そうな課題だなw
動かしてないけどこんな感じかな

$(function() {
 $('.gallery img').attr('src', function() {
  return this.src.replace(/xxx/, 'xxx_s');
 });
});