diff --git a/translators/deepl.js b/translators/deepl.js index a264737..fd0d01c 100644 --- a/translators/deepl.js +++ b/translators/deepl.js @@ -46,7 +46,7 @@ function translate(text, from, to) { let langs = from + '/' + to + '/'; if (window.location.href.indexOf('www.deepl.com/translator') !== -1 && window.location.href.indexOf(langs) !== -1) { - var input = document.querySelector('d-textarea[dl-test=translator-source-input] p'); + var input = document.querySelector('d-textarea.lmt__source_textarea p'); if (input.innerText == singleLineText) { console.log('using cached result'); lastText = ''; diff --git a/updates.json b/updates.json index 3093373..1f97879 100644 --- a/updates.json +++ b/updates.json @@ -594,7 +594,7 @@ {"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/bing.js", "path":"$translators$/bing.js", "md5":"a982e9aa6cac598f4c9bf4a56386d13e", "size":1481} ]} ,"deepl": {"files":[ - {"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/deepl.js", "path":"$translators$/deepl.js", "md5":"54ee1a3c198e2919abc2345acf114bac", "size":2068} + {"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/deepl.js", "path":"$translators$/deepl.js", "md5":"b05cafaf1c9600bf02dedd699de7df20", "size":2056} ]} ,"google": {"files":[ {"url":"https://raw.githubusercontent.com/OneMoreGres/ScreenTranslator/master/translators/google.js", "path":"$translators$/google.js", "md5":"793d6628ac9e26a1f3cc00fa9c863495", "size":1508}