| 23/38 |
© 2004 by Philippe "BooK" Bruhat.
|
I'm playing go on http://www.dragongoserver.net/
Every time one plays, a textarea is displayed to enable the
sending of a message to their opponent
Most of the time, I've got nothing to say, and the textarea is
pushing the submit button away
So I removed the offending textarea!
# remove messages from the server $proxy->push_filter( host => 'www.dragongoserver.net', path => '^/game.php', response => HTTP::Proxy::BodyFilter::tags->new, response => HTTP::Proxy::BodyFilter::simple->new( sub { ${$_[1]} =~ s|(</?textarea.*>)|<!-- $1 -->| } ) );