| Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :) |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Sep 23, 2006
Location: Las Vegas, NV USA
Posts: 891
![]() ![]() Mac 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=documen t.defaultView;function%20searchWithinNode(node,%20 te,%20len){var%20pos,%20skip,%20spannode,%20middle bit,%20endbit,%20middleclone;skip=0;if(%20node.nod eType==3%20){pos=node.data.toUpperCase().indexOf(t e);if(pos%3E=0){spannode=document.createElement(%2 2SPAN%22);spannode.style.backgroundColor=%22yellow %22;middlebit=node.splitText(pos);endbit=middlebit .splitText(len);middleclone=middlebit.cloneNode(tr ue);spannode.appendChild(middleclone);middlebit.pa rentNode.replaceChild(spannode,middlebit);++count; skip=1;}}else%20if(%20node.nodeType==1&&%20node.ch ildNodes%20&&%20node.tagName.toUpperCase()!=%22SCR IPT%22%20&&%20node.tagName.toUpperCase!=%22STYLE%2 2){for%20(var%20child=0;%20child%20%3C%20node.chil dNodes.length;%20++child){child=child+searchWithin Node(node.childNodes[child],%20te,%20len);}}return%20skip;}window.status=%22S earching%20for%20'%22+text+%22'...%22;searchWithin Node(document.body,%20text.toUpperCase(),%20text.l ength);window.status=%22Found%20%22+count+%22%20oc currence%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. |
| QUOTE Thanks | |
![]() Member Since: Jun 02, 2008
Location: Louisville
Posts: 1,502
![]() ![]() Mac 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
|
|
||||
| QUOTE Thanks | |||||
![]() Member Since: Sep 05, 2007
Location: Canada
Posts: 448
![]() Mac 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. “invincible ignorance” is an example of ignorance that can not be removed by any amount of evidence. It's now a widespread form of pollution. (Revised quote) An apple a day, keeps the psychiatrist away.. If you play a Windows install CD backwards it has satanic verses |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Covert Safari Plugin won't load or uninstall | Dingosnow | OS X - Operating System | 3 | 11-25-2009 09:27 AM |
| Safari search box plugins query | growlgrowl | OS X - Apps and Games | 3 | 09-30-2009 02:11 PM |
| divx web player plugin not working in Safari | mikey.b@gmx.com | OS X - Operating System | 2 | 09-06-2009 06:43 PM |
| Help with Safari Toolbar Please. | JKim123123 | OS X - Apps and Games | 5 | 06-01-2008 08:46 AM |
| Switch to Safari: A look at Safari for Windows (Personal blog post) | goobimama | Schweb's Lounge | 4 | 03-22-2008 12:56 PM |
All times are GMT -4. The time now is 03:00 AM.
Powered by vBulletin