X
點擊此處開啟此網站的行動版。

技術支援討論區

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

已張貼

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

額外的系統細節

應用程式

  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

更多資訊

提出問題者

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

''jscher2000 [[#answer-1145739|said]]'' <blockquote> ''Foxwod [[#answer-1145737|said]]'' <blockquote> I don't see in the Restore Session page where it looks for css. </blockquote> 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. </blockquote> Check out the 2 screenshots. The first is yours. Then mine. My page asks for common.css

提出問題者

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

''jscher2000 [[#answer-1145788|said]]'' <blockquote> ''Foxwod [[#answer-1145755|said]]'' <blockquote> Ok, I found this on the Restore Sessions page. So do I need to use aboutSessionRestore.css ? </blockquote> 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: <pre> #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; } </pre> ''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.'' </blockquote> I was trying domain and url

提出問題者

I'm using

body { background-color: red; }

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

I'm using body { background-color: red; } for a test. Nothing. I don't think it's reading the chrome file.

提出問題者

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.

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 於 修改

jscher2000
  • Top 10 Contributor
8773 個解決方法 71729 個答案

選擇的解決方法

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.

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.

提出問題者

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.

''jscher2000 [[#answer-1145839|said]]'' <blockquote> 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. </blockquote> 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 於 修改

提出問題者

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.

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.
jscher2000
  • Top 10 Contributor
8773 個解決方法 71729 個答案

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

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