// ==UserScript== // @name fanyi自动 // @license MIT // @version 0.1 // @description fanyi // @author liuzihaohao // @match https://fanyi.baidu.com/ // @grant none // @namespace https://greasyfork.org/users/937290 // @downloadURL none // ==/UserScript== (function() { $('document').ready(function(){setTimeout(function () { document.getElementsByClassName("op-copy")[0].onclick = function(){ document.getElementById("transOtherRight").innerHTML+=""; document.getElementById("transOtherRight").innerHTML+=document.getElementsByClassName("strong")[1].innerText; document.getElementById("transOtherRight").innerHTML+="
"; document.getElementById("transOtherRight").innerHTML+=document.getElementsByClassName("phonetic-transcription")[0].children[1].innerText; for(var i=0;i