您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
翻译去回车啊
当前为
// ==UserScript== // @name 翻译去回车 // @description 翻译去回车啊 // @namespace Violentmonkey Scripts // @match https://translate.google.cn/* // @match https://translate.google.com/* // @grant none // @require http://code.jquery.com/jquery-1.12.4.min.js // @run-at document-end // @version 0.0.1.20201223020538 // ==/UserScript==zzz function deleteEnter(){ txtarea = $(".er8xn")[0] txt = txtarea.value; //console.log(txt) for (var i=0;i<txt.length;i++) { if(txt.indexOf("\n"))txt = txt.replace("\n"," "); } //console.log(txt) txtarea.value = txt; } function helloworld(){ let buttonParent = $(".U0xwnf") let button = $('<div class="cWQYBc" jsaction="JIbuQc: XS1pob" jsname="qDeCrf"><button class="VfPpkd-LgbsSe VfPpkd-LgbsSe-OWXEXe-INsAgc Rj2Mlf OLiIxf PDpWxe hL2wFc" jscontroller="soHxf" jsaction="click:cOuCgd; mousedown:UX7yZ; mouseup:lbsD7e; mouseenter:tfO1Yc; mouseleave:JywGue; touchstart:p6p2H; touchmove:FwuNnf; touchend:yfqBxc; touchcancel:JMtRjd; focus:AHmuwe; blur:O22p3e; contextmenu:mg9Pef;" aria-label="文档翻译"><div class="VfPpkd-Jh9lGc"></div><i class="material-icons-extended VfPpkd-kBDsod ep0rzf" aria-hidden="true" lang="">insert_drive_file</i><span jsname="V67aGc" class="VfPpkd-vQzf8d" aria-hidden="true">去回车</span></button></div>') button.click(deleteEnter) buttonParent.append(button) } //window.onload=function(){ helloworld() //window.setTimeout(helloworld,1000); //}