为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Bookmark folders icon

  • 4 个回答
  • 1 人有此问题
  • 11 次查看
  • 最后回复者为 THESERG

more options

Before Firefox 37, to set a custom icon for bookmarks *folder* I was using this trick in userChrome.css:

.bookmark-item[container="true"][label="Wikipedia"] { list-style-image: url('file:///C:/FirefoxPortable/Icons/wikipedia.ico') !important; -moz-image-region: rect(0px 16px 16px 0px) !important; }

However, after the upgrade to FF 37, it stopped working. How to fix it?

Thanks

Before Firefox 37, to set a custom icon for bookmarks *folder* I was using this trick in userChrome.css: .bookmark-item[container="true"][label="Wikipedia"] { list-style-image: url('file:///C:/FirefoxPortable/Icons/wikipedia.ico') !important; -moz-image-region: rect(0px 16px 16px 0px) !important; } However, after the upgrade to FF 37, it stopped working. How to fix it? Thanks

被采纳的解决方案

This add-on did the trick for me: Bookmark Favicon Changer

定位到答案原位置 👍 0

所有回复 (4)

more options

Did you verify that the icon is still there by opening the icon in a Firefox tab?

Did you check in the DOM Inspector that Firefox is using the userChrome.css and finds this rule?

Does other code in the userChrome.css file still work?

Any errors in the Browser Console (Firefox/Tools > Web Developer) about this?

more options

Hi cor-el, thanks for your reply

Icon(s) is/are there, I checked this by copy-pasting url.

How to check whether userChrome.css is used?

Here are the errors from the console: Could not read chrome manifest 'file:///C:/FirefoxPortable/App/firefox/chrome.manifest'. Could not read chrome manifest 'file:///C:/FirefoxPortable/Data/profile/extensions/hunspell-ru@dictionaries.addons.mozilla.org/chrome.manifest'. Could not read chrome manifest 'file:///C:/FirefoxPortable/App/firefox/browser/extensions/%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D/chrome.manifest'. No chrome package registered for chrome://smartbookmarksbar/skin/global/base.css No chrome package registered for chrome://smartbookmarksbar/skin/global/mouseover-off.css No chrome package registered for chrome://smartbookmarksbar/skin/global/hideFoldersNames-off.css No chrome package registered for chrome://smartbookmarksbar/skin/global/hideNoFaviconNames-off.css No chrome package registered for chrome://smartbookmarksbar/skin/global/spacing-3.css No chrome package registered for chrome://smartbookmarksbar/skin/global/autohideBar-off.css No chrome package registered for chrome://smartbookmarksbar/skin/themes/firefoxDefault.css No chrome package registered for chrome://smartbookmarksbar/skin/themes/firefoxDefault_mouseover-off.css No chrome package registered for chrome://smartbookmarksbar/skin/themes/firefoxDefault_mouseover-off_hideNoFaviconNames-off.css No chrome package registered for chrome://smartbookmarksbar/skin/global/base.css No chrome package registered for chrome://smartbookmarksbar/skin/global/mouseover-off.css No chrome package registered for chrome://smartbookmarksbar/skin/global/hideFoldersNames-off.css No chrome package registered for chrome://smartbookmarksbar/skin/global/hideNoFaviconNames-off.css No chrome package registered for chrome://smartbookmarksbar/skin/global/spacing-3.css No chrome package registered for chrome://smartbookmarksbar/skin/global/autohideBar-off.css No chrome package registered for chrome://smartbookmarksbar/skin/themes/firefoxDefault.css No chrome package registered for chrome://smartbookmarksbar/skin/themes/firefoxDefault_mouseover-off.css No chrome package registered for chrome://smartbookmarksbar/skin/themes/firefoxDefault_mouseover-off_hideNoFaviconNames-off.css JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:344:1634 No chrome package registered for chrome://forcecontenttype/chrome/skin/forcecontenttype.css Force Content-Type: observer added S4E Calling updateWindow: {985837b9-7da5-4d18-9543-53a78b83ad56} Key event not available on some keyboard layouts: key="j" modifiers="control alt shift" browser.xul Key event not available on some keyboard layouts: key="j" modifiers="control alt" browser.xul Key event not available on some keyboard layouts: key="p" modifiers="accel,alt" browser.xul Key event not available on some keyboard layouts: key="c" modifiers="accel,alt" browser.xul [ABE WAN] Detected WAN IP 24.16.21.189 JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:343:198 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ utils.js:37:0 JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:345:1634 not well-formed messages.json:1:1 JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:344:209 push1.push.hello.firefox.com : server does not support RFC 5746, see CVE-2009-3555 <unknown> mutating the Prototype of an object will cause your code to run very slowly; instead create the object with the correct initial Prototype value using Object.create sync.js:112:4 1428164415567 Services.HealthReport.HealthReporter WARN No prefs data found. This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.[Learn More] 1055701 JavaScript 1.6's for-each-in loops are deprecated; consider using ES6 for-of instead ScriptSurrogate.js:344:209 "JQMIGRATE: Logging is active" common-min.932386b591b6.js:5:29009 about:blank : Unable to run script because scripts are blocked internally. <unknown> "JQMIGRATE: jQuery.browser is deprecated" common-min.932386b591b6.js:5:29350 console.trace(): common-min.932386b591b6.js:5 migrateWarn() common-min.932386b591b6.js:5 migrateWarnProp/<.get() common-min.932386b591b6.js:5 <anonymous> questions-min.feba4198166a.js:3 x.Callbacks/c() common-min.932386b591b6.js:3 x.Callbacks/p.fireWith() common-min.932386b591b6.js:3 .ready() common-min.932386b591b6.js:3 q() common-min.932386b591b6.js:3

more options

Nothing unusual there that is about the userChrome.css file. I do see some errors with extensions like 'smartbookmarksbar' however that could be involved.

Did you try to disable all extensions to check for possible issues? Note that Safe Mode disables userChrome.css as well.

more options

选择的解决方案

This add-on did the trick for me: Bookmark Favicon Changer