LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2014, 05:23 PM   #1
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Firefox Australis Classic Theme Restorer and other tweaks


After going through another phase of trying other browsers due to the Australis UI mess, I'm back using Firefox like usual. However, in the process I have learned how to customize Firefox to a greater extent and fix it enough to continue using it. Maybe this will help some people who are also trying to fix the mess. So instead of switching to Pale Moon or Seamonkey, each of which have their downsides, try this first.

1) First you gotta get the Classic Theme Restorer, this does most of the work:
https://addons.mozilla.org/en-US/fir...themerestorer/

Just mess with the options and you should be able to customize it to be like earlier versions or whatever you like. The toolbars are still fully customizable from within Firefox, you don't even need this for these.

Also see:
https://support.mozilla.org/en-US/kb...ke-old-firefox

2) If you still have any issues you can usually fix them with 'userChrome.css'. But to really know what you are doing, you have to know how to use DOM Inspector.
https://addons.mozilla.org/en-US/fir...nspector-6622/

There is a howto here, but it doesn't tell you explicitly what to do:
https://developer.mozilla.org/en-US/..._DOM_Inspector

Here is what I have found out by messing with it:
a) After you install it, go to: Tools -> Web Development -> DOM Inspector
b) When it pops up, click: File -> Inspect Chrome -> 1 (first whatever)
c) Then you have to click: Calendar button (left of Document - DOM Nodes) -> Style Sheets OR Accessible Tree (click back and forth if they don't show up immediately)
Now on the left panel you can see the layout of XUL that makes up the Firefox UI. On the right panel you will see attributes of whatever you click on in the left panel.
Button names are listed on the right side as 'id' and menus as 'class'.
d) Now, in '~/.mozilla/firefox/*.default/chrome/userChrome.css', you can copy an paste button names from DOM inspector. However, you must get rid of quotes '"' and equals '=', and replace 'id' with '#', and 'class' with '.', labels can also be used.

Legend:
# = id = single button
. = class = menu
menu[label=""] = label = anything with a label

Examples:
Code:
id="ctraddon_tabs-closebutton"
becomes
#ctraddon_tabs-closebutton
Code:
class="close-button tabs-closebutton close-icon"
becomes
.close-button, .tabs-closebutton, .close-icon
Code:
label="Close Tab"
becomes
menu[label="Close Tab"]
To disable a button/menu add these to userChrome.css, this is just an example:
Code:
.autocomplete-history-dropmarker {
display: none !important;
}
To permanently enable a button:
Code:
#go-button {
visibility: visible !important;
}
A real-life example, here's what I use:
Code:
/* set default namespace to XUL, this is required */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Remove the drop arrow in the Address bar */
.autocomplete-history-dropmarker {
display: none !important;
}

/* Remove Recently Closed Windows button */
.recentlyClosedWindowsMenu {
display: none !important;
}

/* Remove Restore Previous Session button */
#historyRestoreLastSession {
display: none !important;
}

/* Remove Subscribe to This Page... button */
#subscribeToPageMenupopup, #subscribeToPageMenuitem {
display: none !important;
}

/* Remove Unsorted Bookmarks button and separator */
#menu_unsortedBookmarks, .hide-if-empty-places-result {
display: none !important;
}
That should allow you to fully customize Firefox, and maybe not need to switch to anything else for a while.

Last edited by metaschima; 08-18-2014 at 05:25 PM.
 
Old 08-29-2014, 07:05 PM   #2
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Original Poster
Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Looks like marking a thread solved doesn't take it off the zero reply list.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Want Firefox without Australis? Try Pale Moon LXer Syndicated Linux News 0 08-01-2014 08:51 PM
LXer: Firefox 29 Debuts With New Australis User Interface LXer Syndicated Linux News 9 05-01-2014 04:57 AM
[SOLVED] Classic Macintosh theme for XFCE? penyuan Linux - General 4 11-27-2013 09:49 AM
LXer: Firefox 24: The Road to Australis LXer Syndicated Linux News 0 08-21-2013 04:40 PM
tweaks for mozilla & firefox jolly1701 Linux - General 2 12-06-2004 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration