Javascript – How to find first image or video thumbnail in a webpage
How to find first image or first video thumbnail in a webpage? My code (below) retrieves an image but it's always not the first visible image and it doesn't fetch video thumbnails properly as well. Sample URLs: https://www.bbc.com/news/articles/c0ve1zn9wlyo https://www.bbc.com/news/articles/c0r8edwj9wlo The…