diff --git a/translators/google.js b/translators/google.js index 86bd5a8..8b187f9 100644 --- a/translators/google.js +++ b/translators/google.js @@ -6,7 +6,8 @@ function checkFinished () { if (!isPageLoaded || !isTranslationFinished || isScheduled) return; isScheduled = true; setTimeout(function () { - var spans = [].slice.call (document.querySelectorAll ('#result_box > span')); + var spans = [].slice.call (document.querySelectorAll ( + 'span.translation > span, #result_box > span')); var text = spans.reduce (function (res, i) { return res + ' ' + i.innerText; }, ''); diff --git a/version.json b/version.json index e366a39..25ec7c8 100644 --- a/version.json +++ b/version.json @@ -18,7 +18,7 @@ "path": "translators/bing.js" }, "Google translator": { - "version": 3, + "version": 4, "url": "https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/google.js", "path": "translators/google.js" },