aboutsummaryrefslogblamecommitdiffstats
path: root/doc-jp/README.siteconf
blob: c7617b3cb33a33e8093a3351229309330a2c2aba (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                    
                   




                                      

                                            



















                                                              





                                                                        
















                                                                          
siteconf: �������̥������ޥ���

siteconf �ϡ� URL �Υѥ�����ȡ������ɳ�դ���줿���꤫������ޤ���
siteconf ��Ȥ��ȡ����������ʸ�������ɤ���ꤷ�� "decode_url"
�ν��Ϥ���������ꡢ Google �Υ�����쥯���򱪲󤷤���ǽ��
�ץ饤�Х�������夵�����ꤹ�뤳�Ȥ��Ǥ��ޤ���

�ǥե���ȤǤ� siteconf �� ~/.w3m/siteconf �����ɤ߹��ޤ�ޤ���

===== ��ʸ =====

url <url>|/<re-url>/|m@<re-url>@i [exact]
substitute_url "<destination-url>"
url_charset <charset>
no_referer_from on|off
no_referer_to on|off
user_agent "string"

��������˽񤫤줿��Τ�ͥ�褵��ޤ���

===== �� =====

url "https://twitter.com/"
substitute_url "https://mobile.twitter.com/"

twitter.com ���Х��륵���Ȥ�ž�����ޤ���

url "http://your.bookmark.net/"
no_referer_from on

your.bookmark.net ����ĥ�ä���󥯤�é��ݤˡ� HTTP referer ��
����ʤ��褦�ˤ��ޤ���

url "http://www.google.com/url?" exact
substitute_url "file:///cgi-bin/your-redirector.cgi?"

Google �Υ�����쥯���� local CGI ��ž�����ޤ���

url /^http:\/\/[a-z]*\.wikipedia\.org\//
url_charset utf-8

Ʊ���� "decode_url" ���ץ����򥪥�ˤ���ȡ� Wikipedia �ؤ�
��󥯤� UTF-8 �Ȥ��ƥǥ����ɤ���ɽ�����ޤ���

url m@^https?://(.*\.)google\.com/@
user_agent "Lynx/2.8.8dev.3 libwww-FM/2.14 SSL-MM/1.4.1"

Google �� Lynx �Ǥ���ȹ𤲤ޤ���(����ˤ��ƥ����ȥ֥饦�������ڡ�����
�֤�ޤ�)

===== ����ɽ���ˤĤ��� =====

��������ɽ���Ϥ������Ʊ����̣��ɽ���ޤ���

/http:\/\/www\.example\.com\//
m/http:\/\/www\.example\.com\//
m@http://www\.example\.com/@
m!http://www\.example\.com/!

�Ǹ�� 'i' �����Ҥ��դ���ȡ���ʸ����ʸ������̤����˾ȹ��Ԥ��ޤ���
�㤨�С� m@^http://www\.example\.com/abc/@i �ϰʲ��Τ�����Ȥ���פ��ޤ���

http://www.example.com/abc/
http://www.example.com/Abc/
http://www.example.com/ABC/

���������ۥ���̾����ʬ�Ͼ�˾�ʸ�����Ѵ����Ƥ�����Ӥ��ޤ���