The Un-Official Proxomitron Forum
Converting Javascript Links to Normal Links - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Website Customization (/forumdisplay.php?fid=9)
+--- Thread: Converting Javascript Links to Normal Links (/showthread.php?tid=694)



Converting Javascript Links to Normal Links - Kye-U - Dec. 24, 2005 04:43 PM

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]



- Guest - Dec. 28, 2005 03:45 AM

Dear Sir

How can we run the above mcro.I am not a computer expert but wouldlike to get rid of the filters.

Thanks


- Kye-U - Dec. 28, 2005 06:36 AM

Hi Smile!

Highlight the filter code (everything inside the box), right-click, copy, then go to Proxomitron's main screen, click on Edit Web Filters, right-click on the blank space beside a filter, then click on "Import".

If you've never used Proxomitron before, please read the guide I created:

http://prxbx.com/resources/setup.php