diff --git a/translators/yandex.js b/translators/yandex.js index 25131c2..3c388f9 100644 --- a/translators/yandex.js +++ b/translators/yandex.js @@ -4,9 +4,9 @@ var active = window.location.href !== "about:blank"; function checkFinished() { if (!active) return; - let spans = [].slice.call(document.querySelectorAll('span.translation-chunk')); + let spans = [].slice.call(document.querySelectorAll('span.translation-word')); let text = spans.reduce(function (res, i) { - return res + ' ' + i.innerText; + return res + i.innerText; }, '').trim(); if (text === lastText || text === '') diff --git a/updates.json b/updates.json index d0c3757..a92ac56 100644 --- a/updates.json +++ b/updates.json @@ -606,7 +606,7 @@ {"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/papago.js", "path":"$translators$/papago.js", "md5":"603a56fc23990453942064ec53d1eaa3", "size":2164} ]} ,"yandex": {"files":[ - {"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/yandex.js", "path":"$translators$/yandex.js", "md5":"6bc71c24270ca418b193f073e6155d5f", "size":1177} + {"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/yandex.js", "path":"$translators$/yandex.js", "md5":"82c10bddde30f3a1dc6675f7eea71986", "size":1170} ]} }