The forums ran from 2008-2020 and are now closed and viewable here as an archive.
@JohnMotylJr Thank you man i owe you a drink. Still i had to change one line to make it work. Your code works in Codepen but don’t works in browsers with this line it’s vice versa.
a = a.substring(a.lastIndexOf(‘/’));
Thanks again! Cheers!