4 # g: file:/cgi-bin/google.cgi?%s
5 # google: file:/cgi-bin/google.cgi?%s
7 $url = "http://www.google.com/";
8 $_ = $ENV{"QUERY_STRING"};
9 s@^g(oogle)?:@@ && s@^//@@ && s@/$@@;
12 s/%([\da-f][\da-f])/pack('C', hex($1))/egi;
13 s/[\000-\040\+:#?&%<>"\177-\377]/sprintf('%%%02X', unpack('C', $&))/eg;
14 $url .= "search?q=$_&hl=ja&lr=lang_ja&ie=EUC-JP";
16 $input = "w3m-control: GOTO_LINK";
19 w3m-control: GOTO $url
20 w3m-control: DELETE_PREVBUF
21 w3m-control: SEARCH \\[
22 w3m-control: MOVE_RIGHT