劃詞翻譯:海詞和必應(yīng)兩鍵。
//當(dāng)前頁(yè)面 new function () { var items = [ { label: '翻譯當(dāng)前頁(yè)面', tooltiptext: "左鍵:有道\n中鍵:谷歌\n右鍵:必應(yīng)", image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABnUlEQVRYhe2Uv0sCYRjH/V8ENzeHoEFwCIKGZicVwiEhChEkCIcgQaxFkJYGgyispZzCRWoQokXw12lxdpbZi5mpcF2n34bg8O1MvevM5R74Di/38Lyfe5/v8xiyRgdmKYMOoAPoAIMHxupFeXETrD2Iu6UtMFbvSOXNbm0BxsUHW0cnnZdUcYan14K82Y3uDUMBCBzR5K8n9kDB4sHnyxsF0Yglh+bWQ3EIHBmr98tbZSZk7UH0xR4F8bCyJ8srzq3h0X8AEk2gncrIWtc8vUItcAhmfl35FNS2j+hW1F5RsHh+zSeRcwCA2OqiurGvvgWDal2kKYh2KjM073nnGADAl59QXvD/zQM/TckXqxREPRSXvudMLjRiSQluUrMqWkQlmw9iqysB9MUe7pcDKFg86FxnAQDNkxRyJpc2UzBMFWdYNpoCR75fZPdMUS1VAFmjQ3rqwSDRhOI6qgFKNp8MQE0d1QCM1Utd3uvyswUQODJbgD4v/C8AtxqReWDUZtQEgC9WIXCE2gOjQnMA1h5UpKm2QEvpADqADvAFfiAdWp4idLoAAAAASUVORK5CYII=", onclick: function(e){ switch(e.button){ case 0: gBrowser.loadURI("javascript:(function()%7B(function()%7Bvar%20a%3Ddocument.createElement(%22script%22)%3Ba.id%3D%22_seed_js%22%3Ba.charset%3D%22utf-8%22%3Ba.setAttribute(%22src%22%2C(%22http%22%3D%3D%3Dlocation.protocol%3F%22%2F%2Ffanyi.youdao.com%2Fweb2%2F%22%3A%22%2F%2Fopengg.me%2Fyoudao%2F%22)%2B%22seed.js%3F%22%2BDate.parse(new%20Date))%3Bdocument.body.appendChild(a)%7D)()%7D)()"); break; case 1: gBrowser.loadURI("javascript:{d=document;b=d.body;o=d.createElement('scri'+'pt');o.setAttribute('src','https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit');o.setAttribute('type','text/javascript');b.appendChild(o);v=b.insertBefore(d.createElement('div'),b.firstChild);v.id='google_translate_element';v.style.display='none';p=d.createElement('scri'+'pt');p.text='function%20googleTranslateElementInit(){new%20google.translate.TranslateElement({pageLanguage:%22%22},%22google_translate_element%22);}';p.setAttribute('type','text/javascript');b.appendChild(p);}void%200"); break; case 2: gBrowser.loadURI("javascript:(function(){var%20s%20=%20document.createElement('script');%20s.type%20=%20'text/javascript';%20s.src%20=%20'http://labs.microsofttranslator.com/bookmarklet/default.aspx?f=js&to=zh-cht';%20document.body.insertBefore(s,%20document.body.firstChild);})()"); break; } }, },{ label : '劃詞翻譯(海詞/必應(yīng))', tooltiptext: "左鍵:海詞劃詞\r\n右鍵:必應(yīng)劃詞", image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADpElEQVQ4jUXM609TdwDG8d9f0Be+8LXbkmXLOsYqCg4RZ4zGhG1cNoxZRoaSbcYSzxLDZB30UKGopThBWnqZRUWuYy5Ygh2WRC6hCuzCgkDKoIdLGdALPafntKX8zrMX3bIn+bx8voQQQjwej2JzM5A/NDSkdrvd6kAopA4EQupAKKQWBEG9GpHUX6xK6rwlSZ3vk9QXVvj8cq9XQQghpKmpSdFqNZk7ux6IFouJWi0m2tvTSbu6HtKBgX4ak0QaTIKWLILmzoKeeAl6alYWi/6Mm8s9XgVZWFwsWFiYE+bmZjE/P4eFhXn0/diF7p4OLC39hb1kEoE4cHYUyHoCvOcCjriAXBeNFg4GCkg4HL7s969Tt/sXSJKEZDKJ7u4OzMz8jv+2LQKFvYDKBmTYUw7aZJrZGrxMgsEgIwg8dTjsGB19hqnJF+joeABJEv8P8MCHZkBZC6TpU96uk2m6LsiQ7e0gA4ByvmUYDPUwNtwAx/kgJQE+DggJYDkA5BkB5bdAmiblHY1M0yuCDPH7OWZra4P2P/4ZppZmtNy5jVbnDHRDQNUT4LtB4Bsn8Ok94GM7UGQDPjLLONmwS7PZvxliNBoYrbaSWi3NWFtdxMoqhyvdQRS3AefuyTjbJuOTuzIKbRQftOzh1K0EjtXHkFkTpZmaNYY4HDbG5R6m25s+hAIc/BscyttFHL+5hxOGJN6/uYvc6wkUNMVQYhGRUyviMBvFIa2QCuj7OKbMFqH9zzcQ3FrG+voSLrUJyKlP4lh9Ajn6OHLrY3BOR7GyyePLH6I4WC0go5qnGZo1hqg0fuZdbZSeNPB4OOLHyAyHUquAo/pd5OjjOHIthlKrhCmvgMFfBbSP8Mio5qGqilBVJceQNy96mHTNFlXqRLx6Iwplo4Cs6zHk6OM4WhdDlk6CzR1Fx5iAz1sFTHp55BkiSNfsUFUFx5AD5x4xr5SO0bdqtnHAHMNrlhhO34mlztcknGkQMb0ooPaRgKLveXjmeej6IlBWhlOBS4ax4iqHV9T9tIWapxJqhyXYn4m4YJNwuEbE1a4oljd4uH7j4ZziMe3l8fSPCDK1AfHQldli8nVjzz6H23e//8VOYmCSl53/uuvm5TMGXn48GZFNrh05W7cjZ9eE5cLGsPz8ZShx0eS9rzht30cIIeQz1rD/Vvvw+ebOCfZ25wTb3DnBXm2ZYI9XTLC9A+NsSd04+3rZOPtG2Sib9tUoa3QMnzebDfsJIeQfW4HggrdAfSwAAAAASUVORK5CYII=", onclick: function (e) { switch(e.button){ case 0: gBrowser.loadURI("javascript:void((function()%20{var%20element=document.createElement('script');%20element.setAttribute('src',%20'http://dict.cn/hc/init.php');%20document.body.appendChild(element);})())"); break; case 2: gBrowser.loadURI("javascript:(function(a,b){a.getElementById('bing_cw')||(b=a.createElement('script'),b.id='bing_cw',b.onload=function(){BingCW.Init({MachineTranslation:true,WebDefinition:true})},b.src='http://dict.bing.com.cn/cloudwidget/Scripts/Generated/BingTranslate_Hover_Phrase_Selection_ShowIcon.js',a.head.appendChild(b))}(document))"); break; } } }]; var menu = PageMenu({condition: 'normal', insertBefore: 'context-openlinkincurrent',image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA7ElEQVR42mNkwATrgXg/EE9iIAIwYhETAOKDQFwOxDuIMeA/A3FgFhCnE+MCZBAMxI1ArEOMFw4AcTIQ30USOwrEcWhiOA2wBeIOILaG8j2AOAKIE0gJRJCmQCC+CsThQOwNxB9IMUAAGoXfiNGMbIA8EG+BBpYnEN8G4jtQORVoGChDxUKAeC22aFTBEViggLSCpg1WIOYEYiN80fgfjzjIkkXIMUOsAaD00ATE2kCcB8RuQOxDigEgb8wA4s1ArADE54FYEBTIuAwgJrm3A3EVIxF5YCaUbgPij1C2MxCvARlOjAG4AvUcKDYAi+YxEXgzorIAAAAASUVORK5CYII=", onpopupshowing: syncHidden }); menu(items); }; |