為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

ctr+u to open in newtab instead of new window

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 sanqiu

more options

More detais are I have several question here about firefox dev version. i know some addons can get me that. but i hope some one here guides me to the docs or instructions of customizing this.

1. Like the title says i want to view source in new tab by ctr+u, view downloads by ctr+j, not in new window. (why firefox doesn't default to newtab of view-soure:%url% and about:downloads etc by shortcut in TAB AGE)

2. When inspecting a dom node, right click this node we can copy the unique css selector, so what's the way of copy the xpath like in chrome dev tool ?

3. The firefox network monitor records the sent request, but i don't see the monitor logs these being reset connection, these blocked requests (eg by adblock)

4. What's the way of disable the js engine for individual website.

I have googled for days without luck finding satisfied results.

pls help. thanks

More detais are I have several question here about firefox dev version. i know some addons can get me that. but i hope some one here guides me to the docs or instructions of customizing this. 1. Like the title says i want to view source in new tab by ctr+u, view downloads by ctr+j, not in new window. (why firefox doesn't default to newtab of view-soure:%url% and about:downloads etc by shortcut in TAB AGE) 2. When inspecting a dom node, right click this node we can copy the unique css selector, so what's the way of copy the xpath like in chrome dev tool ? 3. The firefox network monitor records the sent request, but i don't see the monitor logs these being reset connection, these blocked requests (eg by adblock) 4. What's the way of disable the js engine for individual website. I have googled for days without luck finding satisfied results. pls help. thanks

由 sanqiu 於 修改

所有回覆 (2)

more options

1) You can consider to use the PrefBar extension and create buttons to open the page source and the about:downloads page. PrefBar allows to add a keyboard shortcut to activate a button.

I use this code for the page source with Ctrl+Shift+U:

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

For the about:downloads page you can use:

var src="about:downloads";
gBrowser.selectedTab=gBrowser.addTab(src)

2) and 3) Don't know about these ones.

4) You can use PrefBar for that as well (built-in button: Javascript (Tab)).

more options

cor-el said

1) You can consider to use the PrefBar extension and create buttons to open the page source and the about:downloads page. PrefBar allows to add a keyboard shortcut to activate a button. I use this code for the page source with Ctrl+Shift+U:
var url=content.document.location.href, src='view-source:'+url;
gBrowser.selectedTab=gBrowser.addTab(src);

For the about:downloads page you can use:

var src="about:downloads";
gBrowser.selectedTab=gBrowser.addTab(src)

2) and 3) Don't know about these ones.

4) You can use PrefBar for that as well (built-in button: Javascript (Tab)).

really thanks to your reply, i'll have a try