searching multiple words within page 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.
Valittu ratkaisu
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.
Lue tämä vastaus kontekstissaan 👍 2Kaikki vastaukset (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):
- Greasemonkey: https://addons.mozilla.org/firefox/addon/greasemonkey/
- Script page on mirror site: http://userscripts-mirror.org/scripts/show/292083.html (official site is kaput)
- Discussion thread about the development of the script: http://userscripts-mirror.org/topics/187122.html
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?
Valittu ratkaisu
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!