somewhat related:

s./url?q=..g
and while we're at it
        /<div id="tads"/,/^<\/div>/d;
        /<script type/,/<\/script>/d;
        /<div id="gbar">/,/<div class="gbh" style="right:0">/d;
        /<td class="sfbgg" valign="top">/,/<\/td>/d;
        s/<div class="lsbb"><button/<div class="lsbb"><input/;
        /<div id="rhs_block"/,/^<\/div>/d;
        /<h1><a href="\/webhp?hl=en"/d;
        /<div class="flc"/,$d;
        /^<h3 class="r"><a href="\/images?q=/,/<li class="g">/d'

Still experimenting what's the best place to put such code. I'm
definitely not going to use java scripts in the browser for this, so
right now I have my own /search script on my home server that wgets
from google and eventually runs this fix on the output.
Oh, don't forget to format nicely (I'm using tidy on linux for
html-tidying, there might also be utf-8 issues, so ie=utf8&oe=utf8 in
the http query to google might help)

I'm not presenting a finished product, because I'm on linux and my
script sucks. I didn't yet manage to make a better, reusable
"framework" for this. Although I've been playing with the thought of
using a trusted, SSL-capable http proxy for the purpose. But the SSL
part of it made me stale in disgust.

Reply via email to