Good at regexp's and JS?

Discussion in 'JavaScript' started by soulscratch, Aug 13, 2007.

  1. #1
    Hello there. I'm coding my first greasemonkey script (js for ff) and I'm having a bit of a problem.

    I'm searching in the innerHTML of an element for any strings that could be links. I'm going to replace those strings with actual live links, so "Oh my god becky look at www.foo.com" would turn to "Oh my god becky look at <a href=\"http://www.foo.com\">http://www.foo.com</a>".
    The reason I'm only using Javascript is because I cannot make any modifications to this "system" or "site".
    Here is the corresponding code, lmk if you have any questions..

    http://rafb.net/p/wD0AZx45.html
     
    soulscratch, Aug 13, 2007 IP