Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
W3mのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
W3m
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
{{Lowercase title}} [[Category:ウェブブラウザ]] [[en:w3m]] [[pt:W3m]] {{Related articles start}} {{Related|ELinks}} {{Related|Lynx}} {{Related articles end}} [https://salsa.debian.org/debian/w3m w3m] はテキストベースの Web ブラウザであり、[https://en.wikipedia.org/wiki/More_(command) more] や [ [less]] w3m を使用すると、[[ターミナルエミュレータ]] ウィンドウを通じて Web ページを閲覧できます。さらに、w3m は、HTML をプレーンテキストにタイプセットするテキスト整形ツールとしても使用できます。 == インストール == {{Pkg|w3m}} パッケージを [[インストール]] して下さい。 == 使い方 == こちらを参照 {{man|1|w3m}} == 設定 == w3m は、ブラウザ内の設定メニューを使用するか、設定ファイルを直接変更することによって構成できます。 より高度なオプションの一部は設定メニューを使用して使用できないため、設定ファイル自体を編集することをお勧めします。 デフォルトでは、すべての設定ファイルは {{ic|~/.w3m}} にあります。 == ヒントとテクニック == === Vim キーバインド === {{ic|~/.w3m/keymap}} を [https://gist.githubusercontent.com/Lovebird-Connoisseur/a11b9dbc5c056d705d1f0e1053de35af/raw/92b30d2ca4cf67b5816146f86f5d920b4bdfc492/keymap カスタム設定] に置き換えます。 === URL ヒント === w3m は [[qutebrowser]] のようなリンクナビゲーションをサポートしています。設定ファイルに移動して、次の行を {{ic|display_link_number 0}} から {{ic|display_link_number 1}} に変更するだけです。 そして、{{ic|keymap f COMMAND "RESHAPE ; LINK_BEGIN ; GOTO_LINK"}} と {{ic|keymap F COMMAND "RESHAPE ; LINK_BEGIN ; TAB_LINK"}} を {{ic|~/.w3m/keymap}} に追加します。 {{Note|qutebrowser はヒントを選択するためのさまざまなキーをサポートしていますが、w3m では数字キーを使用してリンクを選択することしかできません。}} === kittens イメージプロトコルの使用 === [[kitty]] ターミナルエミュレータのユーザーは、独自の [https://sw.kovidgoyal.net/kitty/graphics-protocol/ グラフィックスプロトコル] を使用することを選択できます。 これを行うには、{{ic|~/.w3m/config}} 内の次の行を変更するだけです。 inline_img_protocol 0 imgdisplay w3mimgdisplay これに: inline_img_protocol 4 imgdisplay kitty === 検索 === {{ic|wrap_search}} を 1 に設定すると、検索がページ内のすべての一致の最後に到達した後に先頭にジャンプできるようになります。 {{ic|ignorecase_search}} を 1 に設定すると、大文字と小文字を区別しない検索が有効になります。 {{Note|他のブラウザやテキストエディタとは異なり、w3m にはスマートケース検索のオプションがありません。}} === カスタム検索エンジン === キーをマップして、入力をキャプチャしてカスタム検索エンジンに渡す CGI スクリプトを起動できます。そのためには、まず {{ic|~/.w3m/keymap}} 内にキーバインドを作成してスクリプトを起動します。 keymap s COMMAND "SET_OPTION dictcommand=file:///cgi-bin/omnibar_google.cgi ; DICT_WORD" そして、[https://raw.githubusercontent.com/gotbletu/shownotes/master/w3m_omnibar/omnibar_google.cgiomnibar_google.cgi] を {{ic|~/.w3m/cgi-bin}} ディレクトリ内に配置し、実行権限を与えます。 上記のスクリプトは Google の結果を返しますが、この種のスクリプトを使用して StackOverflow、GitHub、DuckDuckGo、Reddit、その他多数の Web サイトを検索することもできます。 同様のスクリプトは [https://github.com/gotbletu/shownotes/tree/master/w3m_omnibar GitHub] で参照できます。 === Reader mode === Some webpages do not work well with w3m, be it because they use a lot of javascript or CSS to display most of their content. Very often you will have to scroll multiple pages just to get to the start of an article. This can be mitigated by first passing the webpages through a reader mode program such as {{AUR|rdrview-git}}. To do so add the following to {{ic|~/.w3m/keymap}}: keymap R COMMAND "READD_SHELL 'rdrview $W3M_URL -H 2> /dev/null 1> /tmp/readable.html' ; LOAD /tmp/readdable.html" === Redirect URLs === {{ic|~/.w3m/siteconf}} file is used to set some preferences depending on the website, such as: referrer and user agent. It can also be used to redirect to lighter (both in terms of layout and bandwidth), more privacy respecting alternatives to websites. In addition to this it can also be used to run certain CGI scripts. {{hc|~/.w3m/siteconf|<nowiki> url m!^https?://([a-z]+\.)?twitter\.com/! substitute_url "https://nitter.net/" url m!^https?://([a-z]+\.)?reddit\.com/! substitute_url "https://safereddit.com/" #url m!^https?://([a-z]+\.)?google\.com/! #substitute_url "https://duckduckgo.com/lite/" url m!^https?://([a-z]+\.)?imgur\.com/! substitute_url "https://rimgo.pussthecat.org/" url m!^https?://([a-z]+\.)?wikipedia\.com/! substitute_url "https://wl.vern.cc/" url "https://www.youtube.com/" exact substitute_url "file:/cgi-bin/video.cgi?" #substitute_url "https://yewtu.be/" url "https://stackoverflow.com/" exact substitute_url "https://ao.bloatcat.tk/" url "https://www.reuters.com/" exact substitute_url "https://neuters.de/" url "https://fandom.com/" exact substitute_url "https://breezewiki.pussthecat.org/" url "https://medium.com/" exact substitute_url "https://scribe.rip/" url "https://web.archive.org/" exact substitute_url "https://wayback-classic.net/" </nowiki>}} === Restore closed windows === Default w3m cannot reopen closed tabs, this can be added by binding the close tab button to echo the current URL of the tab to be closed to a text file, and binding another key to restore the latest URL added to the file, using a CGI script. Inside {{ic|~/.w3m/keymap}} add: keymap d COMMAND "EXTERN 'echo %s >> ~/.w3m/RestoreTab.txt' ; CLOSE_TAB" keymap u COMMAND TAB_GOTO file:/cgi-bin/restore_tab.cgi Then place the following file inside {{ic|~/.w3m/cgi-bin}} and make it [[executable]]. [https://raw.githubusercontent.com/felipesaa/A-vim-like-firefox-like-configuration-for-w3m/master/root-cgi-bin/restore_tab.cgi restore_tab.cgi] === Opening magnet links === [https://raw.githubusercontent.com/gotbletu/shownotes/master/w3m_plugins/cgi-bin/magnet.cgi magnet.cgi] can be used to make w3m auto open magnet links using [[Transmission]]. === Fingerprinting === ==== Using tor ==== You can use {{man|1|torify}} to route w3m traffic through {{Pkg|tor}}. $ torify w3m -v ==== User agent and headers ==== By default w3m uses its own user agent, meaning w3m users stand out amongst other users. Fingerprint can be reduced by using a more generic user agent, language and http_accept header. {{hc|~/.w3m/config|2= user_agent Mozilla/5.0 (Windows NO 10.0; rev:91.0) Gecko/20100101 Firefox91.0 no_referer 1 cross_origin_referer 0 accept_language en-US,en;q=0.5 accept_encoding gzip, deflate accept_media text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 }} ==== Disable cookies ==== To disable cookies set {{ic|use_cookie}} to 0 in {{ic|~/.w3m/config}}. ==== Disable cache ==== To disable cookies set {{ic|no_cache}} to 1 in {{ic|~/.w3m/config}}. == Troubleshooting == === Images flickering/causing lag === Unfortunately, sometimes w3m lags when trying to scroll past an image, to the point where the browser can become unresponsive for multiple seconds. A solution to this is outright disabling images, but this breaks some websites (for example, hacker news relies on GIFs for comment indentation). A more elegant solution would be to make a keybind to toggle images on or off, to do so add the following line to {{ic|~/.w3m/keymap}}: keymap i COMMAND "SET_OPTION display_image=toggle ; RESHAPE" == See also == * [https://w3m.sourceforge.net/ Homepage] * [https://github.com/tats/w3m Github repository] * [http://www.w3m.rocks/ w3m.rocks] * [https://github.com/felipesaa/A-vim-like-firefox-like-configuration-for-w3m A vim-like configuration for w3m] * [https://github.com/gotbletu/shownotes/tree/master/w3m_plugins/cgi-bin w3m plugins]
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Lowercase title
(
ソースを閲覧
)
テンプレート:META Related articles start
(
ソースを閲覧
)
テンプレート:Man
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Related
(
ソースを閲覧
)
テンプレート:Related articles end
(
ソースを閲覧
)
テンプレート:Related articles start
(
ソースを閲覧
)
W3m
に戻る。
検索
検索
W3mのソースを表示
話題を追加