搜尋 Mozilla 技術支援網站

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

了解更多

How do I make the "find in page" (ctrl-f) bar a permanent fixture for all tabs everytime.

more options

The search bar that appears with hotkey Ctrl-F, I would like to make that bar permanent, I want it to always show for all tabs. So that I dont need to Ctrl-F each time

The search bar that appears with hotkey Ctrl-F, I would like to make that bar permanent, I want it to always show for all tabs. So that I dont need to Ctrl-F each time

所有回覆 (7)

more options

Hi, may have some bugs as is a beta but is worth a look : https://addons.mozilla.org/en-GB/firefox/addon/brandon1024-find/

Seems to be all there is in what your looking for.

Please let us know if this solved your issue or if need further assistance.

more options

Pkshadow said

Hi, may have some bugs as is a beta but is worth a look : https://addons.mozilla.org/en-GB/firefox/addon/brandon1024-find/ Seems to be all there is in what your looking for. Please let us know if this solved your issue or if need further assistance.

actually i already tried that addon. not quite what i was looking for. this other thing i found seems closer to what id like, but i cant get it to work, it uses something called the "userChrome.css" to change the way firefox behaves. https://support.mozilla.org/en-US/questions/773700 http://www.linnhe2.free-online.co.uk/firefox/chrome.html I created the "chrome" folder in my firefox profile and also created the "userChrome.css" file with


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */

  1. FindToolbar { display: -moz-box !important; }

but it doesnt seem to do anything, im not sure if i missed a step or if maybe this method of modifying firefox's behaviour doesnt work anymore with the latest version which is what i have "Firefox Quantum 60.0.2 64bit"

more options

Hi, resident guru on userChrome who owns this site would know, maybe. *https://www.userchrome.org/ All can do is try and make sure everything is copy, pasted as was found. Also that file extension is visible so not making usserChrome.css.txt Also Restart Firefox after making changes.

Version 60 there were some changes that killed off some scripts. See how you make out 1 more time then post back for help.

more options

Pkshadow said

Hi, resident guru on userChrome who owns this site would know, maybe. *https://www.userchrome.org/ All can do is try and make sure everything is copy, pasted as was found. Also that file extension is visible so not making usserChrome.css.txt Also Restart Firefox after making changes. Version 60 there were some changes that killed off some scripts. See how you make out 1 more time then post back for help.

thanks for the quick replies. I do have my windows explorer set to show file extensions so I am sure the file is userChrome.css I also went through the site you linked and tried the steps again with no luck. I did also restart firefox on both tries.

more options

Pkshadow said

Hi, resident guru on userChrome who owns this site would know, maybe. *https://www.userchrome.org/ All can do is try and make sure everything is copy, pasted as was found. Also that file extension is visible so not making usserChrome.css.txt Also Restart Firefox after making changes. Version 60 there were some changes that killed off some scripts. See how you make out 1 more time then post back for help.

i also tried adding more tricks to my userChrome.css file to make sure firefox was actually using it and those did work, so i believed ive narrowed down the problem. the line of code "#FindToolbar { display: -moz-box !important; }" doesn't work

由 isaac.christie 於 修改

more options

See:

  • chrome://global/skin/findBar.css

CSS rules applied when the findbar is hidden:

findbar[hidden] {
  /* Override display:none to make the transition work. */
  display: -moz-box;
  visibility: collapse;
  margin-bottom: -1em;
  opacity: 0;
  transition-delay: 0s, 0s, 150ms;
}

You need to override these properties. But it doesn't work probably because the findbar needs to be initialized via JavaScript to make it work properly. The code works though in a way that you can't close the find bar once it is open.

findbar[hidden] {
 visibility: visible !important;
 margin-bottom: 0 !important
 opacity: 1 !important
}
more options

cor-el said

See:
  • chrome://global/skin/findBar.css
CSS rules applied when the findbar is hidden:
findbar[hidden] {
  /* Override display:none to make the transition work. */
  display: -moz-box;
  visibility: collapse;
  margin-bottom: -1em;
  opacity: 0;
  transition-delay: 0s, 0s, 150ms;
}

You need to override these properties. But it doesn't work probably because the findbar needs to be initialized via JavaScript to make it work properly. The code works though in a way that you can't close the find bar once it is open.

findbar[hidden] {
 visibility: visible !important;
 margin-bottom: 0 !important
 opacity: 1 !important
}

thanks for your post, I wont close the question though incase there is a more elegant solution