userChrome.css
Code: Select all
/* set default namespace to XUL -- it's required for correct functioning */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Remove things I don't use */
/* File Menu */
menuitem[label="New Window"],
menuitem[label="New Tab"],
menuitem[label="Open Location..."],
menuitem[label="Close Window"],
menuitem[label="Close Tab"],
menuitem[label="Close"],
menuitem[label="Send Link..."],
menuitem[label="Send Link..."] + menuseparator,
menuitem[label="Import..."],
menuitem[label="Import..."] + menuseparator,
menuitem[label="Work Offline"],
/* View Menu */
menuitem[label="Stop"],
menuitem[label="Reload"] + menuseparator,
menuitem[label="Page Source"],
/* Go Menu */
menuitem[label="Back"],
menuitem[label="Forward"],
menuitem[label="Home"],
menuitem[label="Home"] + menuseparator,
/* Tools Menu */
menuitem[label="Web Search"],
menuitem[label="Web Search"] + menuseparator,
menuitem[label="Read Mail (0 new)"],
menuitem[label="Check E-mail"],
menuitem[label="New Message..."],
menuitem[label="New Message..."] + menuseparator,
/* Help Menu */
menuitem[label="For Internet Explorer Users"],
menuitem[label="For Internet Explorer Users"] + menuseparator,
menuitem[label="Promote Firefox"],
menuitem[label="Promote Firefox"] + menuseparator
{display:none !important;}
/* Webpage Context */
#context-savepage,
/* Link Context */
#context-openlink,
#context-openlinkintab,
#context-bookmarklink,
#context-sep-open, /* Separator Below "Open Link in New Tab" */
#context-sep-copylink,
/* Bookmarks Context */
#bookmarks-context-menu menuitem[label="Expand"],
#bookmarks-context-menu menuitem[label="Open"],
#bookmarks-context-menu menuitem[label="Open in New Window"],
#bookmarks-context-menu menuitem[label="Open in New Tab"],
#bookmarks-context-menu menuitem[label="Open in New Tab"] + menuseparator,
#bookmarks-context-menu menuitem[label="New Separator"],
#bookmarks-context-menu menuitem[label="Sort By Name"],
#bookmarks-context-menu menuitem[label="Sort By Name"] + menuseparator,
/* Image Context */
#context-copyimage-contents,
#context-sendimage,
#context-setWallpaper,
#context-blockimage
{display:none !important;}
/* Hide Unavailable Context Options */
#contentAreaContextMenu menuitem[disabled="true"] {display: none;}
/* Change color of active tab */
tab{ -moz-appearance: none !important;}
tab[selected="true"] {
background-color: rgb(222,218,210) !important;
color: black !important;}
/* Change color of passive tabs */
tab:not([selected="true"]) {-moz-appearance: none !important;
background-color: rgb(170,170,170) !important;
padding-left: 2% !important; padding-right: 2% !important;
-moz-opacity: 0.8 !important;}
/* Italicize the title of unread tabs */
#content tab:not([selected]) {
font-style: italic !important;}
/* Remove Close Button in Tabbar */
.tabbrowser-tabs .tabs-closebutton {display:none !important;}
/* Remove the space (and strip) between tab and the close button */
.tabbrowser-tabs .tabs-right {display:none !important;}
/* Remove the tabbar bottom border */
.tabbrowser-strip {border-bottom:none !important;}
userContent.css
Code: Select all
/* Add a @ in front of mailto: links */
a[href^="mailto:"]:before{content: "@ "; color: red; font-weight: bold; !important;}
/* Add .PDF after links pointing to a PDF file */
a[href$=".pdf"]:after{content: ".PDF"; color: red; font-weight: bold; !important;}
/* MozillaZine Forums Hack */
div#masthead + table td#sidebar {
position:fixed !important;
right: 2px !important;
top: 55px !important;}
div#masthead + table td#main {
margin-right: 180px !important;
margin-left: 2px !important;
width: auto !important;
display: block !important;}
td#sidebar a[href="http://www.big-boards.com/"],
td#sidebar a[href="http://www.mozillazine.org/"] {
display: none !important;}
div#masthead + table td#sidebar .sidebar {
margin-bottom: 2px !important;}
user.js
Code: Select all
// Performance related
// Wait 0,5 second before staring to render page
user_pref("nglayout.initialpaint.delay", 500);
// Enable reflows during rendering
user_pref("content.notify.ontimer", true);
// Make 5 reflows during rendering
user_pref("content.notify.backoffcount", 5);
// Time between reflows is 0,4 second
user_pref("content.notify.interval", 400000);
// Interrupt parsing after 1,2 seconds
user_pref("content.max.tokenizing.time", 1200000);
// Enable HTTP 1.1 pipelining (for non-proxy)
user_pref("network.http.pipelining", true);
// Maximum number of pipelined requests
user_pref("network.http.pipelining.maxrequests", 8);
// Maximum number of HTTP connections
user_pref("network.http.max-connections", 48);
// Maximum number of HTTP connections per server
user_pref("network.http.max-connections-per-server", 16);
// Maximum number of persistent HTTP connections per server
user_pref("network.http.max-persistent-connections-per-server", 8);
// Disable IPv6 name lookups
user_pref("network.dns.disableIPv6", true);
// Drop FTP connection in 10 minutes
user_pref("network.ftp.idleConnectionTimeout", 600);
// Disable prefetching
user_pref("network.prefetch-next", false);
// Goto low frequency interrupt mode after 0,5 seconds
user_pref("content.switch.threshold", 500000);
// Preferences
// Set google.com homepage
user_pref("browser.startup.homepage", "http://www.google.com");
// Throbber points to about:config
user_pref("browser.throbber.url", "about:config");
// Disable sound when Find in This Page... fails to find search phrase
user_pref("accessibility.typeaheadfind.enablesound", false);
// Don't flash Find Toolbar when search phrase is found
user_pref("accessibility.typeaheadfind.flashBar", 0);
// Don't open Download Manager window when a download begins
user_pref("browser.download.manager.showWhenStarting", false);
// Remove entries from Download Manager upon successful download
user_pref("browser.download.manager.retention", 0);
// Always ask where to save downloaded files
user_pref("browser.download.useDownloadDir", false);
// Open links from external applications in new tabs
user_pref("browser.link.open_external", 3);
// Open links that would open a new window in a new tab
user_pref("browser.link.open_newwindow", 3);
// Don't replace existing tabs when opening a bookmarks folder in tabs
user_pref("browser.tabs.loadFolderAndReplace", false);
// New tabs from bookmarks load in background
user_pref("browser.tabs.loadBookmarksInBackground", true);
// Open pages that would open a new window in a new tab
user_pref("browser.tabs.loadDivertedInBackground", true);
// Accept no cookies
user_pref("network.cookie.cookieBehavior", 2);
// Ask how long to keep cookies
user_pref("network.cookie.lifetimePolicy", 1);
// Don't read deprecated cookie preferences
user_pref("network.cookie.prefsMigrated", true);
// JavaScript isn't allowed to change Status Bar
user_pref("dom.disable_window_status_change", true);
// JavaScript isn't allowed to change images
user_pref("dom.disable_image_src_set", true);
// JavaScript isn't allowed to change focus
user_pref("dom.disable_window_flip", true);
// JavaScript isn't allowed to move or resize windows
user_pref("dom.disable_window_move_resize", true);
// JavaScript isn't allowed to alter context menus
user_pref("dom.event.contextmenu.enabled", false);
// Dislay error messages on pages
user_pref("browser.xul.error_pages.enabled", true);
// Show full paths to plugins in about:plugins
user_pref("plugin.expose_full_path", true);
// Disable Java
user_pref("security.enable_java", false);
// Don't warn when entering secure website
user_pref("security.warn_entering_secure", false);
// Don't warn when leaving secure website
user_pref("security.warn_leaving_secure", false);
// Don't warn when submitting a form to insecure page
user_pref("security.warn_submit_insecure", false);
// Don't warn when entering a mixed security page
user_pref("security.warn_viewing_mixed", false);
// Disable Password Manager
user_pref("signon.rememberSignons", false);
// Mouse can wonder 10 pixels off when dragging Scroll Bar
user_pref("slider.snapMultiplier", 10);
// Open submenus in 50 milliseconds
user_pref("ui.submenuDelay", 50);
// Only remember visited pages for 4 days
user_pref("browser.history_expire_days", 4);
// Don't check if browser is default
user_pref("browser.shell.checkDefaultBrowser", false);