How do I disable or align the title in 24.3.0 and later?

Frequently Asked Questions about the Pale Moon browser and their answers.

Moderator: satrow

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22116
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

How do I disable or align the title in 24.3.0 and later?

Unread postby Moonchild » Wed, 29 Jan 2014, 23:03

This post covers 2 similar scenarios:
  1. You want to disable the display of the title in Pale Moon
  2. You want to change the alignment of the title in Pale Moon

Since the title code is potentially a problem for people using extensions that put other elements in the title bar (a side effect of it having been wasted space for a very long time in Firefox), you may want to disable display of the title in the title bar that was added to Pale Moon in version 24.3.0.
Alignment of the title also seems to be very much a personal preference that differs per user, and you may want to have the title aligned differently than your OS does by default.

Please note that these options only apply if you are using the Pale Moon application button. If you are using the classic menu, you will have a standard window layout that will not be influenced by these settings and will always use the settings determined by your operating system.

This is really simple to do, considering the title is controlled by simple CSS statements.

  1. Create or open the browser's userChrome.css file.
    You can find this in the Chrome folder under your profile
    Windows XP: C:\Documents and Settings\[username]\Application Data\Moonchild Productions\Pale Moon\Profiles\[profilename]\Chrome
    Windows Vista, 7 or 8: C:\Users\[username]\AppData\Roaming\Moonchild Productions\Pale Moon\Profiles\[profilename]\Chrome
    If the Chrome folder does not yet exist, create it!
    By default, these folders may have example userChrome and userContent files in them. You can edit the example css file, but make sure that you save it with the name userChrome.css and not with any other name, or it won't work.
    You can also quickly find your profile by going to Help -> Troubleshooting information, then clicking the "Open Folder" button under Profile.
  2. Make sure the userChrome.css file has the following @namespace line at the top:

    Code: Select all

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  3. Add specific code below this @namespace line to make changes to the UI (see below)
  4. Save the file, and restart Pale Moon

How do I disable the title?
Add the following code below the @namespace line:

Code: Select all

#main-window::after {
  opacity: 0 !important;
}


How do I align the title differently?
To align left, add the following code below the @namespace line:

Code: Select all

#main-window::after {
  text-align: left !important;
}

To align centered, add the following code below the @namespace line:

Code: Select all

#main-window::after {
  text-align: center !important;
}

To align right, add the following code below the @namespace line:

Code: Select all

#main-window::after {
  text-align: right !important;
}
Last edited by Moonchild on Sat, 08 Mar 2014, 05:01, edited 5 times in total.
Reason: Added alignment options, changed post layout.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

Image

User avatar
helloimustbegoing
Board Warrior
Board Warrior
Posts: 1886
Joined: Thu, 28 Jun 2012, 01:20

Re: How do I disable or align the title in 24.3.0 and later?

Unread postby helloimustbegoing » Mon, 21 Apr 2014, 21:22

Should this also work in PM for Linux? I tried it and it didn't work. I know the userChrome file itself is working, because I also have the script to remove the bookmark star from the address bar, and that is working.

I am trying to left-aligned the title.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22116
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: How do I disable or align the title in 24.3.0 and later?

Unread postby Moonchild » Mon, 21 Apr 2014, 21:32

helloimustbegoing wrote:Should this also work in PM for Linux? I tried it and it didn't work. I know the userChrome file itself is working, because I also have the script to remove the bookmark star from the address bar, and that is working.

I am trying to left-aligned the title.


It doesn't apply to Linux. The title this applies to is for the custom window chrome with the Pale Moon button on Windows only. Title alignment on other operating systems depend on the title alignment as defined in the system.
Last edited by Moonchild on Wed, 10 Jan 2018, 13:16, edited 1 time in total.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

Image

j_rivers

Re: How do I disable or align the title in 24.3.0 and later?

Unread postby j_rivers » Wed, 18 Jun 2014, 15:22

This really helps , I jumped back to firefox because the black title caption. After firefox 29 ruins the entire UI , I use palemoon again. ;)

ccc.jpg

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1177
Joined: Sun, 19 Aug 2012, 20:32

Re: How do I disable or align the title in 24.3.0 and later?

Unread postby back2themoon » Tue, 20 Sep 2016, 22:41

Is it possible to use bold for the title bar font? I seem to remember it like that in earlier Windows version.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides

Windows 10 Pro - Pale Moon x64 - FossaMail x64 - Emsisoft Anti-Malware

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22116
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: How do I disable or align the title in 24.3.0 and later?

Unread postby Moonchild » Tue, 20 Sep 2016, 23:35

back2themoon wrote:Is it possible to use bold for the title bar font? I seem to remember it like that in earlier Windows version.

You can use any styling in CSS that you prefer in the style block. Including font-weight, text shadows, colors, etc.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

Image

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1177
Joined: Sun, 19 Aug 2012, 20:32

Re: How do I disable or align the title in 24.3.0 and later?

Unread postby back2themoon » Wed, 21 Sep 2016, 09:54

Thanks but I couldn't do it, after searching a bit. Is

font-weight: bold; - or

{
font: bold;
]


to be added somewhere? Tried various combinations with no success.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides

Windows 10 Pro - Pale Moon x64 - FossaMail x64 - Emsisoft Anti-Malware

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22116
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: How do I disable or align the title in 24.3.0 and later?

Unread postby Moonchild » Wed, 21 Sep 2016, 10:37

You have to add !important to it, or it will not override.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

Image

User avatar
back2themoon
Board Warrior
Board Warrior
Posts: 1177
Joined: Sun, 19 Aug 2012, 20:32

Re: How do I disable or align the title in 24.3.0 and later?

Unread postby back2themoon » Wed, 21 Sep 2016, 22:30

Perfect, thanks for the help. Please also let me know if you've found an easy way to optionally remove the PM text bit from the title bar. Must be more complicated since it comes from the OS.
Safe Mode / clean profile info: Help/Restart in Safe Mode
Information to include when asking for support - How to apply user agent overrides

Windows 10 Pro - Pale Moon x64 - FossaMail x64 - Emsisoft Anti-Malware


Return to “Frequently Asked Questions (F.A.Q.)”

Who is online

Users browsing this forum: No registered users and 1 guest