Safari Search While Typing plugin?

Joined
Jun 30, 2007
Messages
3
Reaction score
0
Points
1
Hey all,

Not sure where to put this exactly, but does anyone know of a Safari plugin that activates the Find On Page (cmd+f) feature upon typing text (like the Firefox option)?

TYIA
 
Joined
Sep 23, 2006
Messages
893
Reaction score
20
Points
18
Location
Las Vegas, NV USA
Your Mac's Specs
iMac, and Macbook Pro
I don't know if this is close enough to what your looking for to help you or not. I use a java bookmarklet to Highlight specified search terms on web pages. Here is the java script. Just create a dummy bookmark in your bookmark bar, right click it, and replace the URL with the java in the address section. Name it as you wish.

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;})();

Oops! Replace the frowning face with the characters ":(" without the quotes.

Darn! It did it again. The characters are :&( without the & between them.
 
Joined
Jun 2, 2008
Messages
1,502
Reaction score
35
Points
48
Location
Louisville
Your Mac's Specs
MacBook 2.1GHz Core 2 Duo | 1GB RAM | OS X 10.6.3 | 250GB External HD | 8GB iPod Touch 1st Gen 3.1.3
Just wondering, why do you need to have that functionality? I'm trying to think of a practical use to have such a plug-in, but I fail to see one. Could you describe the usefulness the plug-in would serve?
 
Joined
Sep 5, 2007
Messages
452
Reaction score
9
Points
18
Location
Canada
Your Mac's Specs
Macbook Pro, 2.4GHz Core2 Duo 10.6.8, MacMini
Why wouldn't you use the find feature? It does work a little different, but I think it's the same keys to activate it on Safari as it is in Firefox...


Oops Sorry, guess I didn't read your question properly.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top