Suppress New Windows Revisited
If you're like me, then you hate it when people use target="_blank". If you've installed Firefox 1.0 and are wondering why the suppress new windows advanced pref no longer works, it's because it's been overridden by a new advanced pref.
To turn it on, go to about:config and set "browser.tabs.showSingleWindowModePrefs" to true. Or you can add user_pref("browser.tabs.showSingleWindowModePrefs", true);
to your user.js file.
Then in Tools | Options | Advanced | Tab browsing, a new option appears. You can then force links that open in new windows to open in the current window or a new tab instead. It's an experimental option for now, so it might be a little buggy, but it works for the most part.
Update: The feature doesn't work on bookmarklets that open popup windows, like the bugmenot or Post to MT bookmarklets. It opens them in new tabs instead of as a new popup window.
Update to Update: There's a pref for diverting window.open() calls too.
Comments
Regarding your 'update': There's more hidden options regarding which popup windows do what. Snagged this off of The Burning Edge:
"If you select "Force links that open new windows to open in: a new tab", Firefox diverts links with target="_blank". It also diverts JavaScript window.open() calls, but only calls that don't specify window features (e.g. size and which toolbars are displayed). Most calls to window.open() specify the size of the window. You can change this by setting the browser.link.open_newwindow.restriction pref in about:config.
* 0: divert window.open()
* 1: don't divert window.open()
* 2: divert window.open() without features
"
ooh, cool it works. thanks!
I wrote an extension that allows you easy toggleing of these new singlemode prefs so pages that *need* to open pop-ups to work can still be able to with the simple toolbar toggle.
http://jedbrown.net/mozilla/extensions/
See "Quick Tab Pref Toggle".
Cheers
-Jed
Bah, there is no need to install an extra extension for things that can be configured using about:config. You only need to fiddle with browser.link.* and popups opens as a new window and you are still in one window mode.
This mode is still not perfect because there is some limitations but in 90% cases it works just fine.
My preferences could be found here http://pods.lv/arhivs/2004/10/28/2022/ . It's in latvian but images are self explanatory.
Thank you thank you thank you!
*worships*
*praise*
I've been lusting after this feature ever since I encountered it in Avant Browser!
again,
thank you thank you thank you!!!
It's not Tools -> Options, nut Edit -> Preferences here... Thanks anyways ;)
Anyone know of a way to view-source in a tab?
Found a workaround that'll let me view source in a tab: https://bugzilla.mozilla.org/show_bug.cgi?id=103622#c9. Not an easy solution — what I was looking for — but it'll have to due.
Besides the wonderful comment spam, I am eagerly awaiting the updating of the "single window" extension. I use it on my main system (that is still running .9 just because of that fact). I have found it handles new tabs and their options in a bit more of a logical way than what you can currently do with firefox (Like currently I get a new window on .9 about every 4 days, while the 1.0 with all the firefox options turned on but no extension gives me about 7 a day).
Post a Comment
This discussion has been closed.