Solving a Firefox bookmark dilemma

Quantum Firefox does not allow to change bookmark icons, and there are no effective add-ons to do so. It may happen that Firefox keeps an old bookmark icon (typically a favicon) despite your efforts to update it.

This happened to me. I updated the favicon of my site, it was updated automatically in XUL Firefox but Quantum Firefox refused to change the icon. It showed the correct icon in the tab but the old one in Booksmarks toolbar. If you have a parallel XUL Firefox instance, bookmark sharing does not fix the icons. I have read on the Net that some people have tried to modify Firefox bookmarks databases. I think this is not advisable as the solution is simple, and readily at hand. I was at a loss with how to proceed for a long time but I finally discovered the easy solution. All you need is another browser that shows the right bookmark icon. Choose Export bookmarks in order to create a Netscape Bookmark File (bookmarks.html with <!DOCTYPE NETSCAPE-Bookmark-file-1> in the header), see specification at https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa753582(v=vs.85). Almost all browsers (e.g. Chrome, Edge, etc.) support this import/export option. It stores the icons, and they are correctly retrieved by Quantum Firefox. You can even use your XUL Firefox to export to bookmarks.html as it does not have this lingering favicon bug. This method gets the right (favicon) bookmark icon to show but it has no effect on the icon shown in the tab (as it always shows the current favicon). Import only the bookmark you really need otherwise you may have to do some serious manual bookmark editing afterwards in Manage Booksmarks to delete any additional (duplicate) bookmarks that may have been imported. The bookmarks file can be edited by removing unnecessary entries with a text editor (refer to the above-mentioned specification when doing the editing). You only need one relevant entry of type '<DT><A HREF="{url}" ADD_DATE="{date}" LAST_VISIT="{date}" LAST_MODIFIED="{date}">{title}</A>' embedded in the correct bookmarks file structure.

When filled with actual ICON data, the bookmarks entry looks like this :
<DT><A HREF="https://www.mysite.com/" ADD_DATE="1676364167" LAST_MODIFIED="1676364585" ICON_URI="https://www.mysite.com/favicon.png" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABTVBMVEUAAAAfHx4JCQkAAAEA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LgDqFxF08kI1lQAAAABJRU5ErkJggg==">MySite.com</A>

Lisää kommentti

Kommentteja voi muotoilla käyttämällä yksinkertaista wikisyntaksia.

Samasta asiasta muualla

Takaisinviittausosoite: http://www.lexitec.fi/blog/index.php?trackback/50

Tämän blogimerkinnän kommenttien syöte