// ==UserScript== // @name fanyi自动 // @license MIT // @version 0.2 // @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("strong")[0].onclick = function(){ var a=""; a+="
"; a+=document.getElementsByClassName("strong")[0].innerText; a+="
"; a+=document.getElementsByClassName("phonetic-transcription")[0].children[1].innerText; for(var i=0;i