I am using a simple script to find an image on a page and get its source.
function img_find() {
var img_find2 = document.getElementsByTagName(\"img\")[0].sr
To print on current page (replace content):
document.write(`${JSON.stringify(Array.prototype.map.call(document.getElementsByTagName("img"), img => img.src), null, 2)}
`);
To save in array:
const imgs = Array.prototype.map.call(document.getElementsByTagName("img"), img => img.src);
To just console dir/log directly:
console.dir(Array.prototype.map.call(document.getElementsByTagName("img"), img => img.src));
console.log(Array.prototype.map.call(document.getElementsByTagName("img"), img => img.src));