[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

google looping!



Hi,

I don't know when it began, but I was made aware that Google
search is looping, thanks to Jidanni.  An easy workaround to
avoid it is to set `w3m-use-refresh' to nil, or to set
`w3m-user-agent' to that of a popular web browser[1].

The cause of the looping is that Google specifies the REFRESH
meta tag for zero seconds in every search result[2], and
emacs-w3m respects it by default.

What do you think about the best (or a better) way for emacs-w3m
to fix the problem?  What I think is to ignore the REFRESH meta
tag for only Google.

Thanks.

[1] An example of faking User-Agent
(setq w3m-user-agent
      "Mozilla/5.0 (Windows NT 6.1; rv:37.0) Gecko/20100101 Firefox/37.0")

[2] Google's REFRESH meta tag
<meta content="0;url=/search?q=emacs&amp;inlang=ja&amp;hl=ja&amp;
 ie=UTF-8&amp;gbv=1&amp;sei=z0FMVbjwI4asmAWKlYDoAQ"
 http-equiv="refresh">