搜尋 Mozilla 技術支援網站

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

了解更多

searching multiple words within page separately

  • 5 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 chet.yale

more options

1. I am searching within a page using the Find function. 2. When I type in a search word, Find accurately highlights the word. 3. I am trying to search multiple words at once, and have Find highlight them separately.

E.g. Search for "motor OR cables" would search for "motor" and "cables" and not "motor cables" i.e. the search string has to be truncated to allow for each word to be searched separately.

1. I am searching within a page using the Find function. 2. When I type in a search word, Find accurately highlights the word. 3. I am trying to search multiple words at once, and have Find highlight them separately. E.g. Search for "motor OR cables" would search for "motor" and "cables" and not "motor cables" i.e. the search string has to be truncated to allow for each word to be searched separately.

被選擇的解決方法

Hi,

  • How do I change highlighting colors?*
 You have to change the userContent.css file. You can also change buttons' icon with the userChrome.css file, but this is a little bit trickier.

Go to the following link to know everything about userContent.css and userChrome.css file:

http://www.askvg.com/list-of-files-that-can-be-hacked-to-configure-firefox/

Use following code in your newly created userContent.css file and change the colors you want by searching its hex code on google.


{{{ .searchwp-term-highlight1, .searchwp-term-highlight2, .searchwp-term-highlight3, .searchwp-term-highlight4, .searchwp-term-highlight5 {

 color: black !important;

}

.searchwp-term-highlight1 {

 background-color: #ffff00 !important;

}

.searchwp-term-highlight2 {

 background-color: #00ffff !important;

}

.searchwp-term-highlight3 {

 background-color: #00ff00 !important;

}

.searchwp-term-highlight4 {

 background-color: #ff7777 !important;

} }}}

If you don't like the look, you can always remove it from userContent.css and restart Firefox again.

Hope it will help you. You can always get back to me and I will see if I can help you.

Have a good day ahead.

從原來的回覆中察看解決方案 👍 2

所有回覆 (5)

more options

Hello,

You can use the following Add-on and let me know if It helped your cause:

https://addons.mozilla.org/en-US/firefox/addon/searchwp/

If it did not help you,please get back to me. I will try to help you again.

more options

The built-in Find feature doesn't do this. You might be able to find an add-on to do it. One place to search is:

You might also find a user script which can do this. A user script is a chunk of JavaScript code interpreted by the Greasemonkey extension. Unlike the official extensions site, you often need to do a little more research to see whether you can trust a user script, and also the interface is a bit clunkier. But I just happen to have read about one that might work for you (I haven't tried it myself):

more options

Works good. But can you change the color spectrum of the highlights? For example, when I type "motor cables action", I want the contrast to be higher. Currently, the successive search words are all highlighted by similar colors. I would like to have more contrast e.g. first word could be highlighted yellow, second blue, third green, fourth red. I dont think people would need more than 4 words on average. I am thinking of how I work when I highlight regular paper. Does this make sense? The question then is can the add on be customized to have a user choose the successive highlight colors?

more options

選擇的解決方法

Hi,

  • How do I change highlighting colors?*
 You have to change the userContent.css file. You can also change buttons' icon with the userChrome.css file, but this is a little bit trickier.

Go to the following link to know everything about userContent.css and userChrome.css file:

http://www.askvg.com/list-of-files-that-can-be-hacked-to-configure-firefox/

Use following code in your newly created userContent.css file and change the colors you want by searching its hex code on google.


{{{ .searchwp-term-highlight1, .searchwp-term-highlight2, .searchwp-term-highlight3, .searchwp-term-highlight4, .searchwp-term-highlight5 {

 color: black !important;

}

.searchwp-term-highlight1 {

 background-color: #ffff00 !important;

}

.searchwp-term-highlight2 {

 background-color: #00ffff !important;

}

.searchwp-term-highlight3 {

 background-color: #00ff00 !important;

}

.searchwp-term-highlight4 {

 background-color: #ff7777 !important;

} }}}

If you don't like the look, you can always remove it from userContent.css and restart Firefox again.

Hope it will help you. You can always get back to me and I will see if I can help you.

Have a good day ahead.

more options

Thanks a lot! Very helpful and prompt reply!