getImgSRC looks specifically for src.indexOf('//') which is not available in a URL encoded src Works if you replace "https%3A%2F%2F" with "https://"