03-21-2006, 11:32 AM
There are some hidden options for the Tabbed Browsing that
will allow you to force links that open new windows to open in the current or a new tab. First, add the following code to your user.js file:
Restart Firefox and go to Tools > Options... (Edit >
Preferences... under Linux and Mac OS X), select Advanced and click on Tabbed Browsing. The following options should be visible:
Force links that
open new windows to open in:
the same tab/window as the link
a new tab
The options should be self-explanatory.
In the tip above,
you learned how to reveal the Force links that open new windows... option. If you activated this, all windows that a web page wants to open will be diverted
to either the current tab/window or a new tab. However, this also applies to small pop-up windows (e.g. a poll results window or the ICQ window in
go.icq.com), which really should be opened in a new window. To change this behavior so it doesn't divert new windows that are spawned by JavaScript,
add the following code to your user.js file:
Find As You Type has a few hidden preferences that can be changed to
better fit your needs. Add the following prefs to your user.js file:
Firefox has a few options that allow
you to decide what scripts can and can not do with windows. These options are available from Tools > Options > Web Features > Advanced. However, this
list of options doesn't cover them all. There are some other useful options which can be applied by adding the following code to your user.js
file:
If you are using Netscape 6/7 or Mozilla, you can share
your bookmarks with Firefox. All bookmarks are stored in a file called bookmarks.html and is stored in the profile folder. For example, if you want to use
the bookmarks for Netscape 7 in Firefox, add the following code to your user.js file:
Remember to use two backslashes for the path
separators if you're using Windows, e.g. C:\\Path\\bookmarks.html instead of C:\Path\bookmarks.html.
By default, if you enter a search term
in the address field and press Enter, a Google "I'm Feeling Lucky" search is performed, and you're taken to the first result of that search directly. If you
prefer to see the standard search result list instead, add the following code to your user.js file:
You can disable the display of bookmark
icons and "favicons" by adding the following code to your user.js file:
When you click on the Activity Indicator (also known as the "throbber"), you are
directed to the Firefox Start Page. This can be changed to any URL by adding the following code to your user.js file:
You probably just find the blinking text annoying. To stop it,
add the following code to your user.js file:
Many sites
use frames to display their contents, and sometimes the frames are too small. To force all frames to be resizable, add the following code to your user.js
file:
will allow you to force links that open new windows to open in the current or a new tab. First, add the following code to your user.js file:
Code:
// Reveal
more tab/window options:
user_pref("browser.tabs.showSingleWindowModePrefs", true);
Preferences... under Linux and Mac OS X), select Advanced and click on Tabbed Browsing. The following options should be visible:
Force links that
open new windows to open in:
the same tab/window as the link
a new tab
The options should be self-explanatory.
In the tip above,
you learned how to reveal the Force links that open new windows... option. If you activated this, all windows that a web page wants to open will be diverted
to either the current tab/window or a new tab. However, this also applies to small pop-up windows (e.g. a poll results window or the ICQ window in
go.icq.com), which really should be opened in a new window. To change this behavior so it doesn't divert new windows that are spawned by JavaScript,
add the following code to your user.js file:
Code:
/* Force New Windows Restrictions
0: Default - Divert *all* new windows to current tab/window or
new tab
1: Don't divert *any* windows spawned by JS
2: Don't divert JS windows that include size/placement/toolbar info
*/
user_pref("browser.link.open_newwindow.restriction", 2);
Find As You Type has a few hidden preferences that can be changed to
better fit your needs. Add the following prefs to your user.js file:
Code:
// 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 pref to true, typing can automatically start Find As You Type.
// If false
(default), you must hit / (find text) or ' (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);
Firefox has a few options that allow
you to decide what scripts can and can not do with windows. These options are available from Tools > Options > Web Features > Advanced. However, this
list of options doesn't cover them all. There are some other useful options which can be applied by adding the following code to your user.js
file:
Code:
// 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
windows:
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);
// Prevent sites from disabling
scrollbars:
user_pref("dom.disable_window_open_feature.scrollbars", true);
If you are using Netscape 6/7 or Mozilla, you can share
your bookmarks with Firefox. All bookmarks are stored in a file called bookmarks.html and is stored in the profile folder. For example, if you want to use
the bookmarks for Netscape 7 in Firefox, add the following code to your user.js file:
Code:
// Specify which bookmarks file to
use:
user_pref("browser.bookmarks.file", "C:\\Path To Netscape Profile\\bookmarks.html");
separators if you're using Windows, e.g. C:\\Path\\bookmarks.html instead of C:\Path\bookmarks.html.
By default, if you enter a search term
in the address field and press Enter, a Google "I'm Feeling Lucky" search is performed, and you're taken to the first result of that search directly. If you
prefer to see the standard search result list instead, add the following code to your user.js file:
Code:
// Change to normal Google
search:
user_pref("keyword.URL", "http://www.google.com/search?btnG=Google+Search&q=");
You can disable the display of bookmark
icons and "favicons" by adding the following code to your user.js file:
Code:
// Disable Bookmark Icons
user_pref("browser.chrome.site_icons",
false);
user_pref("browser.chrome.favicons", false);
When you click on the Activity Indicator (also known as the "throbber"), you are
directed to the Firefox Start Page. This can be changed to any URL by adding the following code to your user.js file:
Code:
// Click on throbber to go to
Mozilla.org:
user_pref("browser.throbber.url", "http://www.mozilla.org/");
You probably just find the blinking text annoying. To stop it,
add the following code to your user.js file:
Code:
// Put an end to blinking text!
user_pref("browser.blink_allowed", false);
Many sites
use frames to display their contents, and sometimes the frames are too small. To force all frames to be resizable, add the following code to your user.js
file:
Code:
// Force frames to be resizable
user_pref("layout.frames.force_resizability", true);