How to change URL params using javascript?

i need to change an image URL size like https://cbu01.alicdn.com/img/ibank/2020/463/204/20403402364_1834014696.jpg_50x50.jpg to https://cbu01.alicdn.com/img/ibank/2020/463/204/20403402364_1834014696.jpg_800x800.jpg

Actually i need to change all image from api 50*50 to 800*800, how can i replace URL keyword using javascript or regular expression?

50*50 to 800*800 is not working using regular expression.



Read more here: https://stackoverflow.com/questions/65713230/how-to-change-url-params-using-javascript

Content Attribution

This content was originally published by Koushik Saha at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: