Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Pinned-tab middle-click option

  • 4 답장
  • 0 이 문제를 만남
  • 최종 답변자: Paul

more options

Is there a way to configure Firefox such that: middle-click on a pinned tab does NOT close the tab, but still closes a non-pinned tab?

Is there a way to configure Firefox such that: middle-click on a pinned tab does NOT close the tab, but still closes a non-pinned tab?

모든 댓글 (4)

more options

I actually do not see a way to turn off that feature for either regular or pinned tabs.

One idea... You may have noticed from time to time that Firefox asks whether you really want to close a tab or leave a page. Sometimes it's helpful, to prevent losing work, while other times, it's to try to prevent you from leaving an annoying page. I mention this because it would be possible for an add-on to set up that feature for pinned tabs to prevent accidental closure, but of course, it would also require an extra click to close them.

도움이 되셨습니까?

more options

Thanks for the reply. I wouldn't mind the 'extra click' to close a pinned tab, but urgently want to prevent a mistaken-middle-click close.

도움이 되셨습니까?

more options

I didn't see an add-on for this, so as a temporary workaround, you could use a bookmarklet to inject a script into each pinned tab you want to protect against closure. Note that this script lives in the current page, so you would need to repeat the exercise after navigating to a new page. Here's how to set it up:

(1) Copy the following script:

javascript:void(window.addEventListener('beforeunload', function(evt){evt.preventDefault();}, false));

(2) Right-click a convenient part of the Bookmarks Toolbar > Add Bookmark

(3) Assign a short title like NoClose

(4) Paste the script into the URL

(5) Click Save

Now when you are on a page you don't want to easily close, you can click the bookmark to inject the script.

도움이 되셨습니까?

more options

Yeah! My first "bookmarklet" -- Thanks so much.

도움이 되셨습니까?

질문하기

글에 답글을 달기 위해서는 계정으로 로그인해야만 합니다. 계정이 아직 없다면 새로운 질문을 올려주세요.