Updated google translation
This commit is contained in:
parent
a69213c956
commit
49c5659334
@ -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;
|
||||
}, '');
|
||||
|
@ -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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user