X
Nhấn vào đây để đến phiên bản di động của trang web.

Diễn đàn trợ giúp

Is there any easy way to hide Firefox tabs while using the "tree style tab" extension?

Được đăng

Is there any easy way to hide Firefox tabs while using the "tree style tab" extension? A Web search turns up only a very complicated procedure using "chrome.js" that I don't want to attempt.

Is there any easy way to hide Firefox tabs while using the "tree style tab" extension? A Web search turns up only a very complicated procedure using "chrome.js" that I don't want to attempt.

Giải pháp được chọn

There is currently no API available for a WebExtension to hide the Tab bar like I wrote above, so you will have to accept seeing two Tab bars if you do not want to try userChrome.css.

Đọc câu trả lời này trong ngữ cảnh 0
Trích dẫn

Chi tiết hệ thống bổ sung

Phần bổ trợ đã cài đặt

  • Shockwave Flash 32.0 r0

Ứng dụng

  • Chuỗi đại diện người dùng: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0

Thông tin chi tiết

cor-el
  • Top 10 Contributor
  • Moderator
17695 giải pháp 160110 câu trả lời
Được đăng

It is not that difficult to create a userChrome.css with a rule to hide the Firefox Tab bar, so maybe give it a try.

Add code to the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#TabsToolbar {
 visibility: collapse !important;
}

It is not that difficult to create userChrome.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userChrome.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close (Quit/Exit) and restart Firefox when you create or modify the userChrome.css file.

See also:

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

It is not that difficult to create a userChrome.css with a rule to hide the Firefox Tab bar, so maybe give it a try. Add code to the <b>userChrome.css</b> file below the default @namespace line. <hr> <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ #TabsToolbar { visibility: collapse !important; } </nowiki></pre> ---- It is not that difficult to create userChrome.css if you have never used it. The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder. *https://support.mozilla.org/en-US/kb/use-troubleshooting-information-page-fix-firefox You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name <u>chrome</u> in this folder (name is all lowercase). In the <b>chrome</b> folder you need to create a text file with the name <u>userChrome.css</u> (name is case sensitive). In this userChrome.css text file you paste the text posted. In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named <i>userChrome.css.txt</i>. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as". You need to close (Quit/Exit) and restart Firefox when you create or modify the userChrome.css file. See also: *https://www.userchrome.org/what-is-userchrome-css.html *https://www.userchrome.org/how-create-userchrome-css.html In Firefox 69 and later you need to set this pref to true on the <b>about:config</b> page to enable userChrome.css and userContent.css in the chrome folder. *toolkit.legacyUserProfileCustomizations.stylesheets = true *https://www.userchrome.org/firefox-changes-userchrome-css.html You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue. *https://support.mozilla.org/en-US/kb/about-config-editor-firefox
Bài viết này có hữu ích với bạn không?
Trích dẫn

Người tạo câu hỏi

I really appreciate your good intentions in writing your answer, but you really don't seem to have read my question. I want a supported solution, preferably in Firefox, but if that can't be done, in the "tree style tab" extension. It seems weird to provide an alternative to tabs without also providing a way to hide the original tabs. Let's just leave this thread as it is for now, in case someone realizes there is a better solution. If I really care, I'll go the chrome.css route.

I really appreciate your good intentions in writing your answer, but you really don't seem to have read my question. I want a supported solution, preferably in Firefox, but if that can't be done, in the "tree style tab" extension. It seems weird to provide an alternative to tabs without also providing a way to hide the original tabs. Let's just leave this thread as it is for now, in case someone realizes there is a better solution. If I really care, I'll go the chrome.css route.
Bài viết này có hữu ích với bạn không?
Trích dẫn
cor-el
  • Top 10 Contributor
  • Moderator
17695 giải pháp 160110 câu trả lời
Được đăng

Giải pháp được chọn

There is currently no API available for a WebExtension to hide the Tab bar like I wrote above, so you will have to accept seeing two Tab bars if you do not want to try userChrome.css.

There is currently no API available for a WebExtension to hide the Tab bar like I wrote above, so you will have to accept seeing two Tab bars if you do not want to try userChrome.css.
Bài viết này có hữu ích với bạn không?
Trích dẫn
Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.