diff --git a/hotkey.struct b/hotkey.struct index 816d5939e..2621ecfe5 100644 --- a/hotkey.struct +++ b/hotkey.struct @@ -4,7 +4,7 @@ ,"1"=//if(!$('.input:focus').length)$(".layui-layer button:contains('腾讯交互(带标签)')").click() ,"2"=//if(!$('.input:focus').length)$(".layui-layer button:contains('腾讯交互(去标签)')").click() ,"3"=//if(!$('.input:focus').length)$(".layui-layer button:contains('谷歌翻译(转发)')").click() - //,"4"=//if(!$('.input:focus').length)$(".layui-layer button:contains('AWS')").click() + ,"4"=//if(!$('.input:focus').length)$(".layui-layer button:contains('谷歌翻译(去标签转发)')").click() //,"5"=//if(!$('.input:focus').length)$(".layui-layer button:contains('阿里')").click() //,"6"=//if(!$('.input:focus').length)$(".layui-layer button:contains('新译')").click() //,"7"=//if(!$('.input:focus').length)$(".layui-layer button:contains('讯飞')").click() diff --git a/patch/main.js b/patch/main.js index d48d00516..47a4b8dd1 100644 --- a/patch/main.js +++ b/patch/main.js @@ -116,6 +116,7 @@ qqq_translate_patch=function(str){ str=str.replace(/& ?/g,"&") //修正& + str=str.replaceAll('& amp;',"&") str=str.replaceAll("&","&") return str @@ -164,8 +165,13 @@ qqq_translate_tts=async function (is_filt){ } //谷歌转发翻译 -qqq_translate_googleR=async function(){ +qqq_translate_googleR=async function(is_filt){ var old=$(".qqq_menu .old").html() + + if( is_filt ){ + old=old.replaceAll('{}'," ") + } + old=qqq_translate_form_path(old) @@ -326,7 +332,9 @@ html=`