The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniWeb General (http://forums.omnigroup.com/forumdisplay.php?f=8)
-   -   I don't like 'Find' (http://forums.omnigroup.com/showthread.php?t=19754)

njoy 2011-01-16 10:42 AM

I don't like 'Find'
 
Hi. As a new user of Omniweb, I am wondering if there is a way to search on a page besides the box that pops up when I press Command+F. I really dislike it. For one thing, the grey highlights are hard for me to see. Can the color be changed? Also, it doesn't tell me "not found" either at the beginning of the search or when all instances of my search term are exhausted.

Ideally I'd love something like Safari which seems a lot more functional to me, even in its simplest form.

Thanks for any suggestions.

frankiec 2011-01-17 10:33 AM

The default system highlight color is used.

Go to System Preferences then Appearance to change it to whatever you want.

njoy 2011-01-18 11:50 PM

Okay, but . . .
 
Thank you, I did that and can now highlight in a nice, bright yellow instead of light blue. This good but, sadly, the barely visible grey in Find hasn't changed.

Now what?

njoy 2011-01-20 06:28 PM

Find in Word for Mac
 
It's interesting that the Find highlight in Word for Mac has changed to yellow but the same thing in OmniWeb remains an almost invisible grey.

frankiec 2011-01-21 07:39 PM

It works for me. Mac OS X 10.6.6 and OmniWeb 5.11 sneaky peak.

[IMG]http://img838.imageshack.us/img838/4756/screenshot20110121at104.png[/IMG]

columbo 2011-01-22 12:39 AM

[QUOTE=njoy;92018]It's interesting that the Find highlight in Word for Mac has changed to yellow but the same thing in OmniWeb remains an almost invisible grey.[/QUOTE]

It's grey because the search window is in foreground.
Once you closing it, the founded occurrences will be highlighted in the color defined in System Preferences's Appearance.

You can also bookmark that javascript code to highlight all at once all of occurrences of a search string (this code was a long time ago a tip from OmniWeb's product page):

[CODE]javascript:(function(){var%20count=0,%20text,%20dv;text=prompt(%22Search%20phrase:%22,%20%22%22);if(text==null%20||%20text.length==0)return;dv=document.defaultView;function%20searchWithinNode(node,%20te,%20len){var%20pos,%20skip,%20spannode,%20middlebit,%20endbit,%20middleclone;skip=0;if(%20node.nodeType==3%20){pos=node.data.toUpperCase().indexOf(te);if(pos%3E=0){spannode=document.createElement(%22SPAN%22);spannode.style.backgroundColor=%22yellow%22;middlebit=node.splitText(pos);endbit=middlebit.splitText(len);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);++count;skip=1;}}else%20if(%20node.nodeType==1&&%20node.childNodes%20&&%20node.tagName.toUpperCase()!=%22SCRIPT%22%20&&%20node.tagName.toUpperCase!=%22STYLE%22){for%20(var%20child=0;%20child%20%3C%20node.childNodes.length;%20++child){child=child+searchWithinNode(node.childNodes[child],%20te,%20len);}}return%20skip;}window.status=%22Searching%20for%20'%22+text+%22'...%22;searchWithinNode(document.body,%20text.toUpperCase(),%20text.length);window.status=%22Found%20%22+count+%22%20occurrence%22+(count==1?%22%22:%22s%22)+%22%20of%20'%22+text+%22'.%22;})();[/CODE]

frankiec 2011-01-22 09:20 AM

This is one of the reasons why I love OmniWeb. It is a true Mac OS X app. Not a weird, hybrid, iLife-looking mish-mash. *cough* Safari *cough* ...and it's not an ugly, non-native, 90s-era-feeling, shareware-ish port. *cough* Firefox *cough*

columbo 2011-01-22 04:30 PM

[QUOTE=frankiec;92105]This is one of the reasons why I love OmniWeb. It is a true Mac OS X app. Not a weird, hybrid, iLife-looking mish-mash. *cough* Safari *cough* ...and it's not an ugly, non-native, 90s-era-feeling, shareware-ish port. *cough* Firefox *cough*[/QUOTE]

Amen.
Lets pray hard that OG will continue to support and maintain that outstanding browser.

njoy 2011-01-24 03:00 PM

Thanks for replies. Columbo, could you please tell me step by step. Sorry, my only excuse is that I'm a grandma.

As to Omniweb, I like it except that my toolbars won't stay put. They just come and go at will and I have to reset the ones I want. This has never happened to me in any other browser.

Oh, and Я тебя люблю, слишком, foggie.

columbo 2011-01-25 03:31 PM

[QUOTE=njoy;92231]Thanks for replies. Columbo, could you please tell me step by step. Sorry, my only excuse is that I'm a grandma.[/QUOTE]

It's really simple:

[B]1) Create a new bookmark (Command-D shortcut)
2) Name that new bookmark
3) Put the following javascript code in the "Address" field:[/B]

[CODE]javascript:(function(){var%20count=0,%20text,%20dv;text=prompt(%22Search%20phrase:%22,%20%22%22);if(text==null%20||%20text.length==0)return;dv=document.defaultView;function%20searchWithinNode(node,%20te,%20len){var%20pos,%20skip,%20spannode,%20middlebit,%20endbit,%20middleclone;skip=0;if(%20node.nodeType==3%20){pos=node.data.toUpperCase().indexOf(te);if(pos%3E=0){spannode=document.createElement(%22SPAN%22);spannode.style.backgroundColor=%22yellow%22;middlebit=node.splitText(pos);endbit=middlebit.splitText(len);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);++count;skip=1;}}else%20if(%20node.nodeType==1&&%20node.childNodes%20&&%20node.tagName.toUpperCase()!=%22SCRIPT%22%20&&%20node.tagName.toUpperCase!=%22STYLE%22){for%20(var%20child=0;%20child%20%3C%20node.childNodes.length;%20++child){child=child+searchWithinNode(node.childNodes[child],%20te,%20len);}}return%20skip;}window.status=%22Searching%20for%20'%22+text+%22'...%22;searchWithinNode(document.body,%20text.toUpperCase(),%20text.length);window.status=%22Found%20%22+count+%22%20occurrence%22+(count==1?%22%22:%22s%22)+%22%20of%20'%22+text+%22'.%22;})();[/CODE]

[B]4) Save that newly created bookmark[/B]

Just use that bookmark when you want to highlight all matches of a word.


All times are GMT -8. The time now is 08:26 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.