From a5c53106558d1c17ce56089f279a0a83336d12be Mon Sep 17 00:00:00 2001 From: "Gregory.K" Date: Sat, 4 Nov 2017 20:41:43 +0200 Subject: [PATCH] Change google.co.jp to .com (not that it matters a lot but .co.jp may be a regulated in some countries). --- simple-translate/background.js | 4 ++-- simple-translate/popup/popup.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/simple-translate/background.js b/simple-translate/background.js index ce3b4f8..66f0a5c 100644 --- a/simple-translate/background.js +++ b/simple-translate/background.js @@ -91,7 +91,7 @@ function translateTextMenu(info, tab) { //ページ全体を翻訳 function translatePageMenu(info, tab) { browser.tabs.create({ - 'url': "https://translate.google.co.jp/translate?hl=" + S.get().targetLang + "&sl=auto&u=" + encodeURIComponent(info.pageUrl), + 'url': "https://translate.google.com/translate?hl=" + S.get().targetLang + "&sl=auto&u=" + encodeURIComponent(info.pageUrl), 'active': true, 'index': tab.index + 1 }); @@ -100,7 +100,7 @@ function translatePageMenu(info, tab) { //リンクを翻訳 function translateLinkMenu(info, tab) { browser.tabs.create({ - 'url': "https://translate.google.co.jp/translate?hl=" + S.get().targetLang + "&sl=auto&u=" + encodeURIComponent(info.linkUrl), + 'url': "https://translate.google.com/translate?hl=" + S.get().targetLang + "&sl=auto&u=" + encodeURIComponent(info.linkUrl), 'active': true, 'index': tab.index + 1 }); diff --git a/simple-translate/popup/popup.js b/simple-translate/popup/popup.js index 61a3a44..920cf0c 100644 --- a/simple-translate/popup/popup.js +++ b/simple-translate/popup/popup.js @@ -70,7 +70,7 @@ function getSelectionWord(tabs) { //ページ翻訳へのリンクを表示 function showLink() { - document.getElementById("link").innerHTML = "" + browser.i18n.getMessage('showLink') + ""; + document.getElementById("link").innerHTML = "" + browser.i18n.getMessage('showLink') + ""; } //翻訳元テキストを表示