More img urls
|
|
I just noticed that a lot of imgs do not work. Here is an example: small: https://www.xing.com/img/users/1/e/4/fb0105000....
as you can see, there is an additional ",\d" introduced. To make the script finding those, too: var s = imgName.search(/\/img\/users\/.+\_s(1|2|3)?(\,\d|)\.(jpg|gif|png)$/); and: newImg.src=this.src.replace(/\_s(1|2|3)?/, ""); With these two changes, it seems to work fine here. Though you might want to improve the second change to be more precise (including the possible ",\d" addition as a back-reference - I'm not that good in it). Just to be on the safe side ;) |