Script to set feed thumbnails to favicon

I have the impression that this script works fine as long as the favicon can be found in the html element of the page (or if there is one available at the standard location). However, when it is specified in a link element of the documnent’s head part, it doesn’t work.

Probably because download markup only downloads the element (or does it?) and embedded images is fetching img elements exclusively?