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: Indalecio

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

Postby Moonchild » Wed Jan 29, 2014 11:03 pm

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 Mar 08, 2014 5:01 am, edited 5 times in total.
Reason: Added alignment options, changed post layout.
Please do not send me private messages for anything that could also be posted in the public boards.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 8937
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

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

Postby helloimustbegoing » Mon Apr 21, 2014 9:22 pm

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
helloimustbegoing
Lunatic
Lunatic
 
Posts: 343
Joined: Thu Jun 28, 2012 1:20 am
Location: America

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

Postby Moonchild » Mon Apr 21, 2014 9:32 pm

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.
Please do not send me private messages for anything that could also be posted in the public boards.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 8937
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

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

Postby j_rivers » Wed Jun 18, 2014 3:22 pm

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
j_rivers
Newbie
Newbie
 
Posts: 4
Joined: Sun Sep 15, 2013 12:18 am
Location: Beijing


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

Who is online

Users browsing this forum: No registered users and 12 guests