Post Reply 
Converting Javascript Links to Normal Links
Dec. 24, 2005, 04:43 PM
Post: #1
Converting Javascript Links to Normal Links
Code:
[Patterns]
Name = "<A> Javascript Link Remover {Beta} [Kye-U]"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 512
Match = "<a\1href=$AV(javascript:(^emoticon)\w\("
        ""
        "(*|)"
        "(\'(http://|*(.[a-Z]+{3,4}|\?|\w/|/\w|..)*)\2\',\'*\',\'*\'"
        "|\'*\',\'(http://|*(.[a-Z]+{3,4}|\?|\w/|/\w|..)*)\2\',\'*\'"
        "|\'*\',\'*\',\'(http://|*(.[a-Z]+{3,4}|\?|\w/|/\w|..)*)\2\')"
        "(*|)"
        ""
        "\)(;|))\3>"
Replace = "<a\1href="\2"\3>"

Very ugly, but works Wink

Changes:

Quote:<a href="jOpenWindow('test.html','Window','Popup',0);">Test[/url]

To:

Quote:<a href="test.html">Test[/url]
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Converting Javascript Links to Normal Links - Kye-U - Dec. 24, 2005 04:43 PM
[] - Guest - Dec. 28, 2005, 03:45 AM
[] - Kye-U - Dec. 28, 2005, 06:36 AM

Forum Jump: