Bogey Central Easter Egg
niraj.com
A Niraj
Sanghvi
Website


symbii.com | Something You Might Be Interested In
A collection of funny, interesting, and crazy stories you might be interested in
     
Site Tools


Login/Register
Forgot my password
Click to Register (Why?)


Recent Stories
RSS feed

Recent Comments
Anonymous said: Whether that's true or not, that's...
Posted 1459 days ago

Anonymous said: His wife is an agent, I believe,...
Posted 1459 days ago

Anonymous said: You know it's back when it's 2012...
Posted 1965 days ago

Anonymous said: I've been DYING for a way to insert...
Posted 2129 days ago

Anonymous said: niraj isn't playing by the spirit...
Posted 2356 days ago

Anonymous said: So you know how SNL does 3 weeks...
Posted 2364 days ago

Comments RSS feed


Installments
Rant On...
This Week in 24
This Week in Entourage
Tremendous Upside w/ Dave & Niraj

Whip your Firefox windows into shapeTV - 24
I clicked on the comments section of a blog recently, and it popped a new, smaller window to display the comments. The problem with that was clicking on links resulted in opening new tabs in the mini window, which was annoying. I have a widescreen monitor so I don't leave my browser maximised. I have it at a size I like, so there isn't a way to get the new window to that size without resizing it manually.

I did a quick Google search and found you can prevent Javascript from resizing your window. Thing is, this will only prevent resizing of your current window, not new windows. So then I dug some more and found a way to stop the new window from opening at all. Both of these are browser settings, so there's no need for a plugin. So here's how to do both changes:

Prevent resizing current window
Click on Tools->Options. Click on the Content section, and then click the "Advanced..." button next to "Enable Javascript." Then, uncheck the first box to disable resizing as shown below.


Prevent opening in new window (force to open in new tab)
With this method you can still open a new window by right clicking a link if you want. But it won't allow a new window to be opened when you don't want to, like when clicking on the comments section of a blog. Instead, it will open in the same window in a new tab, and the window will remain the same size.

Type "about:config" into the address bar without the quotes and hit enter. In the Filter box, type "newwindow" without quotes or spaces. The interesting values are the ones for browser.link.open_newwindow and browser.link.open_newwindow.restriction. The browser.link.open_newwindow tells Firefox to open links in new tabs if it's 3, new windows if it's 2, or the current tab/window if it's 1. The browser.link.open_newwindow.restriction is a bit different. If it's 2, it says to follow browser.link.open_newwindow unless the new window specifies how it should be displayed. In my case it was set to this by default. Setting it to 1 will make it allow Javascript to open new windows. And setting it to 0 will force it to follow browser.link.open_newwindow settings. You right-click and select Modify to change the default values.

So I set browser.link.open_newwindow.restriction to 0 and left browser.link.open_newwindow at 3, and it worked like I wanted. Everything opens in new tabs, and my window doesn't ever get resized. I can still open things in new windows if I want via right-clicks, but I prefer always using tabs.

Submitted by  |  2 comments | Story hits by day
Rate this story:
  • Currently 0.00/5 Stars
  • 1
  • 2
  • 3
  • 4
  • 5
    Currently 0.00/5 Stars, based on 0 votes


More Stories | Post a comment


To reply to the article, click the 'Post a comment' link above. To reply to a specific comment, click on 'Reply to this comment' under the specific comment below.
  • Nee-yai
    Posted by: junosand on May 6th, 2007 | 02:57pm

    Or however you spell the "nerd-sound". Mozilla Firefox is the best web browser there is.


    • Carl
      Posted by: Anonymous on Apr 7th, 2008 | 02:18am

      Superb advice. With all the unstoppable malware trying to open new windows that even popup killers have difficulty stopping, this solution should help a great deal on that front as well.




      Leave a Comment:
      You are not logged in...commenting anonymously.
      Note: All links will be nofollowed.


      This story is more than 6 months old, so comments have been disabled.