Preference to disable favicon animations

Suggestions and feature requests for the Pale Moon browser

Moderator: satrow

Dariush
Apollo supporter
Apollo supporter
Posts: 45
Joined: 2016-04-08, 16:50

Preference to disable favicon animations

Unread post by Dariush » 2018-12-06, 14:56

As is common knowledge, animated favicons are pointless (in most cases) resource hogs. There's a 17-year-old issue on Mozilla without any resolution, so I'm not the only one wanting to see an option to have them static.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 24461
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Preference to disable favicon animations

Unread post by Moonchild » 2018-12-06, 14:59

So, you're saying a 16x16 animated favicon is a resource hog? :)
"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

Dariush
Apollo supporter
Apollo supporter
Posts: 45
Joined: 2016-04-08, 16:50

Re: Preference to disable favicon animations

Unread post by Dariush » 2018-12-06, 15:04

When I have 20 tabs open of a site with it and this results in idle CPU usage of 5% (~50% of one core)? Yes. :)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 24461
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Preference to disable favicon animations

Unread post by Moonchild » 2018-12-06, 15:05

If the animation of images bothers you, use Shift+Esc in Pale Moon to stop everything (including animated images and background network traffic)
"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

Dariush
Apollo supporter
Apollo supporter
Posts: 45
Joined: 2016-04-08, 16:50

Re: Preference to disable favicon animations

Unread post by Dariush » 2018-12-06, 15:09

Doesn't work (in new profile) and even if it did, this would be a pretty suboptimal workaround, since I want _only_ animated favicons and no other images stopped.
Last edited by Dariush on 2018-12-06, 15:12, edited 2 times in total.

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1780
Joined: 2015-09-03, 19:47
Location: UA
Contact:

Re: Preference to disable favicon animations

Unread post by JustOff » 2018-12-06, 15:16

In fact, this is a very serious and annoying problem. Personally, I even had to completely filter out with uBlock a few of these favicons from sites that I visit more or less often, because they cannot be stopped using Shft + Esc or in any other way.
Here are the add-ons I made in a spare time. That was fun!

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 24461
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Preference to disable favicon animations

Unread post by Moonchild » 2018-12-06, 15:16

Okay, I guess it's possible to do this by using a cropping function to create a new image to use instead of the actual favicon, since that will effectively take only one frame.
"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

Dariush
Apollo supporter
Apollo supporter
Posts: 45
Joined: 2016-04-08, 16:50

Re: Preference to disable favicon animations

Unread post by Dariush » 2018-12-06, 15:22

JustOff wrote:I even had to completely filter out with uBlock a few of these favicons from sites that I visit more or less often, because they cannot be stopped using Shft + Esc or in any other way.
I actually tried this, but it didn't work. I get the uBlock warning page "disable temporarily/permanently" when I manually view the image, but it doesn't affect it being used as the favicon on the site. Could you elaborate what you've done to achieve this?

User avatar
JustOff
Localization Coordinator
Localization Coordinator
Posts: 1780
Joined: 2015-09-03, 19:47
Location: UA
Contact:

Re: Preference to disable favicon animations

Unread post by JustOff » 2018-12-06, 15:32

Off-topic:
Dariush wrote:
JustOff wrote:I even had to completely filter out with uBlock a few of these favicons
I actually tried this, but it didn't work [..] Could you elaborate what you've done to achieve this?
For example, I use the following rule for Dynamic filtering:

Code: Select all

behind-the-scene http://westsat.net.ua/favicon.ico * block
And after that, you need to wipe the browser cache.
Here are the add-ons I made in a spare time. That was fun!

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 24461
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Preference to disable favicon animations

Unread post by Moonchild » 2018-12-06, 20:35

Tracking this in Issue #899 (UXP).
I have a good idea how to approach this and should have a patch soon enough.
"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne
Image

Dariush
Apollo supporter
Apollo supporter
Posts: 45
Joined: 2016-04-08, 16:50

Re: Preference to disable favicon animations

Unread post by Dariush » 2019-01-17, 23:51

I tested the new preference and it doesn't work*. On a clean profile most sites (Google and this site are the only exceptions among a dozen tested) simply get no favicon at all. On my main profile I have an addon called TooManyTabs which temporarily changes favicon when I mouse over a tab and back on mouseout, and when I do so on a site with a normally animated favicon (that doesn't initially get a favicon when this pref is enabled), the normal animated favicon loads upon the mouseout event.

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1450
Joined: 2012-08-19, 20:32

Re: Preference to disable favicon animations

Unread post by back2themoon » 2019-01-18, 10:10

Please also consider disabling the loading/spinning wheel icon with this option (it is technically an animated icon, right?) or create an additional option for it.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

User avatar
jars_
Lunatic
Lunatic
Posts: 264
Joined: 2016-12-27, 00:12

Re: Preference to disable favicon animations

Unread post by jars_ » 2019-01-18, 12:55

disabling the loading/spinning wheel icon
userChrome.css

Code: Select all

/* replace animated icon in loading tab(s)  */
.tab-throbber,
.tab-throbber[progress] {
	-moz-appearance: none !important;
	list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACH0lEQVQ4jaWT30tTcRjGD3x3k+2wlC66KIIuuhmDKAJ3ZgvpIioZFC4myzMKRrmi2s7xuMomwaxmHrS66MeFg7aBP4652UQ33dTacYZpzGFF2Wx3/gNOvdnTRVHONlB64L17eXg+z8tLUZuk5cgywylQbLQcWd68/48YToGpzGu8XexF/Ksfo1+8GP70EoPpp2A4BbZkkFwKoj1Wj9ZILe4OnYIQ1GMg1bEdgxDEOIv7USNcQ6chhI5D+ti2vQRinC1I0DPbWtyA4RXyxqJ0Almdygzg0ZgZ7pFzaA6fxM3+o/DPtEAnkNWCYnmFTFU6iNXoOZhLLEqYXhpEMhNE4rsET8wE96gBzSMnYPKrEJhrgX/WBf8HF7xJJ87c27NS6SDW3ymI1OSrWYt+7kLnxEWIk2a0TRrhjDBg+8tR17cTdb1lMPUo8Sx5BdYXR9YYjvT9wVDbKCXDk+zzcUdemn+A9nfnwUcPoT6khCVMwxKmwb6h4ZENcA/X5nWNJKu2UcqCLrR2SnNMKMsF0x14PG2GJUzjUkQF65gK1tgu3JEPwztnh75pR05rpzRFL/CrjwMrgXknrsb24vJEOWxyBbj3+9H9zYmzD/f95S55Rp5IN3xV610LDWhIVOD6zG4EflyDo1u/XiVs4C4ltY1S6gSSFccv5MVUDToXDHgis3mdUIS7lLR2SlN9i869SvHwpRtRfZsuzV3q87Y6/23wE2RPdMtvZh3mAAAAAElFTkSuQmCC") !important;
	}


User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1450
Joined: 2012-08-19, 20:32

Re: Preference to disable favicon animations

Unread post by back2themoon » 2019-01-18, 13:33

Thanks, I wonder what that massive string actually means. I already use the one below successfully, just thought it'd be a nice customisation option to have natively (and is semi-related to this thread).

Code: Select all

/* Disable tab spinning wheel */
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    .tab-throbber {
      list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png") !important;
    }
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides
How to download videos

Windows 10 Pro • Pale Moon x64 • Interlink x86 • Emsisoft Anti-Malware

User avatar
Isengrim
Keeps coming back
Keeps coming back
Posts: 968
Joined: 2015-09-08, 22:54
Location: 127.0.0.1
Contact:

Re: Preference to disable favicon animations

Unread post by Isengrim » 2019-01-18, 13:39

Off-topic:
back2themoon wrote:Thanks, I wonder what that massive string actually means.
It's a data URI, which is a way to define a raw image (or other data) with a URL. Basically, this will replace the spinning icon (or "throbber") with the un-animated download icon.
Linux Mint 19.2 Cinnamon (64-bit), Windows 7 (64-bit), Windows 10 build 1803 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

Locked