Post Reply 
Remove download button request....
Jan. 24, 2006, 06:23 AM
Post: #1
Remove download button request....
Is there any way you can create a web filter that will remove buttons of this kind...

<button onclick="window.NoLocation='some link'" style="some font style">Link Title</button>

And replace them with simple links like this?

<a href="some link">[/url]

I have tried to create a filter myself, but I end up either cutting out too much or too little. Can anyone help me? Smile!
Quote this message in a reply
Jan. 24, 2006, 06:47 AM
Post: #2
 
Try this:

Code:
[Patterns]
Name = "<BUTTON> to <A>"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 128
Match = "<button*onclick=$AVQ(*window.(location|replace)=\'\1\'*)*>\2</button>"
Replace = "<a href="\1">\2[/url]"

Should give you some ideas I hope Wink
Visit this user's website
Add Thank You Quote this message in a reply
Jan. 24, 2006, 07:04 AM
Post: #3
 
Thanks!


You just saved me quite a bit of work. Smile! I had to make one slight change, but now it works like a charm. Smile! No more of those pesky buttons. Smile!
Quote this message in a reply
Jan. 24, 2006, 08:04 PM
Post: #4
 
Glad it works! Wink
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: