Use favicon as taskbar icon

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
MrVicious
New to the forum
New to the forum
Posts: 2
Joined: 2022-11-14, 23:47

Use favicon as taskbar icon

Unread post by MrVicious » 2022-11-14, 23:55

Is there any way to use favicon of current tab as taskbar icon?
I think is pretty cool and i love it for better readability

Blacklab
Keeps coming back
Keeps coming back
Posts: 935
Joined: 2012-06-08, 12:14

Re: Use favicon as taskbar icon

Unread post by Blacklab » 2022-11-15, 14:37

@MrVicious: Please clarify what you are attempting to do?
Yes, you can extract the favicons from most websites; there's lots of 'howto' info available online e.g: https://duckduckgo.com/?q=extract+favic ... 8=1&ia=web
Also several small online and offline utilities/tools that can help manipulate favicons e.g: http://www.getfavicon.org/
What do you mean by use as a 'taskbar icon' ?
Windows and most other OS have 'taskbars'... Pale Moon and most other browsers have 'toolbars' ?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 33306
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Use favicon as taskbar icon

Unread post by Moonchild » 2022-11-15, 15:49

I think they want the application icon on the taskbar to dynamically change based on the favicon of the page that has focus.
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

Blacklab
Keeps coming back
Keeps coming back
Posts: 935
Joined: 2012-06-08, 12:14

Re: Use favicon as taskbar icon

Unread post by Blacklab » 2022-11-15, 18:22

If this is about altering the Pale Moon icon on the Windows taskbar to match the browser's active tab favicon... then I doubt that is possible. This browser/OS 'feature' has been asked for a fair few times over last 10+ years in Windows, Firefox, and other browsers' forums if you look online... all with variations on 'No' as the answer. Taskbar icons are not favicons, they are OS file icons and are defined by the .lnk shortcut or .exe file and therefore this question is probably more about tweaking an OS than tweaking a browser?

Perhaps worth looking into how 'Taskbar Thumbnail Previews' work in Windows 10 & 11?

User avatar
MrVicious
New to the forum
New to the forum
Posts: 2
Joined: 2022-11-14, 23:47

Re: Use favicon as taskbar icon

Unread post by MrVicious » 2022-11-15, 20:01

Nevermind I thought it was possible and there was a configuration I wasn't seeing

User avatar
Kris_88
Lunatic
Lunatic
Posts: 426
Joined: 2021-01-26, 11:18

Re: Use favicon as taskbar icon

Unread post by Kris_88 » 2022-11-18, 17:43

This can be done, at least for Windows. This is an interesting task ...

User avatar
Kris_88
Lunatic
Lunatic
Posts: 426
Joined: 2021-01-26, 11:18

Re: Use favicon as taskbar icon

Unread post by Kris_88 » 2022-11-22, 18:56

I made this add-on...
Indeed, it looks good.
scr1.png

User avatar
Kris_88
Lunatic
Lunatic
Posts: 426
Joined: 2021-01-26, 11:18

Re: Use favicon as taskbar icon

Unread post by Kris_88 » 2022-11-29, 03:16


User avatar
tellu-white
Moon lover
Moon lover
Posts: 76
Joined: 2022-03-08, 22:02

Re: Use favicon as taskbar icon

Unread post by tellu-white » 2022-11-29, 13:03

@Kris_88

Great job! However, there is a small problem: it doesn't work for favicons with the svg extension. For example, the page https://html.spec.whatwg.org/multipage/syntax.html has the favicon https://resources.whatwg.org/logo.svg but it does not appear in the taskbar.

User avatar
Kris_88
Lunatic
Lunatic
Posts: 426
Joined: 2021-01-26, 11:18

Re: Use favicon as taskbar icon

Unread post by Kris_88 » 2022-11-29, 15:36

tellu-white wrote:
2022-11-29, 13:03
Great job! However, there is a small problem: it doesn't work for favicons with the svgar in the taskbar.
Thank you!

Probably there is a browser bug when drawing svg to canvas.
https://bugzilla.mozilla.org/show_bug.cgi?id=700533
https://bug700533.bmoattachments.org/at ... id=9270639
There is a workaround, but I do not like the proposed solution. I'll think about what I can do...

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 33306
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Use favicon as taskbar icon

Unread post by Moonchild » 2022-11-29, 15:52

I'll keep an eye on that bug in case Moz comes up with a consensus-based solution.
I'm guessing that in the meantime you should just set a fixed, acceptable size for the SVG/Canvas to be used, similar to what we do with favicons in tabs?
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

User avatar
Kris_88
Lunatic
Lunatic
Posts: 426
Joined: 2021-01-26, 11:18

Re: Use favicon as taskbar icon

Unread post by Kris_88 » 2022-11-29, 15:59

Moonchild wrote:
2022-11-29, 15:52
I'm guessing that in the meantime you should just set a fixed, acceptable size for the SVG/Canvas to be used, similar to what we do with favicons in tabs?
Yes, I tried to do this. Indeed, the <img> is displayed correctly if you insert it into the DOM. But drawing to canvas does not work anyway.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4197
Joined: 2015-12-09, 15:45
Contact:

Re: Use favicon as taskbar icon

Unread post by moonbat » 2022-12-01, 03:32

Tested it on Linux - after displaying the Windows only warning, it should ideally uninstall itself.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Kris_88
Lunatic
Lunatic
Posts: 426
Joined: 2021-01-26, 11:18

Re: Use favicon as taskbar icon

Unread post by Kris_88 » 2022-12-01, 07:17

moonbat wrote:
2022-12-01, 03:32
after displaying the Windows only warning, it should ideally uninstall itself.
It seems to me that this is ideologically incorrect. I adhere to a minimalist concept - the program should do only what is intended for and should not consider itself smarter than the user. If the user has installed, then let him uninstall. )

User avatar
jobbautista9
Contributing developer
Contributing developer
Posts: 627
Joined: 2020-11-03, 06:47
Location: Philippines
Contact:

Re: Use favicon as taskbar icon

Unread post by jobbautista9 » 2022-12-01, 14:12

Btw, it's a good idea to limit which operating system can install your extension to prevent non-Windows users from being able to install your extension in the first place. You can look at how kakusu does it for example in its install.rdf:

Code: Select all

<em:targetPlatform>
	WINNT_x86-msvc
</em:targetPlatform>
<em:targetPlatform>
	WINNT_x86_64-msvc
</em:targetPlatform>
Documentation in UDN: https://udn.realityripple.com/docs/Arch ... _Manifests (targetPlatform section)
Image

あ!

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

My PGP public key (My copy on rw.rs)

Mima avatar by ヘコ=ツン of pixiv: https://www.pixiv.net/en/artworks/34205099

User avatar
Kris_88
Lunatic
Lunatic
Posts: 426
Joined: 2021-01-26, 11:18

Re: Use favicon as taskbar icon

Unread post by Kris_88 » 2022-12-01, 21:36

It's a good idea.
Thank you!

User avatar
Kris_88
Lunatic
Lunatic
Posts: 426
Joined: 2021-01-26, 11:18

Re: Use favicon as taskbar icon

Unread post by Kris_88 » 2022-12-03, 11:46

tellu-white wrote:
2022-11-29, 13:03
it doesn't work for favicons with the svg extension.
v1.3 with a workaround for this bug.
https://addons.palemoon.org/addon/favicons-in-taskbar/

Post Reply