搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

where can you find the embedded Firefox pages? I would like to modify them on my computer.

more options

I want to modify the Session Restore page. Where do I find it to modify?

I want to modify the Session Restore page. Where do I find it to modify?

被選擇的解決方法

Hi Foxwod, common.css is a built-in style sheet internal to the omni.ja file. You want to supplement or override the built-in style sheets with userContent.css.

The only time Firefox should completely ignore a userContent.css file in the chrome folder is if it is starting up in Firefox's "Safe Mode", which definitely is not the typical configuration.

從原來的回覆中察看解決方案 👍 0

所有回覆 (8)

more options

jscher2000 said

Foxwod said
I don't see in the Restore Session page where it looks for css.

I'm not sure Firefox's developer tools show userContent.css in the Style Editor panel unless you first find a styled element in the Inspector and click userContent.css in the Rules pane (example attached). Seems inconsistent.

Check out the 2 screenshots. The first is yours. Then mine. My page asks for common.css

more options

jscher2000 said

Foxwod said
Ok, I found this on the Restore Sessions page. So do I need to use aboutSessionRestore.css ?

That is the name of Firefox's built-in style sheet, but you can't override it by using that name, the @-moz-document rule needs the page address.

You also could try without using the @-moz-document rule at all -- it is very unlikely that these button IDs are used in other pages, so we don't have to worry about styling things we don't want to style.

So then the entire contents of your userContent.css file would be:

  #errorTryAgain { /* Huge Restore Button */
    width: 100px !important;
    height: 50px !important;
    border-radius: 8px !important;
    margin-bottom: 8em !important;
  }
  #errorCancel { /* Small New Session Button*/
    min-width: 30px !important;
    max-width: 30px !important;
    padding: 0 !important;
  }

You know, I just noticed that somehow your @-moz-document rule changed from a url() rule to a domain() rule. So that would definitely explain why the rule wasn't working. Sorry for not noticing that before. I'm going to retroactively edit that into my earlier reply in case anyone else follows this thread in the future.

I was trying domain and url

more options

I'm using

body { background-color: red; }

for a test. Nothing. I don't think it's reading the chrome file.

more options

I'm going to have to give up on this quest. My computers don't look for the chrome file, meaning I'm out of luck.

由 Foxwod 於 修改

more options

選擇的解決方法

Hi Foxwod, common.css is a built-in style sheet internal to the omni.ja file. You want to supplement or override the built-in style sheets with userContent.css.

The only time Firefox should completely ignore a userContent.css file in the chrome folder is if it is starting up in Firefox's "Safe Mode", which definitely is not the typical configuration.

more options

jscher2000 said

Hi Foxwod, common.css is a built-in style sheet internal to the omni.ja file. You want to supplement or override the built-in style sheets with userContent.css. The only time Firefox should completely ignore a userContent.css file in the chrome folder is if it is starting up in Firefox's "Safe Mode", which definitely is not the typical configuration.

YES!!! It works on my second computer. Still no go on the first computer. Will have to check out the differences in the computers when I get home.

由 Foxwod 於 修改

more options

Thanks jscher2000, When I got home I copied the userContent.css file from my second computer to the first I was having problems with. It worked on my first computer. I'm not sure what the problems was, but I would guess a typo.

userContent.css is at: .mozilla/firefox/XXXXXXXX.default/chrome

I used the script you provided. Again, many thanks for putting up with my frustration.

more options

Thank you for reporting back, I'm glad you were able to get it to work.

  1. 1
  2. 2