firefox防止冒泡_关闭最后一个选项卡时如何防止Firefox退出

firefox防止冒泡

firefox防止冒泡

00_lead_image_closing_last_tab

By default, when you close the last open tab in Firefox, the entire browser closes. If you’d rather be able to close the web page on the last open tab without closing Firefox, there’s a simple setting you can disable.

默认情况下,当您关闭Firefox中的最后一个打开的选项卡时,整个浏览器都会关闭。 如果您希望能够在不关闭Firefox的情况下关闭上一个打开的选项卡上的网页,则可以禁用一个简单的设置。

Instead of closing the browser when you close the last tab, disabling this setting will make the last tab reopen and display the New Tab page. Maybe you don’t want to end your browsing session, because you want to be able to reopen closed tabs (the list of recently closed tabs resets when you close the browser). Or, maybe you just want to quickly access the new tab page on the last open tab.

关闭最后一个标签页不会关闭浏览器,而是禁用此设置将重新打开最后一个标签页并显示“新标签页”页面。 也许您不想结束浏览会话,因为您希望能够重新打开关闭的选项卡(关闭浏览器时,最近关闭的选项卡列表会重置)。 或者,也许您只是想快速访问上一个打开的标签上的新标签页。

The setting we’re going to disable is not in the standard Firefox settings. Don’t worry, though. It’s easy to find and change. To access this setting, enter about:config in Firefox’s address bar and then press Enter.

我们要禁用的设置不在标准Firefox设置中。 不过不要担心。 易于查找和更改。 要访问此设置,请在Firefox的地址栏中输入about:config ,然后按Enter。

01_entering_about_config_in_address_bar

A message displays saying that this might void your warranty and you should only continue if you’re sure of what you’re doing. As long as you follow our instructions, you’ll be fine, so click “I’ll be careful, I promise” to continue.

此时会显示一条消息,提示这可能会使您的保修失效,只有在确定自己在做什么时,才应继续操作。 只要您按照我们的说明进行操作,就可以了,因此请单击“我会小心,我保证”继续。

02_void_your_warranty_screen

Start typing closeWindowWithLastTab in the Search box to find the setting. The browser.tabs.closeWindowWithLastTab setting should display. By default, it’s set to “true” which will close the browser when you close the last tab.

开始在“搜索”框中键入closeWindowWithLastTab以查找设置。 应该显示browser.tabs.closeWindowWithLastTab设置。 默认情况下,它设置为“ true”,当您关闭最后一个选项卡时将关闭浏览器。

03_setting_closewindowwithlasttab_setting_to_false

To disable this setting, double-click on it. You’ll see the Value change to “false” and the entire setting displays in bold, indicating the Value is not set to the default.

要禁用此设置,请双击它。 您会看到“值”更改为“ false”,并且整个设置以粗体显示,表明“值”未设置为默认值。

04_closewindowwithlasttab_setting_set_to_false

Now, click on the “Close tab” button on the last open tab in Firefox.

现在,单击Firefox中最后一个打开的选项卡上的“关闭选项卡”按钮。

05_clicking_close_tab_button

Firefox stays open and the last open tab reopens and displays the New Tab page. If you change your mind and want to have Firefox close when you close the last tab, simply double-click this setting again to change the Value back to “true”.

Firefox保持打开状态,最后打开的选项卡重新打开并显示“新建选项卡”页面。 如果您改变主意并希望在关闭最后一个选项卡时关闭Firefox,只需再次双击此设置即可将“值”更改回“ true”。

翻译自: https://www.howtogeek.com/264880/how-to-prevent-firefox-from-exiting-when-you-close-the-last-tab/

firefox防止冒泡

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值