Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Mozilla サポートの検索

サポート詐欺に注意してください。 私たちはあなたに通話やショートメッセージの送信、個人情報の共有を求めることはありません。疑わしい行為を見つけたら「迷惑行為を報告」からご報告ください。

詳しく学ぶ
このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。
解決済み アーカイブに保管済み

searching multiple words within page separately

chet.yale replied
chet.yale

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.

すべての返信 (5)

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.

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):

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?

選ばれた解決策

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.

Thanks a lot! Very helpful and prompt reply!