diff --git a/translate/translate.js b/translate/translate.js index 94744ef..05dd3f1 100644 --- a/translate/translate.js +++ b/translate/translate.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Translate // @namespace http://tampermonkey.net/ -// @version 3.9 +// @version 4.0 // @description 划词翻译调用“金山词霸、有道词典(有道翻译)、Google Translate(谷歌翻译)、沪江小D、搜狗翻译、必应词典(必应翻译)、Microsoft Translator(必应在线翻译)、海词词典、百度翻译、Oxford Learner's Dictionaries、Oxford Dictionaries、Merriam-Webster、汉典、PDF 划词翻译”网页翻译 // @author https://github.com/barrer // @match http://*/* @@ -335,7 +335,7 @@ { name: 'PDF 划词翻译', id: 'pdf', - image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABBVBMVEX////v7+/MzMzPz8/Z2dnf39/l5eX19fXs7Ozy8vLS0tLi4uLp6en5+fnR0dHf4OHZ2trX2NjS09PPz9DW1tbc3Nz8/Pzl5+jg4uPd39/V1tfOzs7j5ebc3d7U1NXa29zi5OXn6ens7e7w8vLq7Ozt7+/y8/T////19vb6+/vv8PH9/v7o6uv3+Pj09fX/5N//yb/jrKLZo5nnsqnst67/zsP/08bswbXZraD/6eL/kn//JgD/Ow3/UBr/p4z/XED/QSD/TzD/fFP/cUX/Zjf/8e//NBD/k4D/knD/9PH/1s//spv/nX7/qI3/h2L/Wyj/3tT/van1v7XdqJ76z8HnvK/csKN0GMq7AAAAAXRSTlMAQObYZgAABJZJREFUeAG00mEORTAAA+CpvQFsAAD3P+XLBJaAgO8n0LQjEw06/THNIB8zNPajOszVDQsjmzqu5ZHXeZbLqI2RtRHA5yIII4zihJlWSt5gmSyhGEVhILi/GSDMBnkhyrDC4OEshsUcqmMUlqLg2SDC+pseqkxR80a0vjILuzJLKuuOMfJD0fE6UwBkDcjWet6ps9DTWSxNqbuSdeeZ4nKAbGMWyFmsVYOybhujsBUNz/b0FwKcz5JaplJ3JOvus2MclKzZ2CrrdJZJJc+Y+oXLASg2Oz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hyj4ARSKangzwj+i3fHFymoiyLMBI5clKaWqp6g/gp7xRr9D/yaeMmI8Y2dTsAFFrsgD/5Vm+XWY+XrhHzJRr3N7MlyfmgpRLRC6dJCuVemMxRHkxEwuRXHouYSPwnxllOZIp2gh7ebD/mc0Q5cx/Jr88mrXyjIpyiSgMlke51oy2nFkeKKckyhXHuTxkeToXizJYHurLmeURtvw/zIHlkE48ciYAAAAASUVORK5CYII=', + image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURQAAAPShTvShTvmqgPShTvShTvihavnu1/13dfyIff5uce7iy/1zc/ShTvShTv5nbP19efuNf/ShTvShTvShTvqdgf17ePuRgPShTvqbgfShTvShTvShTvShTvShTvShTvShTvShTvuXgfqZgfqfgfShTvShTvShTvmgcvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvShTvqfgfqcgfqggfqdgfqegf2AevyFfPShTvnu1/qggfqZgfShTvqfgfShTvqagfqcgfqdgfShTvShTvyDe/ShTvqagfShTvShTvShTvShTvShTvShTvShTvuPf/qegfnu1/nu1/nu1/nu1/ShTvnu1/nu1/nu1+/bvvShTvShTvShTvjhwfDOpfnq0fShTvShTvShTvShTvnu1/9SXfShTlxecOjbxPvHuPjgvv9WYf5sb+ncxffr1f50ePDKnP5mbPnt1vygmvnq1P5qcPrgzP5gaP9cZGBic/9aZGdod25vfGJjdP1+gPXq1f9UX4aFjNbPwWlqeV1fcf9TXvnizvPp02RldV5hcqKenv55fO7jz+DXxrGsqPfs1dDIvHFyf52am3p5g/5obf9YYuziz7Wvqvbr1cS+tOPaycfAt/yblv5xdPrUwv9dZfnr1Xt7hPHn0tXNv5aUlnNzf5mWmI+Mkb23sJuXmejezIOCie7l0K2opXh3gmtsevyim/yYlP5pbvnn0f2OjNLKvergzczFutnRwqWioJ+cnX58hl9hcYF/iPbr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tY1xVvbireMEHnFXSCpL6akhdwm84u6RSWaLTxp5t8Az7glsZKb4RoH3CNyjBa2hUWALoY6iRWABqfSCuitd6a50DA3RqYlGIaEdOwv1Ek92eiLw/hBrUEF0RER0QZA15P7AJzo9yfRT/wNj1w7CEvNligAAAABJRU5ErkJggg==', host: ['pdf.example.com'], popup: function (text) { openInNewTab('https://barrer.github.io/tools/pdfjs/web/viewer.html');