Skip to content

Commit

Permalink
Merge pull request #44 from TicklTock/fixDeeplweb
Browse files Browse the repository at this point in the history
修复了deepl网页翻译
  • Loading branch information
sxzxs authored Dec 5, 2024
2 parents bf61cce + 0375854 commit 1305395
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utility/网页翻译集合.ah2
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class Deepl_web_cd extends Web_cd
input_js :='
(
{
const editor = document.querySelector("#headlessui-tabs-panel-7 > div > div.border-dark-7.border.bg-white.shadow-sm.xl\\:rounded-lg > section > div > div.rounded-bl-inherit.rounded-br-inherit.grid.grid-cols-1.grid-rows-\\[auto_auto\\].min-\\[768px\\]\\:grid-cols-\\[1fr_auto_1fr\\].min-\\[768px\\]\\:grid-rows-\\[1fr\\].TextTranslatorLayout-module--bothareas--wXSVy > div.rounded-bl-inherit.relative.z-\\[1\\].min-h-\\[240px\\].min-w-0.md\\:min-h-\\[clamp\\(250px\\,50vh\\,557px\\)\\] > section > div > div.relative.flex-1 > d-textarea");
const inputbox = document.querySelector("#headlessui-tabs-panel-7 > div > div.border-dark-7.border.bg-white.shadow-sm.xl\\:rounded-lg > section > div > div.rounded-bl-inherit.rounded-br-inherit.grid.grid-cols-1.grid-rows-\\[auto_auto\\].min-\\[768px\\]\\:grid-cols-\\[1fr_auto_1fr\\].min-\\[768px\\]\\:grid-rows-\\[1fr\\].TextTranslatorLayout-module--bothareas--wXSVy > div.rounded-bl-inherit.relative.z-\\[1\\].min-h-\\[240px\\].min-w-0.md\\:min-h-\\[clamp\\(250px\\,50vh\\,557px\\)\\] > section > div > div.relative.flex-1 > d-textarea > div");
const editor = document.querySelector("d-textarea[name=\"source\"]");
const inputbox = document.querySelector("d-textarea[name=\"source\"] > div");
inputbox.textContent = "{1}";
setTimeout(() => {
editor.dispatchEvent(new InputEvent("input"));
Expand All @@ -23,7 +23,7 @@ class Deepl_web_cd extends Web_cd
(
{

o = document.querySelector('#headlessui-tabs-panel-7 > div > div.border-dark-7.border.bg-white.shadow-sm.xl\\:rounded-lg > section > div > div.rounded-bl-inherit.rounded-br-inherit.grid.grid-cols-1.grid-rows-\\[auto_auto\\].min-\\[768px\\]\\:grid-cols-\\[1fr_auto_1fr\\].min-\\[768px\\]\\:grid-rows-\\[1fr\\].TextTranslatorLayout-module--bothareas--wXSVy > div.rounded-br-inherit.relative.z-\\[1\\].min-h-\\[240px\\].min-w-0.md\\:min-h-\\[clamp\\(250px\\,50vh\\,557px\\)\\].max-\\[768px\\]\\:min-h-\\[375px\\] > section > div.relative.flex.flex-1.flex-col > d-textarea')
o = document.querySelector('d-textarea[name=\"target\"]')
function callback3(records) {
records.forEach(function(record) {
try
Expand Down

0 comments on commit 1305395

Please sign in to comment.