Safari-- find feature?

Discussion in 'iPad' started by BacklitFirefly, May 8, 2010.

  1. BacklitFirefly macrumors 6502

    Joined:
    Dec 27, 2009
    Location:
    Sandhills Area, North Carolina
    #1
    Is there something like command + F in Safari for iPad?
     
  2. PsyD4Me macrumors 6502a

    PsyD4Me

    Joined:
    Mar 11, 2009
    Location:
    under your bed
    #2
    Whenever I need to find something on the site, I just click the cached site link, there you can see words highlighted
     
  3. ParishYoung macrumors 6502a

    Joined:
    Mar 18, 2008
    Location:
    Bristol, South West UK
    #3
    I doubt Safari does, but the Atomic Browser does.
     
  4. BacklitFirefly thread starter macrumors 6502

    Joined:
    Dec 27, 2009
    Location:
    Sandhills Area, North Carolina
    #4
    I've got Atomic. Pretty cool. Haven't bothered to sync my bookmarks yet though... So I'm not using it as much. I'm such a slug. :eek:
     
  5. HelveticaNeue macrumors 6502a

    HelveticaNeue

    Joined:
    Apr 24, 2010
    #5
    There isn't a find feature built into Safari on iPad. However, you can do a work around. Save a random bookmark in Safari then edit it and paste the following JavaScript into the address field. Now when you are on a page and want to search for a word, click this bookmark and a text box pops up and highlights what you search for in yellow on the Safari page. Works on iPhone too. I've been using it work two years. Works awesome!

    javascript:void%28s%3Dprompt%28%27Find%20text%3A%27%2C%27%27%29%29%3Bs%3D%27%28%27+s+%27%29%27%3Bx%3Dnew%20RegExp%28s%2C%27gi%27%29%3Brn%3DMath.floor%28Math.random%28%29*100%29%3Brid%3D%27z%27%20+%20rn%3Bb%20%3D%20document.body.innerHTML%3Bb%3Db.replace%28x%2C%27%3Cspan%20name%3D%27%20+%20rid%20+%20%27%20id%3D%27%20+%20rid%20+%20%27%20style%3D%5C%27color%3A%23000%3Bbackground-color%3Ayellow%3B%20font-weight%3Abold%3B%5C%27%3E%241%3C/span%3E%27%29%3Bvoid%28document.body.innerHTML%3Db%29%3Balert%28%27Found%20%27%20+%20document.getElementsByName%28rid%29.length%20+%20%27%20matches.%27%29%3Bwindow.scrollTo%280%2Cdocument.getElementsByName%28rid%29%5B0%5D.offsetTop%29%3B

    I found the reason. Because of the character limit MacRumors Forums imposes on lines of text, when you copy the text above and paste it in the URL bookmark field on the iPad, it inserts several spaces between the characters. I counted five when I just tested it. After you paste it in the field, go through and delete all the spaces then it works fine.
     
  6. Peter Harrison macrumors 6502a

    Peter Harrison

    Joined:
    Dec 24, 2009
    Location:
    UK
    #7
    This sounds fantastic, but it isn't working. Can you take another look at it?
     
  7. RawBert macrumors 68000

    RawBert

    Joined:
    Jan 19, 2010
    Location:
    North Hollywood, CA
    #8
    Cool... I just found the instructions online for this hack. Nice! Thanks, Halvetica! :)

    Link
     
  8. HelveticaNeue macrumors 6502a

    HelveticaNeue

    Joined:
    Apr 24, 2010
    #9
    I found the reason. For some reason when you copy the text above and paste it in the URL bookmark field on the iPad, it inserts several spaces between the characters. I counted five when I just tested it. After you paste it in the field, go through and delete all the spaces then it works fine.
     
  9. Peter Harrison macrumors 6502a

    Peter Harrison

    Joined:
    Dec 24, 2009
    Location:
    UK
    #10
    Tried it on iPhone this time (since you said it works) and with no spaces in the code. Still not working.
     
  10. HelveticaNeue macrumors 6502a

    HelveticaNeue

    Joined:
    Apr 24, 2010
    #11
    I just tried it on my iPhone (already tried it on my iPad) using the exact same text I quoted above. It worked fine. But I had to remove the spaces. Perhaps you missed one, I found it less difficult to find them on the iPhone.

    You can see where the spaces are. They are at the ends of 5 of the 7 lines I pasted in my first message. They can be found at the ends of lines 1, 2, 3, 5, 6.

    Scanning backwards through the link as you would using the magnifying glass on the iPad or iPhone, they are between:
    B yName
    Ele mentsByName
    %20 %27
    %2or n%3
    %3 Dnew
     
  11. RawBert macrumors 68000

    RawBert

    Joined:
    Jan 19, 2010
    Location:
    North Hollywood, CA
    #12
    Here's a much easier way. Just download this free App.

    Watch this video and instructions. Easy.
     
  12. fishmoose macrumors 68000

    Joined:
    Jul 1, 2008
    Location:
    Sweden
    #13
    Check Safari+ out: http://www.ipuhelin.com/en/safariplus/

    It's JavaScript's that works like "addons" for mobilesafari, i've been using it on my iPhone for a long time and it works great!
     
  13. Peter Harrison macrumors 6502a

    Peter Harrison

    Joined:
    Dec 24, 2009
    Location:
    UK
    #14
    Finally found one that works:

    Copied the same thing from somewhere else and it worked. Maybe I missed a space earlier on. Oh well, thanks again for pointing this out.
     
  14. wombat888 macrumors 6502a

    Joined:
    May 10, 2008
    #15
    Atomic is one dollar and iCab is two dollars. You pay $1 for a Coke and $2 for a latte. Save yourself some aggrevation.
     
  15. HiRez macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #16
    Pages has a find (and replace) feature, so it's odd that they didn't give Safari the same. But you can tell that all the initial Apple iPad apps are a little bare, quirky, and clearly rushed out for launch. Could be something they'll add in an update...after they improve the page cacheing I hope, because that is the #1 annoyance with Safari right now.

    Another thing I'd like to see in Safari is a vertical list of open thumbnails on the left side of the screen in landscape mode (split view), which would be consistent with how Mail works. It's a bit cumbersome to have to close out into the separate thumbnails page to switch to another page.
     

Share This Page