Skip to content

Commit

Permalink
fix #448 - no more favicon imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Owyn committed Sep 4, 2021
1 parent cb522aa commit b49dcd4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions HandyImage.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Handy Image
// @version 2021.09.03
// @version 2021.09.04
// @author Owyn
// @contributor ubless607, bitst0rm
// @namespace handyimage
Expand Down Expand Up @@ -2860,13 +2860,10 @@ function autoresize()
title = title.substr(0, title.indexOf("?"));
}
document.title = title + " (" + i.naturalWidth + "x" + i.naturalHeight + ")"; // title
if(i.src.indexOf(".gif") === -1) // big lag for big animated favicons
{
let link = protected_createElement('link');
link.rel = 'icon';
link.href = i.src;
document.head.appendChild(link);
}
/*let link = protected_createElement('link');
link.rel = 'icon';
link.href = i.src;
document.head.appendChild(link);*/ // big lag in general from this feature
let InitRescale = false;
if(cfg_fitWH && orgImgHeight > window.innerHeight && orgImgWidth > window.innerWidth) // both scrollbars
{
Expand Down

0 comments on commit b49dcd4

Please sign in to comment.