搜索 | 用户支持

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

详细了解

Change theme without using browser customizer

  • 3 个回答
  • 2 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

I'm wondering if there is a way to change your theme to a custom one (I created a spliced mash-up of a few show stills) without having to upload it to the theme submission page (I don't have any licensing/rights for the images I used), instead swapping out an image file in some offline folder or something?

I'm wondering if there is a way to change your theme to a custom one (I created a spliced mash-up of a few show stills) without having to upload it to the theme submission page (I don't have any licensing/rights for the images I used), instead swapping out an image file in some offline folder or something?

所有回复 (3)

more options

Firefox places lightweight theme images as lightweighttheme-header and lightweighttheme-footer in the Firefox profile folder (xxxxxxxx.default). The images will be resized and copied to the lwtheme folder if you select the theme. You need to delete the files in this folder to make Firefox use a new lightweight theme if you replace the lightweighttheme-header and lightweighttheme-footer yourself. Set the lightweightThemes.usedThemes and lightweightThemes.selectedThemeID prefs to make Firefox use the lightweight theme images. You can change the values of background "accentcolor":"#" and "textcolor":"#" to make the text show properly and possibly change the name and author as well. .... You can modify the name and label property in lightweightThemes.usedThemes as you like. Set these prefs on the about:config page.

lightweightThemes.persisted.footerURL = true
lightweightThemes.persisted.headerURL = true

lightweightThemes.selectedThemeID = 1
lightweightThemes.usedThemes:
[{"id":"1","name":"Unknown","headerURL":"https://addons.cdn.mozilla.net/","footerURL":"https://addons.cdn.mozilla.net/","textcolor":"#","accentcolor":"#","iconURL":"","previewURL":"","author":"Unknown","updateURL":"","version":"1.0","updateDate":"","installDate":""}]

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

more options

I found the xxxxxx.default folder (appdata\roaming) and all of the files you talked about, thanks! One question, and this might sound stupid, but the two prefs you mentioned (lightweightThemes.usedThemes and lightweightThemes.selectedThemeID) are just found in about:config, not in the xxxxxx.default folder, right?

more options

Yes, the prefs I mentioned can be found on the about:config page. Once you created them they will appear in prefx.js after you have closed Firefox.

The lightweightThemes.usedThemes pref is the pref that stores all (up to 50) themes that you can install. Only the images of the currently installed theme are stored in the profile folder. When you select another theme then Firefox will use the data stored in the pref to retrieve the images of the new theme. So you can install a theme and then backup the images and possibly its data from the lightweightThemes.usedThemes pref.