Minor fix
|
|
There was bug when profile's with "_s" or "_m" in their name would cause the direct image link to 404. This will work for all profile names unless the name ends in "_s" or "_m". I am quite new to java and regex so this was the best i could do for now. ( Old Code )
( New Code )
|
|
|
It's line number 83 for those who need to know. |
|
|
Hi hentaku, Thank you for advice me.
So, I fixed this Bug that (Old Code)
(New Code)
|
|
|
Hi Suiren, Thanks for taking the time to respond. I tried your code but it still wasn't working for me on accounts whose name ends in "_s" or "_m". So i did some more research on regex and java and did learn enough to make the correct code for it to work all around. I also took the liberty of consolidating the regex statement as well. full_img.href = links[i].firstChild.src.replace(/_[sm]\./, "."); |
|
|
Hi hentaku. Thank you for your advice!
So I fixed this Bug by using your code.
(New Code)
_[sm] to _[ms] because that is just alphabetical order. |
|
|
No problem! Glad i could help make this script a little better, even if by a very small bit. |