https://gyazo.com/3d3c280ccfe49260f8539b54936d7f3d
Тот же код в ff:
https://gyazo.com/7b2a7a39293e2918fcf31791c2bacc70
Страница:
https://photofocus.com/2016/03/18/more-affordable-camera-stableizerstripods-from-adorama/
Код:
Тот же код в ff:
https://gyazo.com/7b2a7a39293e2918fcf31791c2bacc70
Страница:
https://photofocus.com/2016/03/18/more-affordable-camera-stableizerstripods-from-adorama/
Код:
Код:
var context = document.querySelectorAll(".entry-content")[0];
function recurs(oldContext){
var cnt = oldContext.childNodes.length;
if (cnt != 0) {
var context = oldContext.childNodes[0];
return recurs(context);
} else {
// console.log(oldContext.getAttribute('src'));
if (oldContext.getAttribute('src')) {
return oldContext.getAttribute('src');
} else {
return false;
}
}
}
recurs(context.childNodes[0]);