var img = document.querySelector("img._5i4g._5sjv.img"); if (img != null) { console.log(img.src); } else { console.log("cannot find image URL!"); }