9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: hiro <23hiro@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] abaco and google links
Date: Thu, 14 Nov 2013 09:51:51 -0800	[thread overview]
Message-ID: <CAFSF3XM9JFCxxOiGfas-u6LAbmvidEouo9fgu_OcdgW1hc73Wg@mail.gmail.com> (raw)
In-Reply-To: <f8f0e7b32b35aecb48dae993861c3a88@coraid.com>

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	other threads:[~2013-11-14 17:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-14  9:04 Jonas
2013-11-14 15:39 ` erik quanstrom
2013-11-14 17:51   ` hiro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-11-08 20:34 Steve Simon
2013-11-08 21:56 ` cinap_lenrek
2013-11-08 21:20   ` Steve Simon
2013-11-08 21:23     ` erik quanstrom
2013-11-08 21:26     ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFSF3XM9JFCxxOiGfas-u6LAbmvidEouo9fgu_OcdgW1hc73Wg@mail.gmail.com \
    --to=23hiro@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).