Post Reply 
web page filter question
May. 09, 2005, 07:00 PM
Post: #1
 
Hi
To better utilize space on my laptop screen (using my rss reader), and avoid scrolling a lot, I want to keep only the body text of the page. I want to leave top-ads, side menues etc- out. If the page is say 200k, I am keeping maybe only 20k, only adding some start and end html-tags. I've tried to make a Proxomitron webfilter like

Matching expression:
* <sometag> \1 <sometag> *
Replacement text:
<sometag> \1 <sometag>

but it wont work, maybe because the byte limit is exceeded?

Is Proxomitron the right tool for doing this thing? If yes, how do I do it? If not, does anyone know any suitable tool?

thanks
tom
Add Thank You Quote this message in a reply
May. 09, 2005, 07:42 PM
Post: #2
 
Hi, normally you can do...
Code:
[Patterns]
Name = "kill all above <orig-tag>"
Active = FALSE
Bounds = "*<orig-tag>"
Limit = 32767
Match = "*&$STOP()"
Replace = "<new-tag>"

Name = "kill all below </orig-tag>"
Active = FALSE
Limit = 16
Match = "</orig-tag >"
Replace = "</new-tag>\k"
...but only if you know that <orig-tag> indeed appears on that page and is no more than 32767-10 bytes away from the top, or else things are getting *really* slow. "\k" is a meta-char that kills the connection here after you've got all the content you want.

Moved to "Filter Help"

sidki
Add Thank You Quote this message in a reply
May. 10, 2005, 09:51 AM
Post: #3
 
sidki3003 Wrote:Hi, normally you can do...
Code:
[Patterns]
Name = "kill all above <orig-tag>"
Active = FALSE
Bounds = "*<orig-tag>"
Limit = 32767
Match = "*&$STOP()"
Replace = "<new-tag>"

Name = "kill all below </orig-tag>"
Active = FALSE
Limit = 16
Match = "</orig-tag >"
Replace = "</new-tag>\k"
...but only if you know that <orig-tag> indeed appears on that page and is no more than 32767-10 bytes away from the top, or else things are getting *really* slow. "\k" is a meta-char that kills the connection here after you've got all the content you want.

Moved to "Filter Help"

sidki
works very well. Thanks. tom
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: