• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1088
  • Last Modified:

ALWAYS a new tab after entering a new URL in FIREFOX

Okay so I'm desperately trying to like Firefox web browser. I've been using Flashpeak's Slimbrowser for years but for some reason I'm starting to get a several second lag between web sites.  What good is a 15mb web connection if the browser pauses for 10 seconds before it loads the super fast page?

Anyway, I just want Firefox to act logically and don't know exactly why I have to ask this question but here goes:
I want to place my curser into the URL line and type a web address like "dnscompanies" (no www or .com) and press enter - I then want Firefox to open that site in a new tab... NOT replace the site I'm at... duhhh.  

Does this make sense?
(click in URL area - type where I want to go - new tab opens with that location - always putting www and .com
_______________________
(also - when I type in "ebay" it seems to think and think. How do I make it stop thinking...? just put www. and .com in and go there already!!!  Even if I type adfsdfadgadfgldakfjad   - stop thinking and just put www. and .com and give me a
"Page Can't Be Displayed" if the site doesn't exist)
0
dnscompanies
Asked:
dnscompanies
  • 3
  • 3
  • 3
  • +2
5 Solutions
 
torimarCommented:
The URL bar is intrinsically connected to the tab: it simply means the address opened inside the tab. If you insert something else into the URL bar, the current tab will display this new address.
You may configure FF to open clicked links in a new tab, but you cannot configure it to detach the URL bar from the tab. At least I don't know of a way.
What you have to do is open a new tab first, then start typing into the address bar. To open a new tab, simply double-click the tab bar. If you don't see a tab bar (it does not show by default), go to:
Options > Settings > Tabs, and place a checkmark for: 'Always show tab bar'.
Or simply press CTRL + T for a new tab.
0
 
dnscompaniesAuthor Commented:
Weird.
So how does the WHOLE world that uses Firefox use the browser when... say... they want to use google to check the spelling of "Galapagos island" while in webmail?  I'm used to just going up to the google plugin thing and typing it in... then a new window simply opens up and says "did you mean..."

There are a million other reasons that you'd want a new tab... say I'm in ebay and I have some super crazy search going on and then think... oh, let me check the news real quick.  You simply go up to the url line and type "foxnews" or whatever.

Am I just an oddball?  Slimbrowser has done this for YEARS...
0
 
torimarCommented:
As to the other problem, the "intelligent behaviour", when I type "ebay" inside the URL bar, Firefox is busy for 2-3 seconds, then displays this page:
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=ebay
Doesn't your FF do this?

If you want FF to autocomplete addresses from your history and bookmarks, do the following. In the URL bar, type
about:config

Then search for:
browser.urlbar.autoFill

Double-click the line and set the setting to 'True'. Restart Firefox and check if the new feature satisfies you.


On a side-note:
If you are looking for an even more intelligent browser, give Opera (www.opera.com) a try. I just test-inserted the Google link from above in Opera, and instead of displaying the Google result page for the "Ebay" search term, it actually opens Ebay rightaway.
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
dnscompaniesAuthor Commented:
It seems I found the answer to the Tab problem. A plugin called "Tab Mix Plus" seems to give the desired ability.  

However the autofill of www.   and   .com doesn't seem to work... even after changing the about:config option - great options in there by the way... thanks!

0
 
javeedabdulCommented:
www and .com is old style .. doesn't work any more...

Every country has unique names
.com.au
.com.sg
.co.in
.co.nz
.co.il
.edu.au
.bz
plenty more..
and by the time ff work which are active (it may take 20 sec ) instead better Google and get the correct link..

0
 
Marc ZCommented:
torimar, you don't know about Tab Mix Plus? Sorry man, that is the first extension I add whenever I need a new install of Firefox.
Check it out.
You'll want to get it from his home page though so it's at least his latest version.
http://tmp.garyr.net/

You MAY need to bump the extension to get it to work with 3.5, but I use another add-on to make it relatively easy called MrTech Toolkit
found here
https://addons.mozilla.org/en-US/firefox/addon/421
it will override the settings and make it compatible.

dnscompanies,
Here is a page for keyboard shortcuts as well for you.
http://support.mozilla.com/en-US/kb/Keyboard+shortcuts?style_mode=inproduct#windows_tabs
I know I'm a little late, but hope it helps.
0
 
javeedabdulCommented:
Install the latest firefox
http://www.mozilla.com/en-US/firefox/upgrade.html

Win+D takes you to address bar ..

"Type any thing you want in (web address bar).It will display the search (Same as google search)
Note:.com and www will not work..

one tip
Does one know an addon where i look at the website and have my fingers on asdf ;lkj and  2 thumbs on space bar
it should give me
date of the site create
owner of the site
age of the site owner's first daughter second child future husband

I love firefox. It fullfill my requirements but still i am feeling hungry

Hope this help







0
 
dnscompaniesAuthor Commented:
Great collection javeedabdul... thanks a million!
0
 
crwsCommented:
Although this subject is closed, I believe this is the definitive answer to the original question. I looked far and wide for an answer that didn't involve installing another extension of limited function, only to follow with another to get the desired results. The author of this page worked hard at getting this behavior re-enabled in FF 3.+, as in the links below, pertaining to FF 3.5.x. Search bar tab behavior configurable in about:config > browser.search.openintab .

http://www.x2b4.com/howto/how-to-open-everything-url-search-bookmarks-in-a-new-tab-with-firefox-3/comment-page-2/
** and **
http://mozilla.zeniko.ch/userchrome.js.html

For me, however, the excitement was to find the long thought dead "Super Drag n' Go" updated in code format, AND as an .xpi
http://mozilla.zeniko.ch/userchrome.js.html
http://mozilla.zeniko.ch/dragngo.xpi
This was the precursor to all the funk frustrating mouse gestures extensions, and it just WORKS!
Enjoy!

**FF 3.5** _Open Url Bar in new tab-

In the user profile folder, i.e. "C:\Documents and Settings\*user_name*\Application Data\Mozilla\Firefox\Profiles\*profile_name*\chrome" create a blank file userchrome.js with notepad. After FF version 3.1, paste this code, and save the file:
(function() {
urlbar = document.getElementById("urlbar");
eval("urlbar.handleCommand = " + urlbar.handleCommand.toString().replace("&& aTriggeringEvent.altKey","&& !aTriggeringEvent.altKey"));
})();

/* add this code to the file for colored tabs: */

/* :::::::: Fashion Tabs ::::::::::::::: */
// by zeniko
// http://forums.mozillazine.org/viewtopic.php?p=2592073#2592073

// Modified for Firefox 3.0 compatibility

({
      init: function()
      {
            Array.forEach(getBrowser().mTabs, function(aTab) {
                  aTab.linkedBrowser.addProgressListener(this);
                  this.colorizeTab(aTab);
            }, this);
            
            gBrowser.addEventListener("TabOpen", this, false);
            gBrowser.addEventListener("TabSelect", this, false);
            gBrowser.addEventListener("TabMove", this, false);
            gBrowser.addEventListener("TabClose", this, false);
      },

      handleEvent: function(aEvent)
      {
            var tab = aEvent.originalTarget;
            
            switch (aEvent.type)
            {
            case "TabOpen":
                  tab.linkedBrowser.addProgressListener(this);
                  break;
            case "TabMove":
            case "TabSelect":
                  this.colorizeTab(tab);
                  break;
            case "TabClose":
                  tab.linkedBrowser.removeProgressListener(this);
                  break;
            }
      },

      onLocationChange: function(aProgress, aRequest, aURI) {
            var doc = aProgress.DOMWindow.document;
            var tab = gBrowser.mTabs[gBrowser.getBrowserIndexForDocument(doc)];
            
            this.colorizeTab(tab);
      },

      onStateChange: function() { },
      onProgressChange: function() { },
      onStatusChange: function() { },
      onSecurityChange: function() { },
      onLinkIconAvailable: function() { },

      colorizeTab: function(aTab)
      {
            function djb2hash(aString)
            {
                  var hashvalue = 5381;
                  for (var i = 0; i < aString.length; i++)
                  {
                        hashvalue = ((hashvalue << 5) + hashvalue) + aString.charCodeAt(i);
                  }
                  return hashvalue;
            }
            
            try
            {
                  var host = aTab.linkedBrowser.currentURI.host;
            }
            catch (ex) { }
            
            if (host && host != "about:blank")
            {
                  var hue = djb2hash(host.replace(/^www\.(?=.+\..)/, "")) % 360;
            }
            var color = (hue)?"hsl(" + hue + ", 50%, 50%)":null;

            aTab.style.backgroundColor = color;

            if (gBrowser.selectedTab == aTab)
            {
                  var anonId = ["tabs-bottom", "close-button tabs-closebutton"];
                  var node;
                  for (var i in anonId)
                  {
                        node = aTab.ownerDocument.getAnonymousElementByAttribute(aTab.parentNode, "class", anonId[i]);
                        if (color)
                              node.setAttribute("style", "background-color: " + color + " !important");
                        else
                              node.removeAttribute("style");
                  }
            }
      },

      QueryInterface: function(aIID) {
            var Ci = Components.interfaces;
            if (![Ci.nsIDOMEventListener, Ci.nsIWebProgressListener, Ci.nsISupportsWeakReference, Ci.nsISupports].some(aIID.equals))
            {
                  throw Components.results.NS_NOINTERFACE;
            }
            return this;
      }
}).init();

see the code snippet for both

(function() {
urlbar = document.getElementById("urlbar");
eval("urlbar.handleCommand = " + urlbar.handleCommand.toString().replace("&& aTriggeringEvent.altKey","&& !aTriggeringEvent.altKey"));
})();
 
/* :::::::: Fashion Tabs ::::::::::::::: */
// by zeniko
// http://forums.mozillazine.org/viewtopic.php?p=2592073#2592073
 
// Modified for Firefox 3.0 compatibility
 
({
	init: function()
	{
		Array.forEach(getBrowser().mTabs, function(aTab) {
			aTab.linkedBrowser.addProgressListener(this);
			this.colorizeTab(aTab);
		}, this);
		
		gBrowser.addEventListener("TabOpen", this, false);
		gBrowser.addEventListener("TabSelect", this, false);
		gBrowser.addEventListener("TabMove", this, false);
		gBrowser.addEventListener("TabClose", this, false);
	},
 
	handleEvent: function(aEvent)
	{
		var tab = aEvent.originalTarget;
		
		switch (aEvent.type)
		{
		case "TabOpen":
			tab.linkedBrowser.addProgressListener(this);
			break;
		case "TabMove":
		case "TabSelect":
			this.colorizeTab(tab);
			break;
		case "TabClose":
			tab.linkedBrowser.removeProgressListener(this);
			break;
		}
	},
 
	onLocationChange: function(aProgress, aRequest, aURI) {
		var doc = aProgress.DOMWindow.document;
		var tab = gBrowser.mTabs[gBrowser.getBrowserIndexForDocument(doc)];
		
		this.colorizeTab(tab);
	},
 
	onStateChange: function() { },
	onProgressChange: function() { },
	onStatusChange: function() { },
	onSecurityChange: function() { },
	onLinkIconAvailable: function() { },
 
	colorizeTab: function(aTab)
	{
		function djb2hash(aString)
		{
			var hashvalue = 5381;
			for (var i = 0; i < aString.length; i++)
			{
				hashvalue = ((hashvalue << 5) + hashvalue) + aString.charCodeAt(i);
			}
			return hashvalue;
		}
		
		try
		{
			var host = aTab.linkedBrowser.currentURI.host;
		}
		catch (ex) { }
		
		if (host && host != "about:blank")
		{
			var hue = djb2hash(host.replace(/^www\.(?=.+\..)/, "")) % 360;
		}
		var color = (hue)?"hsl(" + hue + ", 50%, 50%)":null;
 
		aTab.style.backgroundColor = color;
 
		if (gBrowser.selectedTab == aTab)
		{
			var anonId = ["tabs-bottom", "close-button tabs-closebutton"];
			var node;
			for (var i in anonId)
			{
				node = aTab.ownerDocument.getAnonymousElementByAttribute(aTab.parentNode, "class", anonId[i]);
				if (color)
					node.setAttribute("style", "background-color: " + color + " !important");
				else
					node.removeAttribute("style");
			}
		}
	},
 
	QueryInterface: function(aIID) {
		var Ci = Components.interfaces;
		if (![Ci.nsIDOMEventListener, Ci.nsIWebProgressListener, Ci.nsISupportsWeakReference, Ci.nsISupports].some(aIID.equals))
		{
			throw Components.results.NS_NOINTERFACE;
		}
		return this;
	}
}).init();

Open in new window

0
 
crwsCommented:
PS. A slight correction: The file name userChrome.js is case specific, as noted in this post. userChrome.js
0
 
crwsCommented:
And one more- install the userChrome.js xpi file to add script functionality as explained here-
http://userchromejs.mozdev.org/
the direct link to userChromeJS v1.1
http://downloads.mozdev.org/userchromejs/userChromeJS-1.1.xpi

ok, it's late... now I think I'm done!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now