0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【macOS】Safariでページ全体を翻訳したい。

Last updated at Posted at 2021-05-25

はじめに

Mac版のSafariでもGoogleChromeみたいにページ翻訳がしたい。
Translateという機能拡張をインストールすれば出来るらしいが、現在は不明なので今後に期待しつつ、別な方法でも翻訳できたのでメモしておきます。

ブックマークレット

ブラウザのブックマークにはURLが入ってますが、JavaScriptのコードを入れて動作させることもできます。

つまり、ブックマークに登録して使うプログラムをブックマークレットと言うみたいです。

Google翻訳

今回、使用するブックマークレットはページ全体をGoogle翻訳させると言うものです。

  1. [⌘+D]でこのページを[お気に入り]にブックマークします。
  2. [option+⌘+B]でブックマークを開きます。
  3. 以下のコードを追加したブックマークのURL(アドレス)の部分にコピペします。
  4. 名前を好きな名前に変えます。(例 : 📝)
  5. [shift+⌘+B]でブックマークバーを表示します。
ページ翻訳
javascript:location.href='https://translate.google.com/translate?sl=auto&tl=ja&u='+location.href

以下はサンプルです。
原文 翻訳

*この方法で翻訳できないページも結構あります。

🐰 お疲れさまでした。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?