cancel
Showing results for 
Search instead for 
Did you mean: 

weird square favicon

SOLVED
Highlighted
New User

weird square favicon

Hello. I have Firefox 8 and some pages have weird square favicon, because they haven't their own. For example: http://www.metro.sk/public/76866 Can you fix it? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Site Moderator

Re: weird square favicon

You're welcome.

I had noticed that transparent block as well and this question was a good opportunity to see if there was a solution possible. A quick comparison and check revealed that the old folder icon is still present.

This code adds them also for bookmarks on the Bookmarks Toolbar.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

/* default favicon */
#tabbrowser-tabs .tab-icon-image:not(src),
.sidebar-placesTreechildren::-moz-tree-image(leaf),
.bookmark-item:not(src):not([container]):not([type]){
 list-style-image: url("chrome://global/skin/icons/folder-item.png")!important;
 -moz-image-region: rect(0px,16px,16px,0px)!important;
}
.bookmark-item[container]:not([livemark]):not([query]){
 list-style-image: url("chrome://global/skin/icons/folder-item.png")!important;
 -moz-image-region: rect(0,32px,16px,16px)!important;
}

.sidebar-placesTreechildren::-moz-tree-image(title,container,livemark),
.bookmark-item[container][livemark]{
 list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png")!important;
 -moz-image-region:auto!important;
}
.sidebar-placesTreechildren::-moz-tree-image(title,livemarkItem),
.bookmark-item[container][livemark] .bookmark-item{
  list-style-image: url("chrome://browser/skin/places/livemark-item.png")!important;
 -moz-image-region: rect(0px,16px,16px,0px)!important;
}
.sidebar-placesTreechildren::-moz-tree-image(title,livemarkItem,visited),
.bookmark-item[container][livemark] .bookmark-item[visited]{
 -moz-image-region: rect(0px,32px,16px,16px)!important;
}
29 REPLIES
Support Forum Moderator

Re: weird square favicon

Sorry, that's the new default image for a missing favicon. There's nothing to "fix".

New User

Re: weird square favicon

So, it's very ugly image.

Site Moderator

Re: weird square favicon

Try to add this code to userChrome.css below the @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#page-proxy-favicon:not(src), .tab-icon-image:not(src) {
list-style-image: url("chrome://global/skin/icons/folder-item.png")!important;
-moz-image-region: rect(0px, 16px, 16px, 0px)!important;
}
New User

Re: weird square favicon

thanks cor-el!

the ugly default favicon is just completely hideous...

adding the code you recommended above worked perfectly to banish it away! =)

p.s. I am using Fx 7.0.1 on a Mac running Lion.

Site Moderator

Re: weird square favicon

You're welcome.

I had noticed that transparent block as well and this question was a good opportunity to see if there was a solution possible. A quick comparison and check revealed that the old folder icon is still present.

This code adds them also for bookmarks on the Bookmarks Toolbar.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

/* default favicon */
#tabbrowser-tabs .tab-icon-image:not(src),
.sidebar-placesTreechildren::-moz-tree-image(leaf),
.bookmark-item:not(src):not([container]):not([type]){
 list-style-image: url("chrome://global/skin/icons/folder-item.png")!important;
 -moz-image-region: rect(0px,16px,16px,0px)!important;
}
.bookmark-item[container]:not([livemark]):not([query]){
 list-style-image: url("chrome://global/skin/icons/folder-item.png")!important;
 -moz-image-region: rect(0,32px,16px,16px)!important;
}

.sidebar-placesTreechildren::-moz-tree-image(title,container,livemark),
.bookmark-item[container][livemark]{
 list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png")!important;
 -moz-image-region:auto!important;
}
.sidebar-placesTreechildren::-moz-tree-image(title,livemarkItem),
.bookmark-item[container][livemark] .bookmark-item{
  list-style-image: url("chrome://browser/skin/places/livemark-item.png")!important;
 -moz-image-region: rect(0px,16px,16px,0px)!important;
}
.sidebar-placesTreechildren::-moz-tree-image(title,livemarkItem,visited),
.bookmark-item[container][livemark] .bookmark-item[visited]{
 -moz-image-region: rect(0px,32px,16px,16px)!important;
}
New User

Re: weird square favicon

woo hoo! that's even better. thanks =)

New User

Re: weird square favicon

it's work, thanks

New User

Re: weird square favicon

http://pastebin.com/raw.php?i=7f3nB8vT

Made my own attempt at messing with this stuff, starting from cor-el's css as a base.
Not really sure how much superfluous css I copied over since I'm honestly pretty terrible at this stuff, but yeah, it works so far as I can tell; don't think I missed the icon anywhere.

New User

Re: weird square favicon

same problem and whoever said thats default for favicons that dont exist is completely wrong. I built alot of the sites I am having a issue with favicons for and they worked just fine prior to updating to 8.0. once i updated firefox half of my favicons that were there and displaying just fine before are not gone.