// ==UserScript==
// @name AI翻译和搜索
// @namespace butaixianran
// @version 0.7
// @description 划词AI翻译+搜索。AI翻译按质量排序。调用:金山词霸,阿里翻译,百度翻译,搜狗翻译,腾讯翻译,彩云小译,DeepL,沪江日语词典等。搜索包含:知乎,b站,百科,youtube,twitter等。去掉了原作者提供的大量不常用词典。
// @author barrer, modified by butaixianran
// @homepage https://github.com/butaixianran/AI-Translate-and-Search
// @match *://*/*
// @include https://*/*
// @include file:///*
// @run-at document-start
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
// ==/UserScript==
(function () {
'use strict';
// Your code here...
// 注意:自定义修改后把 “@version” 版本号改为 “10000” 防止自动更新
/**样式*/
var style = document.createElement('style');
var zIndex = '2147473647'; // 渲染图层
style.textContent = `
:host{all:unset!important}
:host{all:initial!important}
*{word-wrap:break-word!important}
img{cursor:pointer;display:inline-block;width:20px;height:20px;border:1px solid #dfe1e5;border-radius:4px;background-color:rgba(255,255,255,1);padding:2px;margin:0;margin-right:5px;box-sizing:content-box;vertical-align:middle}
img:last-of-type{margin-right:auto}
img:hover{border:1px solid #f90}
img[is-more]{display:none}
tr-icon{display:none;position:absolute;padding:0;margin:0;cursor:move;background:transparent;box-sizing:content-box;font-size:13px;text-align:left;border:0;color:black;z-index:${zIndex}}
`;
// iframe 工具库
var iframe = document.createElement('iframe');
var iframeWin = null;
var iframeDoc = null;
iframe.style.display = 'none';
var gm = {
TEXT: 'barrer.translate.data.transfer.text',
REDIRECT_URL: 'barrer.translate.data.transfer.redirect_url',
HIDE: 'barrer.translate.data.config.hide',
SORT: 'barrer.translate.data.config.sort',
reset: function () {
GM_deleteValue(this.TEXT);
GM_deleteValue(this.REDIRECT_URL);
GM_deleteValue(this.HIDE);
GM_deleteValue(this.SORT);
},
set: function (key, value) {
GM_setValue(key, value);
},
get: function (key, myDefault) {
var value = GM_getValue(key);
return isNotNull(value) || !isNotNull(myDefault) ? value : myDefault;
}
}
var dataTransfer = {
beforePopup: function (popup) {
var text = window.getSelection().toString().trim();
gm.set(gm.TEXT, text);
popup(text);
},
beforeCustom: function (custom) {
var text = gm.get(gm.TEXT, '');
gm.set(gm.TEXT, '');
custom.forEach(function (cus) {
cus(text);
});
}
};
var iconArray = [{
name: '复制纯文本',
id: 'copy',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAC3pJREFUeNrNW11sVMcV3vU2TUKipKC0EFWpKgTY/P/ZGLAdbCNsDNiGutgYMOXfxoDBlm1sx2Bj44g0VTGqqrzksa1UkTyUByK1SfrQRqrUpzZNaRqVVsSEUvUllYK96/W633d1zmq42p97d++1/XA0d+17Z86c+c6cb2bOBAYHBwNOZGBgIF5SLl++/LWRkZHA8PBw4NChQ3WFhYUfrV69Orx27dqpdevWTa1ZsyaG0leRNqbYJtp+XFxcfPvEiRMl1GtoaIg6hlTfZP0KODWAaYQrV64Er127Fjh37tyKbdu2/RIKPIIyUSpCpVBOQ7T0U6w20CaNQINMrl+//n5lZeXNzs7Ob3JwqGsqI7jqPAUV5rDiw4cP165cufLL5cuXUwFLCYzGJBSZRBnls5R+itWGtDkpAzBNnfD7s9bW1nwOFI1g9sG1AYzOWyN/7NixHbm5uRE2hoYibJzPMMj0ihUr4sLffoq2wXLVqlWKCKIgzN9wiwdtbW3L6A6KhIwQIJ0PXL16NdDV1TUfDfyTkEfHJ9h5UeDLkpKS35SVld0qLS19B/Iunn0XtsU2i4qKfg89JsUQ1C1MvbZu3fq+zAXBrBCg0K+qqnpj8eLFltUJtWXLlk2j43fOnz+fRyO5mVO8FHQy2NzcXFxQUPAnokLcIpKXlzd95MiR6mTzgWP4q9TX15+uqakZ2rt370BtbS3L7t7e3nniazkUvDejou1y9u/o6PgOOj8G+NMdJjBQse3bt/+M6FUUZDMJBulPFFpUSzaOEXgKZcgLMeHqVIg+hmY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JumSBG6Sg7zxEgc0M5qSUkmqkIA4xKXRPsZH5+/qd9fX1Pi552BOi2+LXr168HLly48F0mc8iZgWaK/jxtpqgLA1hrgf3797eIAR57RH0TyQTT8KHLPc30TIAAK4EDhGkAK9NCwP1uglzhPSaJy8oA6gI84WE+n+kCyY6x3Ii9jiVLljA7pT2ZC3AdwmN06DmGjk9I5+PZ4mCV78uWe+pscbeTIBXq7Ox8Gcr17tq16yYmoR9DRiE3MBqjGcoN1sGSAlj/6OjRozUG8UqEAJ4zxCSxQnMLLEPgb2NYszi7L+AgP6DMth9gGUGPqrzeCTLrTJDCx3OBO+ykGkBWpGG9MQK977a0tGywZ7WkQ4DmCC1ieqktQ6TcniFiUFVfU+HtRIgnQzwYEReIJ2/SfWCAh1g9jqIPLyXiLWkRYOYIyRl90hwhr7i/m/sKbF8MQARYp8MsuXLkaXJ7e/u3jUVaMN0axXGWGFPQmYrudZaYm2wyFXGBXwvdZRSI1dbW9jIMSl9COpjpBslJnuCEn3mCLg0QT6qUjDJLPyIUZKkVIx+ifk5Pm1JmipI82DJFx3gdhSe5M301RtoL6dqDtJeDov4PPcOY8PLNtDmnLpb00oEtV3iSMy4vJDU3N5fwgtJMX4qibpibXkJ4HOROtOYIMa1uy5YtH5m3RDMyQJJs8Q8l1DBtTbPFJ5ktrtfjfL4W9460wfI2k6kJd80N0lQ5cIUqvbTldmJOeV+gra0tD/D/QghHWCAXM+8L+HlB0qybzxKV9HbqJFloVVXVDZPne4IA835wa2trARr8h/icpq5FNOPDyPzw7WqsdlrIjoVEjjzi/U3oSnfMOH3X0SUkXkSurKwcRcP/FQjG83mNhGZfLkZrZqjSXba/adOmP2KO+l6ivcisXSDRjVE+0xAIj/OxDP4+Ov1nyeONCiqmfLgeP2Vej4cbhMH/R8HtV1Ev8flQov1EN/J/is3yWN1DOZIAAAAASUVORK5CYII=',
host: ['copy.example.com'],
popup: function (text) {
//监听剪切板复制事件,一旦有复制操作,把复制的数据改为纯文本
// document.oncopy = function (e) {
// e.clipboardData.setData("text/plain", text);
////下面这行代码,会导致正常的复制无效化,因此不要用监听事件的方法,而是重写一个方法
// e.preventDefault();
// };
//复制选择的文本
// let isCopied = document.execCommand("copy");
//console.log("isCopied: " + isCopied);
//判断复制是否成功
// if(!isCopied) return;
//创建隐藏的输入区
const el = document.createElement('textarea');
//输入齆鼻儿
el.value = text;
//输入区添加到网页
document.body.appendChild(el);
el.select();
//复制就是纯文本
document.execCommand('copy');
//移除输入区
document.body.removeChild(el);
//清除选择,不然工具条不能隐藏
window.getSelection().empty();
//隐藏工具条
hideIcon();
},
custom: function (text) {}
},
{
name: '百度翻译',
id: 'baidu',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAAC4jAAAuIwF4pT92AAASjElEQVR42t1bB3iUVbqemYSWhDTSQEOxrrLgo1dYFcs+yurjXV1XEaWGZEomvfeZ+f+ZZBICiIgBDR0UxEWpakLKTGYCXrZ4dxGWpdy7NFFRxHolyZRz7ved8/9TQnRDkr0+d/M8h2l/Oe95v/J+3/lRmM1mxb/yGNKLiaL/VR6B3/+/BRgMQFSIV4EUfzKQQ8gaByGIZhW8Ki1mQWHhwFTwnbIvkHiO71U6nx0jikPG/pCaJAKxmo0KURAVxYbayHKjdSR+rhZNih8CKX+HCwOfldKCqPj3YtBC/GQMCgKbjLIGwMwvbZhxq37vnrHa1tPX6/afmJb9u5V5VfVJ+BuCFAOYkt4zttnCiIKiGl6tvmPNgwY5KGB4UwQnCMicQfFU0dp5EWlOV6TaQWM1HWyEp3XSJG3riazKpTdIIP3nwmu12aSoMNSMeChna/nN+n0Hp2bt3D6/rGEGXg8XTVq8n8hEBdFnltqK5T8HYN+N0dhIvNbuitPaPTgStLau0WlOekP6OzajIA4zA0t+cEZFcVVt7CTte+1hqQdoNCxMpNoJi+J0P1qwSc8XRFSKgwA5CAb5JOHmKguwMCVz15bRMLl4ra07TttB5DEGBnzXg0w+XdT4VB0wYxIwEIk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ZtzsX2P392jW3i/GgFPyAGe4PEpwOxqsZQDREtpNBQF1VgWBxdbqwOrxKq2cYN+gmuOLLOdo7MYtD+P57LH2ww+o7B6FhkqGXXgoVgTzjVsscxBal7F1C5Dy2DV7cU5W0wnDACrjYL0k3F3ltmqsCHBsReDayAY9jzpNXsQVoh8DohvZ81vZZHSQb8AKx/M/OqiUtVdu+nIsSrnpYKPtbc5/V6797+Hz6rZu5zwv6JDfQBv6F9qP1f+r8U4Phfd2Gbege7Ne4AAAAASUVORK5CYII=',
host: ['fanyi.baidu.com'],
popup: function (text) {
openInNewTab('https://fanyi.baidu.com/#auto/zh/' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: '金山翻译[质量高]',
id: 'iciba',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABGdBTUEAALGPC/xhBQAADJhJREFUaAXdW3twVNUZ/93HPkLeQBKEmoRHoRiktVoKlaqjyOjY1vqgtDDWB1StUqd1Wjut2E6HTqci4x8io+NrBqetZZi247RWk1rUKHZ01PoAFRCNqS8MkoSEZJ/39vedu3f37rL3bnZDLfDB3XPP8/t+5/vOd75zdqOhgE56LN5hI71as7WlrGq1bbumoMlRndU0bZgC9tqa3aXBuO/18yI7vQJrbqZjpx22ekdvty3t+4Ctu+XHdqpZmm7fpbdW3bizQ0sIFgVYwKbfjT0K2z772AboI72mbTPaoucLaKXJtGiWYG22Py4fYhOMMh2arNl0Kv3q8WPGPlqGZhmmMd8k2NX2cbNm/cBKua0LVpNglyo7Dmp7nNTRcy81YWutBF0xJPF6KdtA0g5nx9A1C2Etns0fLS/calvN8e6zo3YU7aG9+NKE7cRlK7c/kJ6I7kPnHi04s3JQsTU06cpp1JqA06u3Yf2Uq9EW2eu4eKp812gHAS+BBZ0TkOGgEj9u7KQ2yMplGWtPmrSfEP5DCBAx4csa7sLalptQrTO4sXLtE3aE4GVcPrZTIbk0y1KWDf7PEiMjGARr6hpHJTH/vySadBnDU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EnRiwL2GezTKJ5Aj3zPoiW47YJvwkzSjMtkGvw7LXosQ2xYdn6hjH+qSgkjObr5m3S5gqjxS3zwah+ds7+IH3/7cnXpp8uZuEzSzE19vr1s/oZyetU7WNTwvGPbCjAjmu2TgH7ZFny7circWSpTooDmsna3zZmHDxsbud9WFs1pxqa+IY5T9O8alI8iaFjOnpeVJULNqgvebMmn98Ktx1RRVQUsNQyb/IVpL3db7jGHk+jPkOOdoU6ouQa08v8n+dtVsFSCVU5LXVyqRQEHdz/2ajX+pQu/etbvozfy9z7HHi4fiTVLsMoyhX7Hx3fSTK73aXlcFBPoJuuG5jXKlc6d0nQjD5TbjgtkxUAQm8LIOgV457e0xEktk8+XWWDI6NzLiGc45h/+oRYxCTbBKHOhTFpesnTnJx38Amg180uJuNVvy8q2P9peuPUQVi/F6uJP/e7Dmkl5f4r3XxFE/YowgfogAAAAAElFTkSuQmCC',
host: ['www.iciba.com'],
popup: function (text) {
//金山翻译禁用了直接通过url跳转到翻译页面,必须在首页点击按钮跳转,而按钮是个div,而且没有id,刻意防止解析。
//openInNewTab('https://www.iciba.com/');
openInNewTab('https://www.iciba.com/word?w=' + encodeURIComponent(text));
},
custom: function (text) {
/*
//等网页加载完毕
window.onload = function(){
//获取输入框
let source = document.querySelector('input');
//先获得焦点,再输入文字
source.focus();
triggerEvent(source, 'focus');
source.value = text;
//通过keydown生成回车事件
triggerEvent(source, 'keydown');
triggerEvent(source, 'input');
triggerEvent(source, 'keyup');
};
*/
}
},
{
name: '有道翻译',
id: 'fanyi.youdao.com',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAAA+CAYAAABzwahEAAAMLElEQVRoQ+1bCXCV1RX+7v/W/2VPMAvZd0JYBRGCxBGZgRZtQKq0alFRCbaIVEU7QG0LVlvBAi4sHfdSdahoQDSVmaIOIlvQsIQESAIkhJAEk5Dk5a3/fzvnvuT1ZeU9CTUY7sybLO/+957vLN855777GAboYAMUN64BH2iWv2Zxby2+GdCM0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qIW0lxaLyEu+3p7K6OsHolCjoNCX8qcUwZU3scHYm+vbyclgKv4WtuAT2ygqojY10GQSSvz/0CfHidMY0IUtkBPKY03feCYXivdMhZJ8A18XHI/3QYZGqqIGozM3tIrAuIhJhCxYgaOZM6JOS3Dm22/JStLkq5NGjETbvYQTOmOlm7F4Zq+1NSnN1f3sRdateBNTuP+27fOCci7iTx4xB6+7dMO/b12PhIHp2SYI+Jlawvy4uFnAqqH/n7V6fIdelri/wttvhN3Giqy1t44d2RRB3WI8dw8UtW0Qj46ytA9P0wWHjEdnQwHv6QMGjkPHGIu45Pj7Xftghzumio6EJGyQIS2lsEMfY5D2dDza6k8enDxSOycY9TmC8T8D66WQdsCfDYqW002Fc+9DQUx2HjIb1jLH5/dSIPonFOF8/3Gr7tVcWH7AXAw7J8ngt+J4fx1UQZfxIi2OfVxanyz9G2VimArE++VU/m6wBKiwWa4rXl39I/iKjcQm/yq97cY6lw3257kXAxQU/2VjoxNV5wU/LUaZaraN8vuBH4Afklc72cB2Ql3jbwR/W6cZoB9q17XbwBYDJKBvmazjLVRjS6P8/9AVAcV/VdU/9pMr4RqfFtmEkYPYmuXh3e8ZjJfpqRoZenylJ0hiF8yEaxqI8v5oBQM8Z+vSaN+MCjN3zqxkq5+fBWIlOVQsOX8mvZnijxatpjs8Wv5rA9SbrNeA/Fkt6i2PAWvy/W2O0iuM9X0sAAAAASUVORK5CYII=',
host: ['fanyi.youdao.com'],
popup: function (text) {
openInNewTab('https://fanyi.youdao.com/');
},
custom: function (text) {
var source = document.querySelector('textarea');
source.value = text;
//triggerEvent(source, 'change');
triggerEvent(source, 'input');
triggerEvent(source, 'keyup');
}
},
{
name: '阿里翻译',
id: 'alibaba',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAAA+CAMAAAC7vX2UAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAzUExURUdwTFtd11pc1Vxe115g2Fpc1WNk3Vlc1Vlc1Vlc1Vpc1llc1Vpc1Vpc1Vpc1Vpc1llb1Cmp2XgAAAAQdFJOUwBCmy4buwzpy/ZY2nmKqmoSXCmfAAACJklEQVRYw62Y2YKDIAxFFWQRZPn/rx1tRcEkLHby1jqNJyG5CTNNNdtsBLaKeRo3FnEb9zUTnqIddiUoV8NYJFSMbNCVpl2t8r+gYjSvoKzILBWHGPFk0BRfqMsLqMf7E9b2K9Re/+fXut8VlZQlvYIPQ3Gqbt2vUNMUzifqZ6hJrmPNk6A88sxXng1B3aXV1zy2+mI10DyhfuBuoHnqUBPvb57QqkLd2zxStY4o9OpyE+qWB94JVYhulhZzS36jeTY0qeL8tGwq01L1Amr+ppizdWDyJKi1hDpSbPTQ5KGg9i8UcKSNfAGFzC8/v8oUMLW1St2hUBpG1myZS9ZcBWplPbLeAWW3LplaUCiTORK9A74BhUZmwjiUDTCyo41UP9RXB7Eimj3VPDSUcrCIZGC0rDF0ktioscicYvTkIaDQyMRH9sjJwzrHmwz27Cxq8lxQde2/FGuhJ0+CUjWoW4sZvbZdaxMNJbNbyrdeNnTy+BZUqcWMXtt4A8qU4peKGFvbqlDllMmF0cDJU4MCUybrLGRto6EMdjtx4Nw9gAqtyJ7tDpoHh5o9jIxxVyb50TwYlEQi+2gxLzXo0TwCQO2NDxwlLbaOXtsA1OwjEtm1M0l6bbuqT50GI8t/vqjC1qx5qjdITIuJGzW/jw83RIsN/pfuPk7MMC2+S/xxLBVX5KrCKFfEfzgqqwqe3f38pcUiMz1XhAfUoY5Cl9ZaVYJ+mj9q8g8GmGi6Kmn9mQAAAABJRU5ErkJggg==',
host: ['translate.alibaba.com'],
popup: function (text) {
openInNewTab('https://translate.alibaba.com');
},
custom: function (text) {
//需要等网页加载完毕再运行
window.onload=function(){
let source = document.querySelector('textarea');
source.value = text;
//触发按键事件
triggerEvent(source, 'input');
triggerEvent(source, 'keyup');
};
}
},
{
name: '知乎搜索',
id: 'zhihuSearch',
image: 'data:image/ico;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAABMLAAATCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/ZQBg/2cAv/9lAP7/ZgD//2YA//9mAf//ZgD//2YA//9mAP//ZgD//2YA//9mAP//ZgD//2YA//9mAf7/ZgH//2YB//9lAP//ZgD//2YB/v9nAP7/agH//2sA//9sAe7/bwC//3EAXwAAAAAAAAAAAAAAAAAAAAD/YAAQ/2YAz/9lAP7/ZgD//2YA//9lAP7/ZgD//2YA//9mAP//ZgD//2YB/v9lAf7/ZgH//2UA//9mAf7/ZgH//2YA//9mAP//ZgH//2YA//9nAf//aAD//2kA//9rAP//bAD//24A//9wAP//cQD+/3QAv/9wABAAAAAAAAAAAP9lAb//ZQH+/2YA//9mAP//ZgH//2YA//9mAP//ZgD//2YA//9mAP//ZgD//2YA//9mAP//ZwH//2YA//9mAf7/ZgD//2YA//9mAP//ZwD//2gA/v9qAP//bAD//2wB/v9uAP//cAD//3IA//9zAP//dQD//3cAzwAAAAD/ZgBf/2YA//9mAP//ZgH+/2YA//9mAP//ZgH//2YA//9lAP7/ZgH//2YB/v9lAP7/ZgD//2UB/v9lAP7/ZgH+/2UB/v9mAP//ZgH//2cA//9pAP//agD//2wA//9uAP//bwD//3AA//9xAf7/dAD//3UA//92AP//eAH//3kAX/9nAL//ZQD//2YB//9mAP//ZgD//2YA//9mAP//ZgD//2UA/v9lAP7/ZgD//2YA//9mAf//ZgD//2YA//9mAP//ZgH//2cB//9nAP//aQD//2sA//9sAP//bgH//28B/v9wAP7/cgH//3MA//91AP7/dgD//3gA//95AP7/ewC//2YB7v9mAf//ZgD//2UA/v9mAf//ZgH//2YA//9mAP//ZgD//2UA/v9lAf7/ZgH//2YA//9lAP7/ZgD//2UA/v9mAf7/aAD//2kA//9rAP//bAH+/20A/v9vAP//cQH+/3MA//9zAf7/dQD+/3YA//95AP//egD//3sB/v99Af//ZgD//2YB/v9lAP//ZgD//2UA/v9mAP//ZgD//2YA//9mAP//ZQD+/2YA//9mAP//ZgH//2UA/v9mAf//ZgD//2gA//9qAf//awD//2wB/v9uAf7/cAH//3EA//9zAP//dAD//3YB//93AP//eAD+/3oA//97AP//fQH+/38A//9lAP7/ZgH//2YA//9mAP//ZgD//2YA//9mAP//ZgD//2YB/v9lAP7/ZgD//2YB/v9lAP7/ZgD//2YA/v9oAP//agD//2wA//9tAP//bgD//28B/v9xAf//cwD//3UA//91Af7/eAD//3kA//96AP7/fAH//30B/v+AAf//gAD//2YA//9mAP7/ZgD//2YA//9mAP//ZgD//2YA//9mAP//ZgD//2YA//9mAf7/ZQH+/2YA//9nAf//aQH+/2oB/v9sAP//bQD//28A//9wAf//cQD//3MA//90AP//dgH//3cA//95AP//ewD//3wA/v9+Af//gAD//4AA/v+CAP7/ZQD+/2YA//95If//n2D//28Q//9mAf//ZgH+/2YA//9mAP//ZgH+/2YB/v9mAP//ZwD//2gA/v9rAP//bAD//20B//9vAP//cAD//3IB//90Af//mED//6pg//+AEf//egD//3sA//99Af//fgD//4AB//+AAf7/ggD+/4QB//9mAP//ZgD//3AR///FoP//9e///3kg//9mAf//ZgH+/7yQ//9wEf7/ZgH+/72Q//+9kP//dBH//2wA/v9tAf7/bwD+/3EA//9yAP//dAD//7Fw/////////////96///97AP//fQD//34A/v+AAP//gQH+/4IB/v+EAP//hQD//2YA//9mAP//ZQD+/2YB///s3///7N///2UB/v+MQP///////3AQ/////////////+PP/////////////8mf//9xAP//cgD//3QA//92Af//dwD+/3kA//+0cP//79///30B/v9+AP7/gAD//4IA//+DAP//hQD//4YA//+IAP//ZgH+/2YA//9mAP//ZgD//3kg////////l1D+//Xv//+8kP//aAH+//////+scP//dhD//4ow///bv///yp///3MA//91AP//dQD+/3gA//95AP//egD+/61h///v3///fwD//4AA//+BAf7/gwD//4UA//+HAf//iAH//4kA//9mAf7/ZgD//2YA//9mAP//ZgH//9m////Zv///0K///3IR/v9qAP///////5JA//9uAf7/cAH//8qg///Kn///dAH+/3YA//94Af//eQH+/3sB//99Af//rmD//+/f//+AAf7/ggH+/4MA//+FAf//hwH//4gB/v+KAP//igH+/2YB//9mAf7/ZgH+/2YA//9mAf//soD//9m///9pAf7/agD//2wA////////lED+/3AA//9xAf7/y6D//8uf//92AP//iCH+/5tA/v+cQP7/nUD//55A//+/gP//9+///6JA//+jQP//pED+/6VA//+nQP//khH+/4sA/v+NAf7/ZgD//2YB//+DMP7/7N///+vf///17////////9q////av///rXD///////+VQP//cgD//3QA///LoP//zKD//4AQ/v/mz///79///+/f///v3///79////fv////////79////Df///w3///8d////Hf//+/cP//jgH//48A//9mAP//ZgH//2YB/v+NQP//oGD//7SA////////o2D//6Vg//+BIP///////5ZA//90Af7/dgD//8yg///Nof7/egD//3sA//99AP//jiD+/7hw//+BAP//sWD///Df//+GAP//rVD//65Q//+LAf//jAD//44B//+PAP//kQD+/2YB//9mAP//cRD//3IR//9pAP//kED///////9uAP7/cAD//3EA////////l0D//3YA//93AP//zKD//82f//97AP//fQD//34A///fv///4L///4MB/v+yYP//8N///4cB/v/EgP//8N///5sg/v+OAP//jwD//5EA//+TAf7/ZgD//2cA//97If//9u///5FA//+SQP///////3AA//9yAP//cwD///////+ZQP//dwD//3kA///OoP//zp///34A//9/AP//uHD///fv//+UIP//hQD//7Rg///w3///iQD//4sA///qz///6s///5AA/v+RAf//kwH+/5QA//9nAP//aQH//2oB/v/IoP//7d///8ig////////uID//7mA//+GIP///////8yf//+8gP//vID//+bP///PoP//gAD//4EB//+SIf//lCD+/4UA//+HAP7/tGD///Df//+LAP//jQD//5YQ//+sQP//kgD//5MA//+UAP//lwD+/2kA//9qAP//bAD//5JA////////27///9y////cv///3b///4gg///dv///3r///96////ev///37///8CA//+BAP//uXD///////////////////fv///37////////+nP///jv///3K///9ag///DcP//lQD//5cB/v+YAP//agD+/20B//9uAf//cAH//+3f//+nYP//cwH+/3YA//93AP//eAH+/3oA//97AP//fQD//34A//+AAf//gQD//4MB/v+MEf//liD//58w//+nQP//r1D//7hg///AcP//x4D//9af///dr///8t///+W///+XAf7/mAD//5oA//9sAf7/bgH+/3AA//9xAP//exD//5dA//91AP//dwH+/3gB/v97Af//fAD//34A//9/AP//gQD//4IA//+DAP7/hQD//4YA/v+HAf7/iQD//4sA//+NAf//jQD//48A//+RAP7/kgD//5UB/v+VAP//lwD+/5gA//+aAP//mwD//24A//9wAP//cQD//3MA/v91AP//dgD//3cA/v95AP//ewH//3wA//99Af7/gAD//4AA//+CAf//hAD//4UA//+HAP//iAD//4kA//+LAP//jQD//44A/v+QAP//kgH+/5IA//+UAP//lgD+/5gA/v+ZAf//mgD//5wA//+eAf//cQD//3EB/v9zAP//dQD//3YA//94AP//eQH+/3sA//98AP//fgD//4AB/v+BAP//ggD//4MA/v+FAP//hgD//4kB//+JAP7/jAD//40A//+OAP//kAD//5EA//+TAP//lAD//5YA//+YAP//mQD//5sA/v+cAf//ngD+/58A//9yAP//dAH//3UA//92AP//eAH+/3kA/v97Af//fQD//34A//+AAf7/gQD//4IA//+FAf//hgH//4cA/v+JAP//igD+/4wA//+NAP//jwD//5AA//+SAf7/kwD//5YB/v+WAP//mAD//5oA/v+bAP//nQH//54A/v+fAP//oQD//3QA//91Af//dwD//3gA//96Af//ewD//30A//9/AP//gAD//4IA//+CAP7/hAD//4UA//+HAP//iAD+/4sA//+MAf//jQD//48A//+RAf//kgH//5QA//+VAP//lwH+/5gB/v+aAP//mwH//50B//+eAP//oAD+/6EA//+jAO//dwG//3cA//95AP//egH+/3sA//99AP//fwD//4AA//+CAf//hAD//4UA//+GAP7/hwH+/4kA//+LAf7/jAD//44B/v+PAP//kQH+/5MA//+VAf7/lQD//5cA//+YAP//mgD//5wB//+dAP//nwH//6AA//+iAf//owH//6QAv/94AGD/eQH//3oA//98Af//fgH//4AA//+AAP//ggH//4MA//+FAP7/hgH//4gA//+KAP//iwH//40A//+OAP//kAD//5EA//+TAP//lQD//5YB/v+XAP//mQD//5sA/v+cAf7/nQH//58A//+gAP//ogH//6MA//+lAP//pgBfAAAAAP96Ac//fAD//34B/v+AAf//gQD//4IB//+DAf7/hgH//4YA/v+IAf7/igH+/4sB/v+NAP//jgD+/5AA/v+RAP//kwD+/5UA//+XAP7/lwD//5kA//+aAP//nAD//54B/v+fAP//oQD//6IB//+kAf7/pQD//6cAvwAAAAAAAAAA/4AAEP99AL//gAH+/4EA//+DAP//hAH+/4UA//+HAf//iQH//4oA//+LAP//jQH+/44A//+QAP//kgH+/5QA/v+UAP//lgD//5gA//+ZAP//mwD//5wA//+dAP//nwH//6EB//+iAf//owD//6UA//+nAM//nwAQAAAAAAAAAAAAAAAAAAAAAP+BAF//gwC//4QA7/+FAP7/hwD//4kB/v+KAP//jAD//40A//+QAf7/kAD//5IB//+UAf//lQD//5cA//+YAP//mgH+/5sA//+dAf7/ngD//58A//+hAP//owH//6QA//+lAL//pgBfAAAAAAAAAAAAAAAA4AAAB4AAAAGAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAABgAAAAeAAAAc=',
host: ['www.zhihu.com'],
popup: function (text) {
openInNewTab('https://www.zhihu.com/search?q=' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: 'More...',
id: 'more',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAmVBMVEVHcExzg79zg79zg79zg79zg79VYIBVYIBVYIBzg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79VYIBzg79zg79zg79zg79VYIBzg79VYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBzg7/cE5GJAAAAMXRSTlMAumcFB/OHZqDRqk3y03Y4ZihWf+Yix0vwEjZfQNvqVBuh2oxJkRD9i1dcRxdaERZecuMnSQAAAd5JREFUeNrtmdeWgjAURaNiwd57RcfeyP9/3CzGFlRaQrgPc86LD8dk77VADAljCIIgCIIgCIIgCIIgvtlPrJXK+MPE2qmMz9u2ba/lx5+d8XlFvn2Un+BiKxnc+Ft5PmM/KgY3fkGFz1hB3iAWvoJBTHxpg9j4kgYx8qUMYuVLGMTMj2wQOz+igQZ+JAMt/AgGmvihDbTxQxpo5Icy0MoPYaCZH2ignR9gkADf1yARvo9BQnxPg8T4HgYJ8r8aBPA7s3pp8LUZjkbDr8WgVJ91Qhv48+dFzjnPLj+bZsVpKs3PZpl1muI8nIE/v9Hnt5jGW9O6F7z1Vhjmveg3whj48zPTB4an3E3vWfCeu0k9i2km2CDg+ldfGD52Ne1X0XYVY2FIlQUZnALuf1OYbSEWNaHgNbFZCIXJ/A2ubON85Dy/ZpSF2bpikxYF0mLTFYqy4Tl17s+A2bQCG3alvQQn+puQ/mdI/yCifxTT/xnR/x3TL0jol2T0i1L6ZTn9iwn9qxn9yyn96zn9BgX9Fg39JhX9Nh39RiX9Vi39ZjX9dj39gQX9kQ39oRX9sd3D4EeFv43j6PQizz+q8e8GZ/nxa0U+YztrclAZv7Ime5XxCIIgCIIgCIIgCIL8h/wC2K/Jb1aNIXIAAAAASUVORK5CYII=',
host: ['more.example.com'],
popup: function (text) {
icon.querySelectorAll('img[is-more]').forEach(function (ele) {
if (ele.style.display == 'inline-block') {
ele.style.display = 'none';
} else {
ele.style.display = 'inline-block';
}
});
},
custom: function (text) {}
},
{
name: 'Wikipedia Ja',
id: 'wikipediaSearchJa',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAACXBIWXMAABImAAASJgEXrYlSAAALqElEQVR42u1aeVCO7Rp/bScKMZHJCGNJ2TV2yiDrJP1hZ0TDhxmMPaas2UsIkX2n0TAGZf1I9jWkInu2iELWQ+f8Tr8513fP87zv01s6f3xzuv945n6f97qXa/td13Xfj+lff/NmKmKgiIEiBooYKGLg/5uBf+az/fr1iyN//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XFeznaioKIlihCDU72Jg7PDQVy6V6U6M0IxxhawB2AkBR21AwN69e6un2WhA+szMTDFoEa16xoEGlwBXapDhKrwTkXj/u7mQDIOdNGjQoGfPngAcxN0JEyZ4eXkxO9IkF0jI1OMjuTxF2qeBUTc3N1TYlAt4xhI8CNOnEixHC8gAl0fqazbZ0uweO+BdqlqGywWMvb29OLpEYlRqyE9RJ0iC6OjoKFemZABBuuAMMAYHBgbyCoN32mhqh2s3b96c5aJag6sAL5cAjAaabzQoAhsbm4sXLw4dOpQFMb+D4QcAv2VCvr6+qlo1mSPW9vf3R4iQ3evvATgPinpbW1u9AtngJ/yQRfMlTVhYWMHTaaJnUFAQKiloVpZEB/G4WbNmAQEBCP5CrLq+HojRQXmFKsLV1ZUfRIAf+D2gbMOGDSj9OElMTAys0cPDw9PTEx1+NvBbuRDHp6enJyQk/Jnb0MFPVVFmjzI1PMjpCAAHXgF5p6SkMGxrRFBon13KxYfZWzcGBDF6g3N9+Ve+RNJAhXqBwK+SpKknpP8Gy4mXmM/QbksAAAAASUVORK5CYII=',
host: ['ja.wikipedia.org'],
popup: function (text) {
openInNewTab('https://ja.wikipedia.org/wiki/' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: 'Wikipedia Zh',
id: 'wikipediaSearchZh',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAACXBIWXMAABImAAASJgEXrYlSAAAK1ElEQVR42u2ad2zOaxvHa88asUJKHauCmC0h2tozKoKYIdQWK0bNiBGzpTVabYw/jBQNsSUaRNUIgtg7oqVW7Xnwvp+335z7/M7vmS1HIq/rj19+z/1c97j297qfx+c/vzj5/BbgtwC/BfgtwG8B/r8F+DOb9PXrV8388uVLtqZ8+/bNmynZYoZ+fQvMnTt34cKFixcvXuiWlixZAs+8efMuX76smevXr1+0aNGyZcuio6NjYmKWL18enUW8r1ixYuXKlatXr46NjWX8+vXr8H/+/Hnjxo2Mr1mzJj4+PtZCcXFxC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ahr9ePPmzYODg5t/B4WEhPA08E5ZKDY2lsHQ0FDxtGnTRldMbiwQHh6uw2jBYcOGZbsj+5X+dmmuQD79ILL9Oq9otpKrK1vrn4Cs/OaPNobzv8GJa8gKCoFTAAAAAElFTkSuQmCC',
host: ['zh.wikipedia.org'],
popup: function (text) {
openInNewTab('https://zh.wikipedia.org/wiki/' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: 'Wikipedia En',
id: 'wikipediaSearchEn',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAACXBIWXMAABImAAASJgEXrYlSAAAJyElEQVR42u1aaWxNWxQ+tB69ZkLNIuahKjUkqLmGiCGCEIRESCMxk5gjSrSKqopSUX4UMQUlrSH+GFrEEFOpoDW2RVWpoe3Tvve5X7rsnHPP6b2X5l15XT92zt1nrb33mtfa52r//OGglTNQzkA5A+UMlDPw/2bgbxehqKiIlN+/f3eJpLi42BkSl5ABf74GQkJCQkNDN2zYEGoJ4eHhwFm7du39+/dJuWfPnrCwsIiIiMjIyK1bt27ZsiXSDniOioratm3b9u3bo6OjMZ+amgr8wsLCuLg4zO/cuTMmJiZagR07duzatQuToH348CGQP3/+jKWw76ZNm7D1xo0b8bB58+YIO3ALIGBe8/b21lyB+Ph46Bd79OnTxxn8qlWrkgRnCggIKBX/6NGjWDw7O7tdu3alItetW1fLysq6dOnSsGHD8NvLywv8eBkAr0aNGpWQkPDy5UsIkgzk5eXhZ0pKCuTat29f4AhtpUqVMHbv3j0pKenDhw+w5mI7fPr06dWrV8nJyRMmTKhYsSLwgQlCm802a9asq1evvnnzBsj0ASBD26tWrapWrVqFChW4OPHbtm27e/fu9PR04Pz0gRUrVhhZrGCHNWvWWBsi9ps0aZJKhfHYsWNm+Pn5+c2bNydy69atL1++bLE4GK5RowblixGaf/v27U8fgNeDafr+3r17sTdko/KAnSB1IHCkLHlo0hYUFOAnJF2vXj2ScCdYMBDwtrgEiA949+4dkZs1a5aWlkYP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zISEhZqe3NiGzW7qyYgANDc0DgU8W9fX1xeEsGnZrBhzempShBvgKuaZNmzZO3rd5EAPQgARpxErMIOGjO7G4fPc4BqQ0wLnDw8PR3JR6/+FxDOjM3eLiwIMYkGsV+TjLJoYfL3SgllyiGQ/SgKvgQRpAJkYrnG+HAktAfpVyyCMY4MY2m61zCfibA6r8Tp06ycc8D2LAJeAHAd40/mcM+Pn56f7IIr1LJXPw8fEBAusLVQMomdQ/taDwtmYA1ajsThIXGGCglH+WuAHLli2T/2bgAc2+DgF9jNkndOZK+dghkJCQ4Fo5jZ4oMDAQvhvoCiDaYoyNjVVrtZycHAQxIqCqxRgZGWmtAchbdicJ77ed0sAf/7dL+QNFgbugC6P8t4oKFt+/5C8oOhK1yf4XkfBoUgmOZwYAAAAASUVORK5CYII=',
host: ['en.wikipedia.org'],
popup: function (text) {
openInNewTab('https://en.wikipedia.org/wiki/' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: '百度百科',
id: 'baiduBaike',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAACXBIWXMAAC4jAAAuIwF4pT92AAAMYklEQVR42q1YeVxU1xV+y2wMO65NtCIQtSmgxrjGVlFRiKAQYlxAFKSCmsRalmHYZkaYQRATwWisGtMkJhKj0baxxiUxTUiKQhIXAsg+g6BU0yzGgDJAv/PeGxwUfyW/X/843De89+777nfO+c65l9Hp9YxepxuQ6WjMymIMWZncpsLtzMYdRcwfi3ZIYxGTuXmz+BzmFOa1zS2N9L8smxkMotmetf8WfveZaKCWbjQyr8bG+uyNjn5yT3T0E7BJe1ZFT8jRahW6rCwW4DmDZJif1dkWBctOT2c2w7J7LU1YrDC3bREEzPaS8HBamvBgv0b3tFrGkJHO7Fi7doiF52quMUxXK8PcobGFYX4oTEjwTMnLZ9JMJkZLlpvLZGRnCx8mdkzJScyXIx7dUTFk8NeXhg75AnYO158Wxa/1SRefY3sZwwssgSr19i6o8nA/fxkPXh48qKSi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zIBkaxSTQyaLkZZC2DRPmK6icYo2pA3clP0DE/rdEkKr/t7IKq/me/GfvyTSlrhB0Qy7bBvU/SCrDCCvo/uY3q3dGAWUHJ+VtRKULno6e/2Sr1/WDrAzoioMMTcoVgWToeySWYLiuLz0v8kwPc9jUBQum7C4NkcLfEswvxUKVX+Wk1eyMjpx8JCtrwbnDw+sNBQXG7YmK8aNWkY9jxHKwc5F55acjgr2vc3SuKQ4Kn0upISDGh96Hgp0PfC1oQ8VZ4+BRM3HusZTvronMLMqoG6MeU2IldlDY61lZxQ9O+K2a1v3Taw/YyRuhIqW2UU1YQKDqAo8mz09J4ElTSLjI6ThA+ikmoIyBxtr2rsz9BtD9RlAozNJPdu3Kl//4VK2a8tmLFVNg0XE+BLKmpzvY5URQmAwi0HLydsf2dNNqOJW2MGPq+x+ntTg77A0jv0mGeFntPe7OB0tk933uhs3tZZ3voYeexdu/Ym74/s2NMf28xnKHvcWjf79kD62/Ch4Hr12X/Z/svd0ZlBBnXpOoAAAAASUVORK5CYII=',
host: ['baike.baidu.com'],
popup: function (text) {
openInNewTab('https://baike.baidu.com/item/' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: '搜狗翻译',
id: 'sougou',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAwFBMVEX////+VAP9WQb7aib7XRX8TQD7cy77Uwf7Zx77bzT95dT/fSH8giH+hin/gST8wZj9iSf8eRn/+fX+7OH9cRT8kz78olf+9vD/cxv8q3b//fz/eR7+cRn8x6f7dRn90K393Mb+jy/7dx7+8un8toj91br7iTv7eir9bRP7klH7aA/+aBL+ahT/dRz9ZRD+jCz+Ygz7bBD6cxv7bRX6fzb8nWX/bxj+bBb6cBn9ch36ahX7bw/+XQn8zLL6hEj7cSM2CWmfAAAAAXRSTlMAQObYZgAADLJJREFUeF68mdeW2zgQRP2MDMacg3KYHGzv/v9fLQgRopgkK3jrHM3rrUY3q0HOj1vkaTooS0qLwhUqa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.sogou.com'],
popup: function (text) {
openInNewTab('https://fanyi.sogou.com/?keyword=' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: '腾讯翻译',
id: 'fanyi.qq.com',
image: 'data:image/ico;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAABMLAAATCwAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP4RpgD+C6QA/g2lAP4LpQD+C6UA/gekAP4AoQD+AKEA/gChAP4AoQD/AKIA+gGfAOsFliTWCoxqvxB/naYWcbiLHGO4cyNVnVspSWpHLj0kNzI1ADIzMgAzMzMAMzMzADMzMwAzMzMANDQ0ADQ0NAA1NTUANjY2ADY2NgA2NjYA/hGmAP4LpAD+DaUA/gulAP4LpQD+B6QA/gChAP4AoQD+AKEA/gChAP8AohX6AZ+Z6wWW9NYKjP+/EH//phZx/4scY/9zI1X/WylJ/0cuPfU3MjWaMjMyFjMzMwAzMzMAMzMzADMzMwA0NDQANDQ0ADU1NQA2NjYANjY2ADY2NgD+EaYA/gukAP4NpQD+C6UA/gulAP4HpAD+AKEA/gChAP4AoQD+AKEw/wCi0voBn//rBZb/1gqM278Qf5ymFnF6ixxjenMjVZxbKUnbRy49/zcyNf8yMzLTMzMzMTMzMwAzM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awA/iOtEf4jrZT+Jq7y/iiu//4nrv/+JK7//iKt//4erP/+G6r//hap//4Sp8X/DahF/wO7AGcsUQAWPiRIOjc5xTk5Of86Ojr/Ojo6/zs7O/87Ozv/Ozs7/zs7O/87OzvxOjo6kTk5OQ45OTkAOTk5ADk5OQD+IKwA/iCsAP4hrAD+JK0A/iCrAP4grCX+H6xz/iCsqv4eq8j+HKrM/hmpuf4WqIr+E6dG/g+mAP8NqAD/BLoAbSpVABg+JQA5NzgAODg4RTg4OIk5OTm4Ojo6yjo6OsY6OjqpOjo6cjo6OiQ5OTkAOjo6ADk5OQA5OTkAOTk5AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A///////////////////////wD///wAP//4AB//8DwP//D/D//h/4f/ADwA/gAQAHwAAAA4AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAABgAAAAcAAAAPgAYAH+AfgH/////////////////////8=',
host: ['fanyi.qq.com'],
popup: function (text) {
openInNewTab('https://fanyi.qq.com');
},
custom: function (text) {
var source = document.querySelector('textarea');
source.value = text;
//triggerEvent(source, 'change');
triggerEvent(source, 'input');
triggerEvent(source, 'keyup');
}
},
{
name: '彩云小译',
id: 'caiyunapp',
image: 'data:image/ico;base64,iVBORw0KGgoAAAANSUhEU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OxQK8RFhqUIy63sI/K+CwSAfEZYqJLO+lcD/HJ+EuWeHpYaGLbGODzdpHA5HO67YFAgE+Miw8lrEOLGOzLd1DWCt9vn4xgms/JbM+Gr6rwv8l/1+f4jTHVY+pznEOLHeDT6G/kZ84X2O+qx8jvbEOLEeG/FJj3d2dvIRYuWlZLYf73reDT56wqfhcPgzjvqsfIz2xDYx3g98WQ+73W7gXJ+VT7k9MY16JHZ9L/DRI9aiZ7zFKQ8rn1IcYhrZ/igh+LLuwDe38WguK9dFDBPLxHTf1/qBj55B97+8tb29nVMeVk6nOMQwsSwzDYNFfIL/NTw9/Le8IYuVcyJ2iWFiOd7rA116eJff7//E5XLxUWTllIhZZJd6cO5K9B5hoHSmoaGhFBfrCgoKaqxWKx9RluJFPTiY1+/Ch8sw2rekBL4MfwUu3jebzXMLCwv5yLIUHem9Xi9Bf0HXCG3K4MvwE/FvG43GZXa7HQRB4KPMUlxDFtObDfj0CoTeOdg2wlB7bhB+Iy6e1Gq1/0zw6/V6PuKsrIu6LOWG7LP49G6E3j+U7YRkuyzRAa7BiP+8xWKxY+7P0Z+VtShPg1Mej8eFj3+IwL+ezPZCKn31CP8oXPwao/8N1Og1mUz8S7BGTFR7Q41YjPKv4NN7EPpTyf4NYTiDVOgA5+LiUZ1OdxaeASQH4DMAK1MRnoDHCE8XjG/EVQ8h8OtS/XtCOkZn0QHOwcV9CP0lCL8GG8FgMBjYCVjDhp1yeAIeLYLP1+DqJxD49cP920I6yxLQAapxcS3alQj96dgA1lIjGFMiwLMCaDQayRloyWJ1iSZ5Ig5pSdN/0Nw3BLw8CcIWfMubaK8h8MfS9ZlCpupx0AnsuFiMthCtBm0CWhlaERqNhnG3EItE1ZBUN0zFZM1oh9GoL34rGl0YnpG6mf8XYAB5oLKPtOpRHgAAAABJRU5ErkJggg==',
host: ['fanyi.caiyunapp.com'],
popup: function (text) {
openInNewTab('https://fanyi.caiyunapp.com/#/');
},
custom: function (text) {
var source = document.querySelector('textarea');
source.value = text;
//triggerEvent(source, 'change');
triggerEvent(source, 'input');
triggerEvent(source, 'keyup');
}
},
{
name: 'DeepL翻译',
id: 'deepl',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX///8sQloPK0YAHjoQLEcOKkX///8CIDwHJEABHzsMKUQGIz8LKEMAHDkJJkIEIT4dN1FIXXLT2N0pQloWMUxBV203TmRYa35VaXxDWW6Qnans7vFOYnZxgZGmsLoZNE4QK0ZneYotRl2eqbQRLUjHztQkPVaUoKyIlqN2hpbK0Nbc4OTy8/Xf4+bQ1dt6ipno6+05UGdSZnr3+Pjr7e9idIbCydCjrbhld4iCkZ9cb4GFk6EgOlMjPFVpe4z09fY1TGOLmabN09m5wcn29/jAyM/i5en8/f0mP1eXo6+3v8cqQ1vZ3eF0g5OuuMEVL0k+VWonQFh8i5r5+vuzvMV9jJtufo+Nmqe1vsaaprFmeInHzdOstb76+/t/jp38/P3m6esAGDUySmF4iJeos7zX2+Dg5Ofi5und4uX7/P0sRF3v8fP4+fqyu8Tz9PZrfY3u8PK3wMj+/v79/v68xMv6+/w0S2IAFTLh5OiqtL7GzNMVK0bj5ul3h5e9xczk5+obzQ9LAAAAAXRSTlMAQObYZgAABV1JREFUeF7U2lWP61YUhuGttcEMYYZhZmZmhsPMjGX+65WtThofdZyJ46xRn6tcvkr0bTuJyf9a30ziZHvkYJBcj/5bneAqDQ2Ta3A4AhV7d8YIstUUeES+J5iGb5TgG+139wmWB1NP4T8sdL8jKCYjcInkfYzpFY7gcqle0lxL2W3wVer5izTRbgJqam17T5okOgGXQJlkbsaGK2LT4U9yq7gMdehcyZFQdYxCnUYOSXgeH8ShfqlVEo71rhgEUvrjMQnBF5/pIUzyxQSDRkT+bGx6czY06Kilr4HpPYUQzK/0k0DujUJIRoJcJTd7Lp0exiTH7sQgVKWhuia5loHQxXbGrj49aIrMGrmKz90L0CRs+gWpafUYmmihSGoY7ISmav+F+FrPQJN1/kz8HELTzRE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jDaFI7JKgnocwyVjXOgku1z3f6PRekkugPNWU/5U07ksGAvqx+IaEYWxnL+TpoUxyInqtDxYnbv9drb2rLAwEYRj+Il6AJ4I2JoiFpovRQvwhHokBRcRKsZAQGzcEixD4cXPvthZuIJDdwecK3mZ2pliUzAvTAoenv0ZB5W1J02ztOQQU/PE1X9oGxZT81fLQhUyO36zk08aQ65blj2TqQjYrd0sGLuT7t4kDwMRbMoihxO4iOFznDhRJvh+u9gmqROcebQDAM4M2AFi2iQOAq00cALb4ow0A7pOPkdQjEEjqgpdQ4Ug+aAMAPjRoAwBrRBwAL9RpAwA2qG1jkGpMGX7KG5nV/k3KdMVBAAAAAElFTkSuQmCC',
host: ['www.deepl.com'],
popup: function (text) {
openInNewTab('https://www.deepl.com/translator');
},
custom: function (text) {
var source = document.querySelector('textarea');
source.value = text;
triggerEvent(source, 'change');
}
},
{
name: '沪江日语词典',
id: 'hjenglish',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAwFBMVEUzqfEhqvUTpvQRpfMSo/ITovEVofEToPAUnvAQnvUVoOwOnO8NoOwHm/EWnOoMoPIKlew9sfEkoO0bo+/g8vrv9/vz/Pz5/f3J5/d0wfFPrOwUnO6g1PP6/vn+/vn+/v3///8QmOkbmuz9/vP5+vz9+/0Vmu0Tme/0/Pb++fn6+vk+pOsmlOcamOQWkugJj+wVmOsVl+sVluoXleoXlOkXjeUXkecMieYah+QXjugWjOYdjeEYj+YYieUYi+QYi+ZrlpNiAAAHc0lEQVR4AezQAxbFQAxA0aRRbex/p9+20dya884A4GcBBp8FHuABSETBG9HM1tV3BHySBwDyFprhgzszfHB7fXL4+eHJ4ctzXxfwAYAe4AHyWR7gAR7w9QEqJry+4tNExFSFRVXtpgA7K4w4jmxGZlcnWWIaqnEcWxTGdr1LAWmWJXkxk5RZckYx26Uyb2B5XgBWgLBQnQdQN0U27Q01et4MJFXbLfXDWX0/IbU+FFXVlTAAuzuI4UaNh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mYEUCoVNMKc7cW//YF6CQyiNqjqwDDbQAT/6bS6ugLDAFVvAvowLSACRPXB39J2+2Bs8AHijotqAWWtBwREgKwVAREQAX/b8UHM4Xb64Le98XHnYQELREAErA9Ix1ovunSItirNRyIAAAAASUVORK5CYII=',
host: ['dict.hjenglish.com'],
popup: function (text) {
openInNewTab('https://dict.hjenglish.com/jp/jc/' + encodeURIComponent(text));
},
custom: function (text) {
document.querySelectorAll('.word-details-button-expand').forEach(function (ele) {
ele.click();
});
}
},
{
name: 'twitter搜索',
id: 'twitter',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmCAYAAACyAQkgAAAACXBIWXMAAC4jAAAuIwF4pT92AAAJv0lEQVR42rVZe3BU1Rm/u9GpZXQQEvLYRxBaGB5VZ6wgY3QGLOkUUl8wdcRaBmqtUx6VlwGS3Xv2mU1INiSwJQnJ7t2l0qqjZlQotaVS7AyFInbUqbVYGDpSCsbsIxBC9nX7feece/fuIyFB/ePM3b259+zv/L7v+32/cyLYbDbh6xiEXgm9Fvqc/33k9/B+zgM2zQOZ6/gB8kGU+ex6scCAv+lshIFSr1nvZT7zSfmKiGYlhIwbbNZi4X0RgCAYp1gvuMXtgguGcsVhJ1bBSgFn/z4ugv4+/c4ZJSQzMV7tRFTBjofZQiAdxCLYAeQv3Hvuqmk9tOmB3ce77/f97cWF7e+2PbHjlRW19sZil3UbPEt08LzeSgGKghvu1dscN1tsjiKKi2gYVVjcbnd/k4PWEU04xgqWgbTrHABws2NH+X2+9/aVB2KDJcEheUrwqjwldFUugWsxjKk9/zv3SMub62yiRXBZt9MBACcsb35t1cK2ox5RFIvYfETgTBJ6xRfu+dWHr69o+u1yj7UWwgIrUv42ClhtVEQe6jWu3Xfe0X3hNAI0BiJJcyAcN0uRBIw4G+F4hTQg3x4clqt2/bVrlUeqfqjtaMvMrnMf3RZMyE837lvipmzbdCIhLPTK5Ouc7TNg9cMGf3/kZw3dVW7rVsyhmxQQWezngaUgMe90tba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/1Y2Bqvv8X3QO6vrzIlZXWc/gL3TGTDOCXT6aPv43jvB22jG8ef6UTTSANDAtywV/nDse23vuKCP3+qghcOZHOchnKCsDEMNVTjnwfZjPtxx4gECMgghphs1fhSjOZJRv9N7rFBi9B3sNkb/F32gFnthztkYahszw+M+z8rzozjo8SBMusXRVLas5fVnYD//VmX3pfOYX8gOPegKsVEaukqvyDi9D8+Y/X0XYWdwGDZ4zz/v3DnNATnO5acoS1GuI0WjmxJ+goeViPpJDxvAJECuVqz2BBY+2vLm2ofajzZX+U4EFvhOvbzA995LVb7jAbz3iPfA+lUeafEGp7eSiMzQOOhBhU2vmgzNUdCNjKwVak54dew0BM84rerBKxu4j6/LuccGglPeZbtIrTaSGzrBLuhHsyYjGj3NO9Jmo9BRt7LYgnN+FUBH+0cBUT8TzWdbgc/kKwWnHf8HvKCQrp7+GNsAAAAASUVORK5CYII=',
host: ['twitter.com'],
popup: function (text) {
openInNewTab('https://twitter.com/search?q=' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: 'youtube搜索',
id: 'youtube',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAC4jAAAuIwF4pT92AAAKW0lEQVR42u1bfVBU1xV/wLSdSdNO/+pMPlozmRAWWfYDmKARGafKbicqYJJRJNFUMEQHxFA/cNf9ACKiTTSmYiemWB1D/Opk2sbA2HRi8Y9qrE0TaxQpu/tWBDRO25hpE2DZfbfn3Hff8vb5FnbZZTEIM2fu4+39OOf3zrn3vPt+l6urq+PuZeGmAZgGYBqAaQBUxenknKyUi1N2H0snq6+8jreiToWEjCnpotA1xIaIAFBrMNJZUr3TmUzF4UgZU5xOSZJjlJSIxhPHpG1Q16Deo9mm6gGsIXSIHSUjqg64b29o4GyvvMJtBbFu28ZZsZSuQfD+VqhjZXXwOqQcj6i1ZfekceV6SHVsUMcx4hHJzBZVTwhFCCs4HElQJtFOoaN6m43buWnTD3a//PKP91ZWpjdXV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2dfDn4aE5eJqf9pzGjsRBKV9HH0FH4wpB9H0U1Y5Sn+cfT9LY2N4ufxU+LncXIvfR5vX7zYQb8OM4LEfFwXcXac0gQJsA3ZZEiQOFBWlof8QYkicx/GhFerFaY8RQZshDnvUqPF8m2n05kcJEm1L1pU28dIUvwYJKm7yTvUDB2NJIVEsD8sWVITJEkhTQ69YHtt7fc6DYZLjCM46BmFJjceqlykdLlYKXKj0uTAts+Mxk+2bdlyn53Rg4NESatIlNR06fVdyK7EWAEZkpMlWS6tRpZUIzmG947oSZLh2gtyXVSIkkj2HMKJ77pIlOz6ZVVVKiNKUtuDPGEJhNdqah44O2/eQW96+v+Qj4sNkXJKEyVxNheCVFmJLivSVseiy0ZGmVXQZD130nDFsUSRaLLDHtFwwaNCle1JS/Ofz88/vrum5kGrjCU6whaXkaWRam6De/vWrtWeXLJk01/mzTvx6RNPXLhqNPbwGRn/gSRiAMkFlIOrIC7Lycz9ctI0gNgbKWFaSZRmZb/Uv0TQlhG1qZGwtqNuqCOk9v0w0XV/PHv2mQ9Npt2/Xr06D11enSytQpdHjn2Q+w/zQ4PVmgR58w/3rluX2lxZadz/0kuzW158cf7hF14oPFFSsux4aenPQNYyyvzGtqKire1FRQ0g2z80m3/RUVCwp8NkamYU+JYzZvMhRps/AnKUlW/DvUNQHoByP9TbB+3eOG02vwr9bW8rLq6H0nKyqOjnx0tKKmG8chi75PDKlYVg4Pw316yZ3VxVZYQwTt1VU/NQE8xpdZDkyejyyWHp8qoHJtjJEHpoAu47AAjbKIcVlAclrMoDE9EenFC0s8raWxWHNiyy8fFQB/KA2YEJfJgpwQMTUR2ZufPMEB6ZSWLAJEdxjCWWozMpURyZkdokKY/MOKM6MjPGwangoSnpoMUYh5ridWCqLlz/oxyYiv7Q1PSxuWkApgGYBuAek/8Dy6ChlrWylbQAAAAASUVORK5CYII=',
host: ['www.youtube.com'],
popup: function (text) {
openInNewTab('https://www.youtube.com/results?search_query=' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: 'b站搜索',
id: 'bilibili',
image: 'data:image/ico;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAABMLAAATCwAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A1qEAANahAADWoQAG1qEAb9ahAMvWoQD01qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD01qEAy9ahAG/WoQAG1qEAANahAADWoQAA1qEAG9ahAM/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahANDWoQAb1qEAANahAAfWoQDQ1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahANHWoQAH1qEAbtahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAG7WoQDH1qEA/9ahAP/WoQD/1qEAtdahABjWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahABvWoQC11qEA/9ahAP/WoQD/1qEAx9ahAPnWoQD/1qEA/9ahAP/WoQAZ1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahABjWoQD/1qEA/9ahAP/WoQDz1qEA/9ahAP/WoQD/1qEA/9ahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAErWoQDn1qEA5NahAErWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAErWoQDn1qEA5NahAErWoQAA1qEAANahAADWoQAA1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEA5tahAP/WoQD/1qEA59ahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEA5tahAP/WoQD/1qEA59ahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEA5tahAP/WoQD/1qEA5tahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEA5tahAP/WoQD/1qEA5tahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAADWoQAA1qEAANahAADWoQBJ1qEA5tahAObWoQBJ1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQBJ1qEA5tahAObWoQBJ1qEAANahAADWoQAA1qEAANahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQD/1qEA/9ahAP/WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQD/1qEA/9ahAP/WoQD/1qEA+d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QAA1qEAANahAADWoQAA1qEADtahAMXWoQD/1qEA/9ahAP/WoQD/1qEAxdahAA/WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAAbWoQDF1qEA/9ahAP/WoQD/1qEA/9ahAMXWoQAP1qEAANahAADWoQAA1qEAANahAADWoQAA1qEADtahAMXWoQD/1qEA/9ahAP/WoQD/1qEAxdahAAbWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAYtahAP/WoQD/1qEA/9ahAP/WoQDF1qEADtahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEADtahAMXWoQD/1qEA/9ahAP/WoQD/1qEAY9ahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQBf1qEA/9ahAP/WoQD/1qEAxdahAA7WoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEADtahAMXWoQD/1qEA/9ahAP/WoQBf1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAATWoQCg1qEA6tahAKjWoQAO1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEAANahAADWoQAA1qEADtahAKjWoQDr1qEAoNahAATWoQAA1qEAANahAADWoQAA1qEAAP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A///////////AAAADgAAAAQAAAAAAAAAAA///wAf//+AP///wD///8A////AP///wDw/w8A8P8PAPD/DwDw/w8A8P8PAPD/DwD///8A////AH///gA///wAAAAAAAAAAAgAAAAcAAAAP8A8A/+AfgH/gP8B/4H/gf+D/8H/////8=',
host: ['www.bilibili.com'],
popup: function (text) {
openInNewTab('https://search.bilibili.com/all?keyword=' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: '微博搜索',
id: 'weibo',
image: 'data:image/png;base64,i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RAsfTTrsj8H2TiXWX49cGAocMvquU3AEUWrDJLzu40PCW/2nVTxuyICctq3J6isctIWlI7QP/ywIXrqhJuJak7klLBO7J2NNPt3x6wk/7Lq9I8rGreGsidaf5KMHiJpJ+wp961+C61QP3ujSbPsy6SftQTrmtRX52ejTqo90T1qlWZMrd6dfv+XDiW++jXMc/OwnKmgO4WUDEAKTq6je2tp/4I7F/re3DacNTDYXycXMIbsarBCYhLIUbwSoVjhmea+oi+qs5FKcTKBJk6OQglo1/6YzR0OZT9U6ReDAkxkJuoAaKE1aLHhCduiCwWKmWSrfz/wB+SNATupnODSmh8vWgcfQ8SQEE6Z2MnjOUNAxaA2lX8/XAqobeaXNHtcMkc4qcmkivBaDZqXcblxXwIdfCxnwq+nM1iZKHn0yFM9r/3lL/A7Rl72E9sNprAAAAAElFTkSuQmCC',
host: ['weibo.com'],
popup: function (text) {
openInNewTab('https://s.weibo.com/weibo/' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: 'Google搜索',
id: 'googleSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAK5UlEQVR4Ae3cZXQbVxPG8QkzMzPT2xMoM3OgzMzMjOHEUBdDZQyjayozMzMzGAVJPO//ftBp3BqktbRaaW/O+c33q3mi3Z0dWdLxX/Huk9piV5yESzELC7EcT+EdfI8KhPEXvscneAPP4mFMx0nYBX3QEJJOTEl1TTAeZ+IefIDN0AQowRqcg2E2AMnRADsjGy8hAE2Sb7AYh6GTDUBiDcHN+ArqQZvxOmZiVzS2Aai/DjgTL0FTzDc4Dy1tAGK3A5YjBE1xv+EadLABqNtYrIemoRLMQw8bgP8aiIdQCU1zQSzAYPg+AN1xO8JQn9mER9HPjwFohptRDvW5YpzgpwCMxDvQKqyV6JzuATgTFdBqWT9j/3QMQCeshkbFWoBW6RKA3fEDNCbW59g2lQPQALPq9WhnbcL5qRiARrgPWi/WK+iZagFoihXQerEeQPNUuwS0RB7UMWszLkvFp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Syf8BDpOCJZsko8UAAAAASUVORK5CYII=',
host: ['www.google.com'],
popup: function (text) {
openInNewTab('https://www.google.com/search?q=' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: 'Bing搜索',
id: 'bingSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAFUUlEQVR4AWL4//8/WZhhWkcBoL17gLElieIwnrVt27Y3Wtu2bdu2Hay98bNt27Z5X+6c/YJe1KJnXt2ZudXnn+T3/KZrbn3prh50YSLG4TMcavx5WmR5J/8sWAh9cDPWLfYLpwA+gf2PBfi8uGcFBfAdrJb64BadFfwGkFmIz3GYXnifAeisoAB0VlAA+WeF9XxOhgLILMQXPs8KCiDUF7f6PSsogPCscLDPiVIAmTLu8zpZCgAoY1OvE6YAgHN9T5wCuEiTBwUgCkAUgCgAUQCiAEQBiAIQBSAKQBSAKABRAKIARAGIAhAFUGgKgD/fFi3QGy1xrZMvKVcA/Nk6GAILLMb3OA0rF3cyFcDusBzT8HYxv79AAewAq4PBeATbKoDirAH6wuqoBm1wTfrfrq4AboFFWIzvcGqa6wUFsC4WwipgKt7GQQogjQCysX0Oq7BBeDiN9YICOBRWT2rQunrXCwogG18fWD1bhG9xSvWtFxTAzbAGNBVvVc96QQGsiwWwRjAID2EbBdA4AWRj/AzWiGrQCldjHQXQ8AEcAouX4npBAWTj7AWrMlPwJg5UAPUfwE2wKjawftcLCmAdLIBVuTJa4qr49YICCMf6KSwhi/ANTsZKCiA+gINhicrWCwcogJwAcsbbE5a4AXgQWyuAugdwIyxxEesFBbAO5sMKZiG+xnYKIH/MH8MKaiZ2UwD/P+aDYAX2lALIH3cPWEF9pwDyx3297wAUwNqY5zMABZCN/SPfASiAA/0GoACy8Xf3HYACOAFLYQlTAJERnFGgBaECiLgruA5dYYlTAJEx7If3MDv9ABRATAhr4Aq0Tz8ABRAbwx54AzPSD0ABxISwGi5CS9SkH4ACiIlhZ7yEKekHoABiQlgFN2KZswAUAMdfHQ9irqMzgALguCvgUox1tgZQABzzWHR3dhegADjWrvjN2W2gAuAYG+NdLIMlQAFU8J7/AcyBJUABVHCBdwnGwBKkACIm/xh0g6VGAcQv8H719/UA+oqgjfAOSrAEKYCIBd79mANLlwI4ezkWeBdjNKygvvISwDysXYexHo2usIK7z0sAL9VyjLvgF5gDnbGOhwA+xwq1WOC9jRKs4BbjCazm4fkAn2GFnAXefZgNc6ApdvbyhJBw8sMF3kUYDXNgEi709IygT/9n8o9GF5gDZbyLdf08JCqY/ODr8n6GOdEdB3l7TNwnWCE47oZ4CyWYA3NwG1Z09ZzAbPKDBd69mA1z4lts7vFJoR8Hk38hRsGcGI7j/T0rOJh8fj4KnWFOLMFTWM3rw6I/wgrYCT/BHGmOXTw/Lv4jbIQ3UYI5MRkXe98w4gvch1kwJ8p4D+t53zFkMkbDHOmJQ/ztGSRzcTtW8rdplHyPLfxtGycjcIK/jSNlCZ7B6v52DpUW2NXf3sEyBZf62zxayvgA6/vbPl564dDsdVEAfszDndk9vQLw5Qdsmb0WCsCPkTgpew28B/ABzImlePbv9/QK4GSYA62C/fgUALIIHsAyWAFNxWXh+6wAEESwF1oX7J7+o/x7egUQhnAxJsIS1huH5byvCiBng+bXErwszMPd2T29AogPYU+0giXgJ2yVjV0BVDaEi6r4sjAKp/zP+BVABTdlehWlKrqnfx5r5I9fARTtstAae2jS4wOIvSxMgDWgabgifvwKILXLQg0+xgaa6OoJINyRqyWsHvTBEZrgKg0gCOHCCl4W5uMerKzJTSCA4LLwSuRl4WdsHT8eBZDaZWE0TtVkJh5AEMIFtbgslPCC7umLFUB4WXgZJVigLfbUBBY0gCCE3fE9ZqALrtTEVc7vquRzBPZVAfAAAAAASUVORK5CYII=',
host: ['www.bing.com', 'cn.bing.com'],
popup: function (text) {
openInNewTab('https://www.bing.com/search?q=' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: '百度搜索',
id: 'baiduSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg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oupQN+BZDOiQmAbmCiy691Il5fXkfhTWG/QY4+H/t3DPAXUEQR/HYtm3bZhU7TWzbTqp8XWzbtm3bts3JqWPd3b3vTfHrm7Pd7B+vIEFqFsIHawDN8RES5FYhcrAFMBgCQO1ErGAIIBymQL6hjiFRIAcQBasg6ocuInUgBhAHuyHql24jWyAFkAynIOq3PUSeQAgg01+fcamnKOznAArgIUT9tRco6ccAyuIlRP2z16jolwC8ueJRb1HZDwHEhjerIuo9arscQFjPT7fVR5R3NQAzCx3qHhK7FkBjiLLxD9F+AAnwGqKMGuRKAMMgyrhPKGs7gBh4AlFW3EVsmwF0hyir2tsKICLuQJRVx2wFUB+inJDXRgDDIMoJo20EMBeinPAUEU0HcACinJHZdABPIMoZZUwGEAeinFLfZAAZIMopXUwGEMm53R4VYi4A4CZEOWOa6QC2QZQzRpoOYDJEOaO/6QD6QJQzWpkOoC5EOaO46QCyQ5QT3iGS2QCA8xDr1E5bByFDINapwbYCyAaxSn1GOjsBALsg1qhNtq+CS0KsUXXtBgCshRinTiO8CwHkwSeIUaq0S38De0GMUbNd+xwaGksgynN3kNitAIAYni9+q+fI7fJCSELsgKj/7j3K+WEjKDxGQhz0CU9wBSdxGx988vKr+20mrj4uGr6P349ZGIB6KImcSImYP5hoD404yIQSqInWCMFWBzaP9iCNX4ciw6AyNv3HEcV9mI0haIiiSIBQHgmNDKiHEGwxFMU7DEa4QBmLzoha6IZRWIUD2IoVmI2xGI7+6ISmqIE8iIlQjgiNNKiGQViGq5D/4Aw6I57/hiJVbJRCI3TBMIzBfGzEYVzFc7zGOWzAJAxAcYQy6QvdTCweWNuV8gAAAABJRU5ErkJggg==',
host: ['www.baidu.com'],
popup: function (text) {
openInNewTab('https://www.baidu.com/s?wd=' + encodeURIComponent(text));
},
custom: function (text) {}
},
{
name: 'PDF 划词翻译',
id: 'pdf',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAB0VBMVEX////i5efi5efi5efi5efi5efAxsvi5efi5efi5eewt73i5ee1u8G/xcrJztLb3+Gyub/N0dW+xMnW29/K0djxVkLxVkLxVkLxVkLwZFLsiHzk1tbxVkLwYlDxWkb2joD3m4/2jH/zcWDxWUXxV0Pzaljza1rzaVfxW0fza1nyX0zyY1H+7uz/////+/v5u7PyYk/1h3n96uf+9PL70873npPyZVL3pJn+8vD//Pv7zsjxXEn3oZb+8e/1in395uP/+vr2lon5ta3++Pfzbl3xW0j//v75sqnxWUb0e2z1g3T96OX+9PP82dT94d7829b839v/+vn70cv+8O74qqD6xb/yYE36x8H1iHr0dmb0dWX4p5z2joH94+D0fW73mY37ysT0fm74ppv0emr95uT83dj71dD1hHX7zcf5s6vzbFr96uj1gXL2k4b/+fj++PjyY1D3oJX5saj1hXf1iXv0fm/zcmH819PxWET2lIj+9fT1i33zdGP81dD95OHzb133mo73npL94t72kIP+8vH6v7j6w7z1gnT84Nz97Or0fGzyYU783Nj6xb7+8/L6xr/yXkv2lor84d3sbl/hopzta1vM0tjM09rS2N7M09ng4+XO9mvSAAAAHXRSTlMAJH6y5v/AAW71/7T///////////8apub/////6uVo/FUAAAMkSURBVHgBpM4FAcNAAASw0pXp37/YKRg1UZDmk7brhzw0Nmyalzy38mDaIlYezMEADtqFAzbo4gEa9BrQwaABHUQDOPAADjyAAw/gwAM48AAOPIADD+DAAzjwgA48gAMP4MADOPAADjyAAw/gIGjXQdCx4iDoXHEQdN04iCqrDcKqDeLKLYPEXefxEvm5kZVKQFgEOwAQOwdCAAAADIT8rXdJ7CPoFjBoAwZlwKANGLQBgzZgUAcM2oBBGzBoAwZtwKANGLQBgzZg0AYM2oBBGTBoAwZtwKANGLQBgzZg0AYM0gBjpx607AiiKAy/xGCP7Tlj27Zt2/aNnTxx6rRyO11xdUf9L+7F7+KUD/gDAaFh4XCpiMiobwNCo+FiMVHfBITB1SK/CQiHq0V8EwCX8wE+wAf4gJ8AxMbF6yUkJsEqOSVVKy0d9pIyUq0yVQCysskqJzcPevkFZFZYVFwCq9Iy+lR5ReWvA6oouOoacMm1FFxZPoxK6shW/a8DGshWYxNEzWSvpbUNWu1kr0MNoDOXq+giUXeyCejpFfX1k9aADDA4lKwGMAytkVESjZmAcXBJE5PlvKYsQF2zWTKgFIC2aTGGbABuhv+nBekWAFaqAZgVY84BwDzPBS8Ai2IsOQGoEHPZC0CcGCsSwCrfR7IHgDUx1iWANN4bBoA2jSq2FAOSh0i0LQEk7/B5OM5wd08RoG+fO+gj0eaIBNDGl3joANCREoCtlmNIACe80xyA0zPlgPIqyADnYl7AAJRfGl0BqgHXJ5ABzm74jXbxDGsbuMnLW0AKmOV558U7IAfc81/w4ew3AVIDc8StwnPAo0FRIek9hluAdSJ64gTYK9+Ha4Cnxv/L3jMK7vkLGL3cJXqlFoCG7Ncj+LyOZTJ68/A28A5W7/s+dHxs3wxSMATBIMqv/qS09eaamqdtHUFD0cds5l3AB64ceXqYSEACEriDPVQW9lRbyWP11qhzfaktXwQQ+Vs6W2CQBfZJFehj6tdMAhKQwHOB8DclmCefAG8bvWKcafaLST/T8BkTTdNvzLoYxu+YFPH5OP9/S/DudP8HpbfsWEKgc+EAAAAASUVORK5CYII=',
host: ['pdf.example.com'],
popup: function (text) {
openInNewTab('https://barrer.github.io/tools/pdfjs/web/viewer.html');
},
custom: function (text) {}
},
{
name: 'Settings',
id: 'settings',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAQAAABpN6lAAAAGIUlEQVR42u2dW2xUVRSGv95VKAJVQGJUfBHUxAgNKqGUSzERLUrlFhAK8QH1pQoB9EEFb9EHETQqckm8tFQsYFtEKAKWAmJI6QUwSABNaLFgIiTaogXK+MCwZs90LudAZsJZ3f9+m1kr7f+3e+911l5rH4iEFPJ4jx0000Y7zdRSQiF96RLI4CVO4gszLlHJUO30p/B7WPKBUU4freRT+TAG+cujhTyN9DPZGkL0DNUUs4IK6ukI+uYCE7XRT2d70GwvZQypxvf9eI7jhkU7j+sSYJlBbj+DI4g0l3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382ylwTkUdMnjf6EuKPC7yhkb6V2Z5rGu6fmU4qpFGIYcjkG9kqraZHzlAnsdGDtDCeVpopJyi4KczCwsLCwsLCwsLCwsLCwsLCwun6Mcs1lBLM+200cwO3mV0V8kzPcTGCGnXZl5xdF+yh9G3Uzl+55KIqXrpj3VY5rVUZ8J9UkjDRQd1VLCCYqo5EyJBFd210c/nvEHwGHOCXgWTRh5fB60MG3S1YtxNq1D7j6Kg288CyKbekOBNPfSTjQaLUwyLYtmNdUaD3ggtAhQKqdaY/SUpxvGsmtKLRqHkZIvraRTfqGjFGCN0qh3vF4GLQxXgI6Hj9EQ5iTopwOnlfQEa/GROuJjRC8M3cMSvXyB+Y5yUXn3sQrR7RYDXAx8mol8gnqPIhQBpItsXgQ9Xe5q+j0muJk6L1CwKVnlcgMnXKkAi+gWuvynwuflxpqcXQTedZfeFWwS9ivqr2AZfFgGe1BQI5TgOhBokEOrpfQFGGU35zhB4Mcz32h6Gpjmw7iVtnO4aea9jzDQqjwfHfBwOtOI1aHkcTpauNB+noz4SdWeDkRDJQQ0G8I9x4f880sNaDTUmi4/FupKiTxivfPBxnOe5zfg2nbGUBSVF1+u7rWpip7R4A5WspIQazoZEjVtctfF7BnkOg/klek8J+8gr4yKNky6fGj2IbCpCXgTik2B5gb4ToUj/CTMpYR9NtNPKCbbxNrmRuxX/B4UnbV8qW1T4AAAAAElFTkSuQmCC',
host: ['example.com'],
popup: function (text) {
openInNewTab('https://example.com');
},
custom: function (text) {
settings();
}
}
],
hostCustomMap = {}, // {host: [method, ...]}
customMadeIconArray = getCustomMadeIconArray(true);
// id、host 唯一性校验
var idMaps = {};
var hostMaps = {};
customMadeIconArray.forEach(function (obj) {
if (obj.id in idMaps) {
alert('Duplicate Id: ' + obj.id);
} else {
idMaps[obj.id] = obj.id;
}
obj.host.forEach(function (host) {
if (host in hostMaps) {
log('Duplicate Host: ' + host);
} else {
hostMaps[host] = host;
}
});
});
log('idMaps:', idMaps, 'hostMaps:', hostMaps);
// 初始化 hostCustomMap
customMadeIconArray.forEach(function (obj) {
obj.host.forEach(function (host) { // 赋值DOM加载后的自定义方法Map
if (host in hostCustomMap) {
hostCustomMap[host].push(obj.custom);
} else {
hostCustomMap[host] = [obj.custom];
}
});
});
log('hostCustomMap:', hostCustomMap);
var icon = document.createElement('tr-icon'), // 翻译图标
selected, // 当前选中文本
pageX, // 图标显示的 X 坐标
pageY; // 图标显示的 Y 坐标
// 绑定图标拖动事件
var iconDrag = new Drag(icon);
// 翻译引擎添加到图标
var isIconImgMore = false;
customMadeIconArray.forEach(function (obj) {
var img = document.createElement('img');
img.setAttribute('src', obj.image);
img.setAttribute('alt', obj.name);
img.setAttribute('title', obj.name);
img.addEventListener('mouseup', function () {
dataTransfer.beforePopup(obj.popup);
});
if (isIconImgMore) {
img.setAttribute('is-more', 'true');
}
if (obj.id == 'more') {
isIconImgMore = true;
}
icon.appendChild(img);
});
// 翻译图标添加到 DOM
var root = document.createElement('div');
document.documentElement.appendChild(root);
var shadow = root.attachShadow({
mode: 'closed'
});
// iframe 工具库加入 Shadow
shadow.appendChild(iframe);
iframeWin = iframe.contentWindow;
iframeDoc = iframe.contentDocument;
// 外部样式表
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = createObjectURLWithTry(new Blob(['\ufeff', style.textContent], {
type: 'text/css;charset=UTF-8'
}));
shadow.appendChild(style); // 内部样式表
shadow.appendChild(link); // 外部样式表
adoptedStyleSheets(shadow, style.textContent); // CSSStyleSheet 样式
shadow.appendChild(icon); // 翻译图标加入 Shadow
// 重定向前隐藏页面主体
if (gm.get(gm.REDIRECT_URL, '') && window.location.host == 'example.com') {
document.documentElement.style.display = 'none';
}
window.addEventListener('DOMContentLoaded', (e) => {
log('DOM fully loaded and parsed');
// 重定向
var redirect_url = gm.get(gm.REDIRECT_URL, '');
log('redirect_url:' + redirect_url);
if (redirect_url && window.location.host == 'example.com') {
document.documentElement.style.display = 'none';
document.body.innerHTML = '<a id="redirect_url" rel="noreferrer noopener" href="' + redirect_url + '">' + redirect_url + '</a>';
document.querySelector('#redirect_url').click();
gm.set(gm.REDIRECT_URL, '');
return;
}
// 弹出后的新页面判断是否进行自动化处理
var text = gm.get(gm.TEXT, '');
log(gm.TEXT + ': ' + text);
log('url: ' + window.location.href);
log('host: ' + window.location.host);
if (text && window.location.host in hostCustomMap) {
dataTransfer.beforeCustom(hostCustomMap[window.location.host]);
}
});
// 鼠标事件:防止选中的文本消失
document.addEventListener('mousedown', function (e) {
if (e.target == icon || (e.target.parentNode && e.target.parentNode == icon)) { // 点击了翻译图标
e.preventDefault();
}
});
// 鼠标事件:防止选中的文本消失;显示、隐藏翻译图标
document.addEventListener('mouseup', showIcon);
// 选中变化事件
document.addEventListener('selectionchange', showIcon);
document.addEventListener('touchend', showIcon);
/**日志输出*/
function log() {
var debug = false;
if (!debug) {
return;
}
if (arguments) {
for (var i = 0; i < arguments.length; i++) {
console.log(arguments[i]);
}
}
}
/**是否非空*/
function isNotNull(obj) {
return (obj != undefined && obj != null) || false;
}
/**转 int*/
function myParseInt(str, myDefault) {
var rst = parseInt(str);
return isNaN(rst) ? (isNotNull(myDefault) ? myDefault : 0) : rst;
}
/**数组移动*/
function arrayMove(arr, oldIndex, newIndex) {
if (oldIndex < 0 || oldIndex >= arr.length || newIndex < 0 || newIndex >= arr.length) {
return arr;
}
if (newIndex >= arr.length) {
var k = newIndex - arr.length + 1;
while (k--) {
arr.push(undefined);
}
}
arr.splice(newIndex, 0, arr.splice(oldIndex, 1)[0]);
return arr;
};
/**带异常处理的 createObjectURL*/
function createObjectURLWithTry(blob) {
try {
return iframeWin.URL.createObjectURL(blob);
} catch (error) {
log(error);
}
return '';
}
/**触发事件*/
function triggerEvent(el, type) {
if ('createEvent' in document) { // modern browsers, IE9+
var e = document.createEvent('HTMLEvents');
//var e = document.createEvent('Event');
e.initEvent(type, true, true); // event.initEvent(type, bubbles, cancelable);
//判断是否需要按下回车
if(type == "keydown") {
//console.log("keydown event");
e.keyCode = 13;
e.which = 13;
e.charCode = 13;
e.key = 'Enter';
e.code = 'Enter';
}
el.dispatchEvent(e);
}
}
/**弹出居中窗口*/
function popupCenter(url, title, w, h) {
var transfer = 'https://example.com';
w = w > screen.availWidth ? screen.availWidth : w;
h = h > screen.availHeight ? screen.availHeight : h;
var x = screen.availWidth / 2 - w / 2;
var y = screen.availHeight / 2 - h / 2;
x = x < 0 ? 0 : x;
y = y < 0 ? 0 : y;
var win;
try {
win = window.open('', title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + y + ', left=' + x);
win.opener = null;
win.document.body.innerHTML = '<a id="redirect_url" rel="noreferrer noopener" href="' + url + '"></a>';
win.document.querySelector('#redirect_url').click();
} catch (e) {
gm.set(gm.REDIRECT_URL, url);
win = window.open(transfer, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + y + ', left=' + x);
log(e);
}
if (window.focus) {
win.focus();
}
return win;
}
/**打开新的标签页*/
function openInNewTab(url) {
var a = document.createElement('a');
a.setAttribute('target', '_blank');
a.setAttribute('rel', 'noreferrer noopener'); // document.referrer, window.opener
a.setAttribute('href', url);
a.style.display = 'none';
shadow.appendChild(a);
a.click();
a.remove();
}
/**是否包含汉字*/
function hasChineseByRange(str) {
return /[\u4e00-\u9fa5]/ig.test(str);
}
/**解决 Content-Security-Policy 样式文件加载问题(Chrome 实验功能)*/
function adoptedStyleSheets(bindDocumentOrShadowRoot, cssText) {
try {
if (bindDocumentOrShadowRoot.adoptedStyleSheets) {
cssText = cssText.replace(/\/\*.*?\*\//ig, ''); // remove CSS comments
var cssSheet = new CSSStyleSheet();
var styleArray = cssText.split('\n');
for (var i = 0; i < styleArray.length; i++) {
var line = styleArray[i].trim();
if (line.length > 0) {
cssSheet.insertRule(line);
}
}
bindDocumentOrShadowRoot.adoptedStyleSheets = [cssSheet];
}
} catch (error) {
log(error);
}
}
/**鼠标拖动*/
function Drag(element) {
this.dragging = false;
this.mouseDownPositionX = 0;
this.mouseDownPositionY = 0;
this.elementOriginalLeft = 0;
this.elementOriginalTop = 0;
var ref = this;
this.startDrag = function (e) {
e.preventDefault();
ref.dragging = true;
ref.mouseDownPositionX = e.clientX;
ref.mouseDownPositionY = e.clientY;
ref.elementOriginalLeft = myParseInt(element.style.left);
ref.elementOriginalTop = myParseInt(element.style.top);
// set mousemove event
window.addEventListener('mousemove', ref.dragElement);
log('startDrag');
};
this.unsetMouseMove = function () {
// unset mousemove event
window.removeEventListener('mousemove', ref.dragElement);
};
this.stopDrag = function (e) {
e.preventDefault();
ref.dragging = false;
ref.unsetMouseMove();
log('stopDrag');
};
this.dragElement = function (e) {
log('dragging');
if (!ref.dragging) {
return;
}
e.preventDefault();
// move element
element.style.left = ref.elementOriginalLeft + (e.clientX - ref.mouseDownPositionX) + 'px';
element.style.top = ref.elementOriginalTop + (e.clientY - ref.mouseDownPositionY) + 'px';
log('dragElement');
};
element.onmousedown = this.startDrag;
element.onmouseup = this.stopDrag;
}
/**强制结束拖动*/
function forceStopDrag() {
// 强制设置鼠标拖动事件结束,防止由于网页本身的其它鼠标事件冲突而导致没有侦测到:mouseup
if (iconDrag) {
iconDrag.dragging = false;
iconDrag.unsetMouseMove();
}
}
/**显示 icon*/
function showIcon(e) {
log('showIcon event:', e);
var offsetX = 4; // 横坐标翻译图标偏移
var offsetY = 8; // 纵坐标翻译图标偏移
// 更新翻译图标 X、Y 坐标
if (e.pageX && e.pageY) { // 鼠标
log('mouse pageX/Y');
pageX = e.pageX;
pageY = e.pageY;
}
if (e.changedTouches) { // 触屏
if (e.changedTouches.length > 0) { // 多点触控选取第 1 个
log('touch pageX/Y');
pageX = e.changedTouches[0].pageX;
pageY = e.changedTouches[0].pageY;
// 触屏修改翻译图标偏移(Android、iOS 选中后的动作菜单一般在当前文字顶部,翻译图标则放到底部)
offsetX = -26; // 单个翻译图标块宽度
offsetY = 16 * 3; // 一般字体高度的 3 倍,距离系统自带动作菜单、选择光标太近会导致无法点按
}
}
log('selected:' + selected + ', pageX:' + pageX + ', pageY:' + pageY)
if (e.target == icon || (e.target.parentNode && e.target.parentNode == icon)) { // 点击了翻译图标
e.preventDefault();
return;
}
selected = window.getSelection().toString().trim(); // 当前选中文本
log('selected:' + selected + ', icon display:' + icon.style.display);
if (selected && icon.style.display != 'block' && pageX && pageY) { // 显示翻译图标
log('show icon');
icon.style.top = pageY + offsetY + 'px';
icon.style.left = pageX + offsetX + 'px';
icon.style.display = 'block';
// 兼容部分 Content Security Policy
icon.style.position = 'absolute';
icon.style.zIndex = zIndex;
} else if (!selected) { // 隐藏翻译图标
log('hide icon');
hideIcon();
}
}
/**隐藏 icon*/
function hideIcon() {
icon.style.display = 'none';
pageX = 0;
pageY = 0;
icon.querySelectorAll('img[is-more]').forEach(function (ele) {
ele.style.display = 'none';
});
forceStopDrag();
}
/**设置*/
function settings() {
var hideConfig = gm.get(gm.HIDE, {});
var sortConfig = gm.get(gm.SORT, []);
log('hideConfig: ', hideConfig);
log('sortConfig: ', sortConfig);
var allSortedIconArray = getCustomMadeIconArray(false);
document.querySelectorAll('style,link,script').forEach(function (ele) {
ele.remove();
});
document.querySelectorAll('title').forEach(function (ele) {
ele.innerHTML = 'configuration page';
});
document.title = 'configuration page';
document.body.innerHTML = '';
document.body.style.padding = '20px';
var desc = document.createElement('div');
desc.innerHTML = '<h3>After the change, close the configuration page and refresh the current page, the new configuration will take effect.</h3>';
var reset = document.createElement('button'); // 重置配置
reset.innerHTML = 'reset settings';
reset.addEventListener('click', function () {
var r = confirm("Do you want to reset user settings?");
if (r == true) {
gm.reset();
settings();
}
});
document.body.appendChild(desc);
document.body.appendChild(reset);
document.body.appendChild(document.createElement('hr'));
allSortedIconArray.forEach(function (obj, i) {
var item = document.createElement('div'),
name = document.createElement('span'),
up = document.createElement('a'),
down = document.createElement('a'),
show = document.createElement('a'),
span = document.createElement('span');
name.innerHTML = obj.name;
span.innerHTML = ' ';
up.innerHTML = 'up';
up.setAttribute('href', 'javascript:void(0)');
up.setAttribute('index', i);
up.addEventListener('click', function () {
var index = myParseInt(this.getAttribute('index'));
var newIconArray = arrayMove(allSortedIconArray, index, index - 1);
var idArray = [];
newIconArray.forEach(function (sObj) {
idArray.push(sObj.id);
});
gm.set(gm.SORT, idArray);
settings();
});
down.innerHTML = 'down';
down.setAttribute('href', 'javascript:void(0)');
down.setAttribute('index', i);
down.addEventListener('click', function () {
var index = myParseInt(this.getAttribute('index'));
var newIconArray = arrayMove(allSortedIconArray, index, index + 1);
var idArray = [];
newIconArray.forEach(function (sObj) {
idArray.push(sObj.id);
});
gm.set(gm.SORT, idArray);
settings();
});
show.innerHTML = 'show';
show.setAttribute('show-id', obj.id);
if (isNotNull(hideConfig[obj.id])) {
show.innerHTML = 'hide';
}
show.setAttribute('href', 'javascript:void(0)');
show.addEventListener('click', function () {
if (this.innerHTML == 'show') { // 隐藏
if (this.getAttribute('show-id') != 'settings') {
hideConfig[this.getAttribute('show-id')] = true;
}
} else { // 显示
delete hideConfig[this.getAttribute('show-id')];
}
gm.set(gm.HIDE, hideConfig);
settings();
});
item.appendChild(up);
item.appendChild(span.cloneNode(true));
item.appendChild(down);
item.appendChild(span.cloneNode(true));
item.appendChild(show);
item.appendChild(span.cloneNode(true));
item.appendChild(name);
document.body.appendChild(item);
document.body.appendChild(document.createElement('hr'));
});
}
/**得到定制化的图标顺序*/
function getCustomMadeIconArray(hide) {
var hideConfig = gm.get(gm.HIDE, {});
var sortConfig = gm.get(gm.SORT, []);
log('hideConfig: ', hideConfig);
log('sortConfig: ', sortConfig);
var customMadeIconArray = [];
var tempArray = [];
// hide
iconArray.forEach(function (obj) {
if (hide && !isNotNull(hideConfig[obj.id])) {
tempArray.push(obj);
} else if (!hide) {
tempArray.push(obj);
}
});
// sort
var sorted = {};
sortConfig.forEach(function (id) {
tempArray.forEach(function (tObj) {
if (id == tObj.id) {
customMadeIconArray.push(tObj);
sorted[id] = true;
}
});
});
tempArray.forEach(function (tObj) {
if (!isNotNull(sorted[tObj.id])) {
customMadeIconArray.push(tObj);
}
});
log('customMadeIconArray: ', customMadeIconArray);
return customMadeIconArray;
}
})();