Post Reply 
[Req] Remove user posted comments
Aug. 13, 2008, 03:19 AM
Post: #6
RE: [Req] Remove user posted comments
Try this filter (all I did was just add div to the list of tags to be matched; now it matches dl, ul, ol and div):

Code:
[Patterns]
Name = "Remove Comments"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 50
Match = "(<((d|u|o)l|div)\0([^>]++)\2>)\3$SET(flags=f$GET(flags))"
        "($TST(\2=*(id|class)=$AV(([a-z_-]++|)comment(s|list))*)"
        "$SET(1=<br />\r\nComments: <a href="javascript:;" onclick="document.getElementById('prx_hide_comments').style.display='block';">Show</a> | "
        "<a href="javascript:;" onclick="document.getElementById('prx_hide_comments').style.display='none';">Hide</a><br /><br />\r\n"
        "<div id="prx_hide_comments" style="display: none;">\r\n\3)$SET(match=\0)"
        "|$SET(1=\3))"
        "|</($TST(match))\9 >"
        "($TST(flags=ff(?*)\0&$SET(flags=\0))$SET(1=</\9>)"
        "|$TST(flags=f&$SET(flags=))$SET(1=</\9>\r\n</div>)$SET(match=))"
Replace = "\1"

I'm not sure if it'll break any page; let me know if it does!
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[Req] Remove user posted comments - Guest - Aug. 07, 2008, 10:52 PM
RE: [Req] Remove user posted comments - Kye-U - Aug. 07, 2008, 10:55 PM
RE: [Req] Remove user posted comments - Guest - Aug. 11, 2008, 12:13 AM
RE: [Req] Remove user posted comments - Kye-U - Aug. 11, 2008, 03:06 AM
RE: [Req] Remove user posted comments - Guest - Aug. 12, 2008, 10:15 AM
RE: [Req] Remove user posted comments - Kye-U - Aug. 13, 2008 03:19 AM
RE: [Req] Remove user posted comments - Guest - Aug. 15, 2008, 12:52 AM

Forum Jump: