Firefox configuration file essence skills - Taming Firefox

xiaoxiao2021-03-06  38

Taming Firefox: Firefox Profile Essence Tips

Author Blog:

http://blog.9cbs.net/godttj/

About Firefox Many skills require you to edit the Mozilla Firefox configuration file. There are three profiles that you should know: user.js - Userchrome.css - used to change the browser. UserContent.css - Used to change the appearance of the web page. All of these files are plain text files, stored in your configuration folder, and you can use any standard editor to edit them, such as: Notepad in the Windows system Or the Gedit or Kate Configuration Folder in the Texturizer and Linux system Before you start configuring your file, you should know how to find the "configuration folder". The configuration folder is located somewhere in your hard drive for Mozilla Firefox storage. Your personal settings. In the system of Windows 95/98 / Me, this folder is usually: c: / windows / application data / phoenix / profiles / default / xxxxxxx.slt /, here XXXXXXXX is a 8-bit random number. Open the C: / Windows / Application Data / Phoenix / Profiles / This folder is available, the other things are at a glance. In the Windows 2000 / XP system, this path usually:% appdata% /Phoenix/Profiles/default/xxxxxxx.slt/. Under the Linux system, the path is: ~ / .phoenix / default / xxxxxxx.slt. Under the Macos X system, the path is: ~ / library / phoenix / profiles / default / XXXXXXXX.SLT. Note: Mozilla Firefox allows not only one user, of course, not only one configuration file. The path in the above example refers to the default configuration file, this file is automatically created by it when you start Mozilla Firefox Using the Profile Manager you manage any more profiles. Under the Windows 2000 / XP system, variable% AppData% is a brief man of the Application Data path. When using this variable, just need to be in the resource manager Enter% appdata% in the address bar and then press Enter. You will be in a real folder, in general, may be: c: / docuuments and setti NGS / [user name] / Application Data. User.js This file is a major configuration file for Mozilla Firefox, located in your configuration folder. The default situation does not exist, then you must be before you join your configuration. Create it. Windows users: If you know how to create a file, skip one. Before you create a file, you must confirm it, you can see the file extension. Start the resource manager (click on the desktop The icon of the computer then selects: File> Tools> Folder Selection .... Click to view the tab, then unwind the extension option for the known file type. Now, return to your configuration folder, then select File> New>

Text file. The default name is the new text file .txt files appear. Change the name to user.js (click OK when the warning box appears). Linux users: If you are using the Linux system, I assume you know If you create a new file. Create a file name in your configuration folder. You can enter the parameter option in the user.js by entering the About: Configenter in the address bar. You will be You see a list of all available parameter options in Mozilla Firefox (most of which are imported from mozilla, some are not used, and no removal). Double-click on a parameter option to change its value. You make changes Save Now in the file prefs.js that is automatically created by Mozilla Firefox. Userchrome.css This file is used to set the display rules for each element on the Mozilla Firefox user interface, and the file location Your configuration folder is a child named chrome. In the folder. Like the user.js file, this file does not exist by default, you have to create it before joining your options. However, the default is an example file, name is Userchrome-Example. CSS. Basically, you may be renamed this file, which is to delete the -example section. UserContent.css This file is used to set the display rule of the web content, it also positions the Chrome under the configuration folder. In the subfolder. Like the USER.JS file by default, this file does not exist before you set up your option. You have to create it. Like the userchrome.css file, one example file is UserContent- EXAMPLE.CSS. Basically, you will rename a file, that is, the rear -example section is deleted. Tips & Skills below the various techniques below, most of you want to edit the configuration file, if you are not familiar with basic files , The folder method, it is recommended that you do not modify it, this page is arranged according to the importance of skills, divided into 4 partial browser appearance with Windows XP menu If you use the system is Windows XP and want to use the default menu type, put the following Code plus Userchrome.css file: / * make menus xp style * / menupopup, popup {border: 1px solid threedshadow! Import; -moz-border-left-colo ! Rs: ThreeDShadow important; -moz-border-top-colors: ThreeDShadow important; -moz-border-right-colors:! ThreeDShadow important; -moz-border-bottom-colors:! ThreeDShadow important; padding:! 1px important! Background-color: menu! important;} menubar> Menu {border: 1px solid transparent! import; padding: 2px 5px 2px 7px! important; margin: 0! important;} menubar> menu [_Moz-menuactive = "true"] {Background-Color: Highlight! Important; Color: Highlighttext! Important;} Unfortunately with classic Windows (9x / mE / 2000) menu is that the default menu type is the trade-offs of Windows XP and the original old version of Windows3D, if You want Windows classic look,

Add the following code to userchrome.css file: / * Windows Classic (9x / me / 2000) style menus * / menupopup, popup {border: 2px solid! Important; -moz-border-top-colors: threedlightshadow threedhanglight; - moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight; padding:! 1px important;} menubar> menu [disabled = "true ! "] {border:! 1px solid transparent important;} menubar> menu [_moz-menuactive =" true "] {border-top: 1px solid ThreeDHighlight important; border-right:! 1px solid ThreeDShadow important; border-bottom: 1px ! solid ThreeDShadow important; border-left: 1px solid ThreeDHighlight important; background-color:!! transparent important; color:! MenuText important;} menubar> menu [_moz-menuactive = "true"] [open = "true"] { border-top: 1px solid ThreeDShadow important; border-right:!! 1px solid ThreeDHighlight important; border-bottom: 1px solid ThreeDHighlight important; border-left:! 1px solid ThreeDShadow import! Ant;} With your own picture to do the toolbar, in addition to changing the subject, your page can do your toolbar with your own picture. The following code is added to userChrome.css file: / * Use a background image for the toolbars: (Substitute your image file for background.gif) * / menubar, toolbox, toolbar, .tabbrowser-tabs {background-image: url ( "Background.gif")! important; background-color: none! important;} You can put the picture in the same directory as the userchrome.css file. The picture format can be any format supported by Mozilla Firefox.

Make the dynamic tab easier to distinguish the dynamic tab and the already opened tab easily (through color) to add the following code to, userchrome.css file: / * change color of active tab * / tab [ selected = "true"] {background-color: rgb (222,218,210) important; color:! black important;!} / * Change color of normal tabs * / tab {background-color:! rgb (200,196,188) important; color: gray Important;} Do not use bold text on dynamic tags If you don't want to use bold on dynamic tab, plus the code to userchrome.css file: / * make the active tab easier to distinguish: * / tab [Selected = "True"] {font-weight: Normal! Important;} Delete the "Close" from the tab bar You can delete the "Close" button from the tab, add the following code to Userchrome.css: / * Remove The Close Button On the Tab Bar * /. Tabs-CloseButton {Display: None! Important;} You can still close the tab, right-click tab Select "Close Tag" or Press Ctrl W Remove Items from the Main Menu Some people in order to save horizontal space I like to put the toolbar icon menu, add the following code to R Userchrome.css: / * Remove the go and help menus * / menu [label = "go"], menu [label = "help"] {display : None! important;} Change window icon Mozilla Firefox defaults not to use itself icon but the Mozilla icon, in some systems, system icons are used, if you want to use your own icon, follow the following methods to enter you to install Mozilla Firefox directory (eg > C: / program files / firefox / subdirectory Chrome. Create subdirectory ICons, Generate subdirectory default. Complete directory is now c: / program files / firefox / chrome / icons / default / select the icon you want to use (in the Windows platform. Chico file, put in Linux platform XPM file) This directory is renamed R and Main-Window. [File Type], Eg Main-Window.ico in Windows and in Linux Main-Window.xpm in Addition to the Main Window, You Can Also Change The icon on The Bookmark Manager and JavaScript console. The icon name is bookmark-window. [Filetype] and jsconsoleWindow. [FileType], respective. In order to display the sidebar on the right, add the following code to the UserChrome.css file: / * Place The Sidebar on the right edge of the window * / window> hbox {direction: RTL;} Window> hbox> * {Direction: LTR;} Changing the width search bar of the search bar is relatively small by default.

You can specify its width with a specific number of pixels, and the following code is added to userchrome.css file: / * make the search box flex wider * / # search-container {-Moz-Box-flex: 400! Important;} Open External Links in New Windows or Tabs If there is an external program to open the web page in the default browser, Mozilla Firefox opens it with a few existing windows, which means that the browser may jump from a page you are browse, if not I hope this will happen, plus the code to user.js file: // stop reusing active windows: user_pref ("Advanced.System.supportdeexec", false); want to open a new tab instead of the window What should I do? What About New Tabs INSTEAD OF WINDOWS THEN? If You Prefer Tabs Instead of Windows, you must have TabBrowser Extensions, which is a powerful label browsing extension, after installation, press the following instructions to make not forgetting the above The code is added to the user.js file. Select Tools "Options" Extensions, select the tabbliced ​​browse click Settings. Expand Directory List Select the top subdirectory in "Window" Mode drop-down list, select "Use multiple browsers "Now open the new tab open when the external program opens the link.

Make the tag column to display when only one tab will be hidden. To make the tag column to display, add the code to R user.js file: // disable Tab Bar AutoHide Feature: user_pref ("Browser.tabs .autohide ", pay); When you only have a tab, you can still cancel target =" _ blank "Mozilla Firefox by clicking" Close "x hidden tab, with a built-in blocking filter, but when Use target = "_ blank" or invalid target = "_ new" to open the pages, to open the link in order to open the link in the same window, plus the code to f User.js file: // disable target = "_ blank" (Open) In Same Window: User_pref ("Browser.block.target_new_window"; Close Image Auto Zoom Fun When this feature is turned on, it reduces the image to make an image smaller than the image. In order to close this Function plus code to user.js file: // Turn Off Automatic Image Resizing: user_pref ("Browser.enable_Automatic_Image_RESIZING", FALSE); Mozilla Firefox is not like IE when the connection fails when the end is fails. Error page, indicating an annoying error message, to display the error page instead of error message, plus the code to User.js file: // instead of annoying error Dialog Messages, Display Pages: user_pref ("Browser.xul.Error_Pages .enabled ", true);. When downloading the file with the download manager instead of the progress window, Mozilla Firefox defaults the schedule, if you download multiple files at the same time, these windows will mess up your desktop, and the download manager is not Will, add the code to the user.js file to download the download manager: // instead of download Progress Windows, Use the sidebar: user_pref ("Browser.Download.openside Bar ", true); user_pref (" Browser.Download.UseProgressDialogs ", False); With a good input lookup feature Find as you type function, a new feature of Mozilla's new introduction, there are some hidden features that suits you, add Code to RUSER.JS file: // Find As you type configuration: // set this pref to false to disable find as you type: user_pref ("accessibility.typeaheadfind", true); // if you set this Pret To true, Typing CAN Automatically Start Find As You Type. // If false (default), you must '(Find Links) Before your search.user_pref ("Accessibility.typeaheadFind.Autostart", True);

// Set this pref to false if you want Find As You Type to search normal text too: user_pref ( "accessibility.typeaheadfind.linksonly", true); // Set this pref to true if you require that the link starts with the entered text: user_pref ( "accessibility.typeaheadfind.startlinksonly", false); // This is the time in milliseconds for the Find As You Type to stop watching for keystrokes: user_pref ( "accessibility.typeaheadfind.timeout", 3000); smooth scrolling Mozilla Firefox 0.6 default has a smooth scrolling feature, to turn this feature, plus the code to scrollinguser.js file: // smooth scrolling (true = on, false = off): user_pref ("General.smoothscroll" , TRUE); Prohibiting other JavaScript window features Mozilla Firefox has some options to determine that Scripts can be used in the window, these options are in the "Tool" option "Web Special Effect", this option does not include all special effects, and others Some effects may be used: // More DOM / JavaScript options // Make sure all pop-up windows are resizable: user_pref ( "dom.disable_window_open_feature.resizable", true); // Make sure all pop-up windows are minimizable: User_pref ("DOM.DISABLE_WINDOW_OPEN_FEATURE.MINIMIZABLE", TRUE); // ALWAYS DISPLAY THE MENU IN POP-UP W indows: user_pref ( "dom.disable_window_open_feature.menubar", true); // Always display the Navigation Toolbar in pop-up windows: user_pref ( "dom.disable_window_open_feature.location", true); using Netscape 6/7 or Mozilla bookmarks if You are using Netscape 6/7 or Mozilla, you can make Mozilla Firefox use these bookmarks. All bookmarks are saved in a file called Bookmarks.html, for example, if you want to use Netscape 7's bookmarks in Firefox, add Code to User.js File: // Specify Which Bookmarks File To Use: User_pref ("Browser.Bookmarks.File", "C: / Path To Netscape Profile / Bookmarks.html"); Remember To Use Two Backslashes for the Path Separators if you '

RE Using Windows, EG C: /Path/bookmarks.html Instead of C: /Path/bookmarks.html. Change the search mode of the address bar By default, enter the keyword in the search bar. Press Enter, will execute a B "i ' M Feeling Lucky search, if you want to use a standard search mode, add the code to the code to, user.js file: // Change to Normal Google Search: user_pref ("Keyword.URL", "http://google.com / search? btng = Google Search & q = "); of course, you can change the search engine by changing a specific string, the default is:" http://www.google.com/search?btni=i'm feeling lucky&q = ". Prohibition of bookmark icon You can disable the bookmark icon from displaying the following code to user.js file: // disable bookmark iconsuser_pref (" browser.chrome.site_icons ", false); user_pref (" browser.chrome.favicons ", False); change the throbber url When you click on Throbber, the browser will link www.mozilla.org. This can change, plus the code to user.js file: // Click on thrtobber to go to mozilla firefox Help : User_pref ("Browser.Throbber.URL", "http://texturizer.net/firefox/"); Not in the address bar to save URLS Mozilla Firefox Allows you to enter the address does not appear in the drop-down menu of the address bar, this can be protected Your privacy, webpage prohibits advertising on your ad sitting, the following code can block most of the advertisements, because this code is longer to other pages, Separate Page. You may not want to see it. Flashing element. To prevent it, add the code to user.js file: // put an end to blinking text! User_pref ("browser.blink_allowed", false; ban Stop "Marquee" tag some website with a wrapped label. If you don't use it, add the following code to prohibit it, add it to usercontent.css file: / * Stop those tags! * / Marques {-Moz -binding: block; height: Auto! Important;} if you added the code, this text shouth the code, Make the frame size varies a number of websites to display the directory, sometimes these The frame is too small. In order to make these frames size variable, added to user.js file: // force frames to be resizableuseuser_pref ("Layout.Frames.Force_Resizability", True); Note Sometimes it will make your page change Compare funny :) Modify Open the cursor of the new window link When you open a new window, this prompt will change the mouse when linking.

Execute a javascript command. Add to UserContent.css file: / * Change Cursor for Lins That Open in new window * /: link [target = "_ blank"],: visited [target = "_ blank"],: link [target = "_new"],: visited [target = "_ new"] {CURSOR: Crosshair;} Change the JavaScript link This prompt will change the mouse when linking, execute a javascript command. Add to userContent.css file: / * change Cursor for JavaScript links * / a [href ^ = "JavaScript:"] {CURSOR: Move;} Other prompts to change the web page language Some websites offer versions of multi-language, you can choose the language in order to change the priority, you Have to know the language code of the language, such as Swedish code is SV, the following example is one of User.js. : // Change Language To Swedish ("INTL.ACCEPT_LANGUAGES", "SV, En, EN-US"); Note: A request field in the option window is used to store this Options. Select and copy a stand-alone table unit When you press Ctrl, you can choose Table unit. J You can select multiple table units Once you choose to select text, you can copy and paste your selection. Acceleration web page Display Mozilla Firefox defaults not to display the page at 250 milliseconds because it is waiting for data. If you add the following code to the user.js file, Mozilla Firefox immediately displays the web page, even if there is no completed data its disadvantages are in a slow Because "reflow" on the machine makes the entire page load time.

转载请注明原文地址:https://www.9cbs.com/read-76073.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.039, SQL: 9