| java.lang.Object sunlabs.brazil.proxy.JunkBusterHandler
JunkBusterHandler | public class JunkBusterHandler implements Handler(Code) | | Remove junk images from web pages.
This approach is to take all requests for images that look like ads and
instead return a dummy bitmap.
Other approaches to removing ads are to filter the HTML returned and
(1) remove the ads altogether or (2) change the href in the ads to point
to a different bitmap. The advantage of option (2) is that all ads can be
changed to point to the same bitmap, increasing the caching performance
of the browser.
Properties:
- image
- The file to contain the replacement image.
- host
- The regular expression matching url's to reject.
If the expression starts with a '@', it interpreted as a
file name (minus the @) that contains a new-line separated
list of regular exporessions. See
sunlabs.brazil.util.regexp.Regexp for more information on
regular expressions.
|
|
|