[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shortcut Google search result snooping
- From: jidanni@xxxxxxxxxxx
- Date: Wed, 18 Apr 2012 06:30:35 +0800
- X-ml-name: emacs-w3m
- X-mail-count: 11809
- References: <b4mvckznpev.fsf@xxxxxxx>
OK, to get it working in the Debian version, in .emacs-w3m one should add
(eval-after-load "w3m-filter"
'(defun w3m-filter-google (url)
"Extract real urls in Google search."
(goto-char (point-min))
(while (re-search-forward "\\(<a[\t\n ]+href=\"\\)/url\\?q=\\([^&]+\\)[^>]+>"
nil t)
(replace-match "\\1\\2\">"))))