Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

How do I tell Firefox to open source in a new tab, instead of a new window?

  • 4 件の返信
  • 36 人がこの問題に困っています
  • 7 回表示
  • 最後の返信者: paulsheldrake

more options

I was just wondering if there was a way to tell Firefox to open source in a tab instead of a new window. Now that there are tab groups I like that I can group my views together, and have one window instead of multiple windows across my bar. I'm running Win7-64bit and Firefox 4. I don't even know if this is a possibility but if it is, I'd like to do it. (wasn't able to find via searching on Google or the help files)

I was just wondering if there was a way to tell Firefox to open source in a tab instead of a new window. Now that there are tab groups I like that I can group my views together, and have one window instead of multiple windows across my bar. I'm running Win7-64bit and Firefox 4. I don't even know if this is a possibility but if it is, I'd like to do it. (wasn't able to find via searching on Google or the help files)

すべての返信 (4)

more options

I've never seen anyone mention a way to do this, but I like the idea. The thing is, from viewing the menus in the source viewer, I can see that it isn't a normal Firefox window, so someone might need to build an add-on to do it (similar in principle to the add-on that embeds Internet Explorer into a tab).

more options

I have never used it, but you can try this add-on - Source Viewer Tab - https://addons.mozilla.org/firefox/addon/source-viewer-tab/

more options

I use this code with a PrefBar button (and a shortcut key) to open the source in a new tab:


var url = 'view-source:' + content.document.location.href;
gBrowser.selectedTab = gBrowser.addTab(url);

This code will open the page source in the sidebar:

var url = content.document.location.href;
openWebPanel(url,'view-source:' + url);
more options

You can also use the web developer plugin and there is a setting to view source in a tab. The keyboard short to view source with web developer is ctrl+shift+u.