tampermonkey-script/translate/translate.js

716 lines
97 KiB
JavaScript
Raw Normal View History

2018-05-02 04:01:26 +00:00
// ==UserScript==
// @name Translate
// @namespace http://tampermonkey.net/
// @version 3.7
// @description 划词翻译调用“金山词霸、有道词典有道翻译、Google Translate谷歌翻译、沪江小D、搜狗翻译、必应词典必应翻译、Microsoft Translator必应在线翻译、海词词典、百度翻译、Oxford Learner's Dictionaries、Oxford Dictionaries、Merriam-Webster、汉典”网页翻译
2018-05-02 04:01:26 +00:00
// @author https://github.com/barrer
// @match http://*/*
// @include https://*/*
// @include file:///*
// @run-at document-end
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
2018-05-02 04:01:26 +00:00
// ==/UserScript==
(function () {
'use strict';
// Your code here...
/**样式*/
var style = document.createElement('style');
style.textContent = `
* {
word-wrap: break-word !important
}
img {
cursor: pointer;
display: inline-block;
width: 22px;
height: 22px;
border: 1px solid #dfe1e5;
border-radius: 22px;
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 #c6c6c6;
-webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}
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: 2147473647;
}
tr-back-forward {
display: none;
position: fixed;
top: 0;
left: 0;
padding: 0;
margin: 0;
font-size: 16px;
text-align: left;
border: 0;
cursor: move;
background: transparent;
z-index: 2147473647;
}
tr-back-forward a {
text-decoration: none;
font-size: 16px;
cursor: pointer;
display: inline;
padding: 0;
margin: 0;
margin-right: 4px;
}
`;
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = URL.createObjectURL(new Blob([style.textContent], {
type: 'text/css;charset=UTF-8'
}));
var gm = {
TEXT: 'barrer.translate.data.transfer.text',
REDIRECT_URL: 'barrer.translate.data.transfer.redirect_url',
MORE: 'barrer.translate.data.config.more',
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.MORE);
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;
}
}
2018-05-02 04:01:26 +00:00
var dataTransfer = {
beforePopup: function (popup) {
var text = window.getSelection().toString().trim();
gm.set(gm.TEXT, text);
2018-05-02 04:01:26 +00:00
popup(text);
},
beforeCustom: function (custom) {
var text = gm.get(gm.TEXT, '');
gm.set(gm.TEXT, '');
2018-05-02 04:01:26 +00:00
custom(text);
},
getBackAndForward: function () {
var backAndForwardDiv = document.createElement('tr-back-forward'),
2018-05-02 04:01:26 +00:00
backBtn = document.createElement('a'),
forwardBtn = document.createElement('a'),
closeBtn = document.createElement('a');
2018-05-02 04:01:26 +00:00
backBtn.setAttribute('onclick', 'window.history.back()');
forwardBtn.setAttribute('onclick', 'window.history.forward()');
closeBtn.setAttribute('onclick', 'window.close()');
backBtn.innerHTML = '⬅️';
forwardBtn.innerHTML = '➡️';
closeBtn.innerHTML = '↪️️';
backAndForwardDiv.appendChild(backBtn);
backAndForwardDiv.appendChild(forwardBtn);
backAndForwardDiv.appendChild(closeBtn);
return backAndForwardDiv;
2018-05-02 04:01:26 +00:00
}
};
2019-01-04 08:19:25 +00:00
var iconArray = [{
name: 'Bing 词典',
id: 'bingDict',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX///8NhIQNgoIWiYn8/v4RhYUcjIwUh4cOhIQhjo4pkpLt9vb7/f3z+fkwlpZYqqrV6urq9fWr1dUlkJ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h5u2MWoJFGmoR/zALAoiJTADgfJWAB9GmzVIDPlIAO+2xApAEMmweo3icUgKx5AChxG/0DRikBJx0Au78+ZwuAP54yBkArFiWkP8CYUYCeECxKTAEAkaVZZbV3wCklYBO+nLb4Mt8zgHIpVjahW3w2lyHEyhlQRuCGWrEah4QhAGC3VHxoHWAIeqhcSKsyNeCJcQCAtj/PElDNTolWzUALbsz78fEG9UJkHKC16vdktA4wB13b2cxJhFBuRsYBzpNYEy9iA2gcBEVEqwED8IWSkdJDJMwA8cmAiqSvQykloOMm5vAWXKjLKsBph+Gdr54SZAbg48M1pDgVr9HdGypj+vHHikgI7auZccDcCwmp4kbNAIy4ORmpkjNOSsB/4J6X758hXfJ+CigB2SvAQW5LQMoya0kwCAhVFAkpE0uaA4wBqjE/9fBnU54kgCGAtpznkC6CiewOgAHAu2O+5GoibUrA6wBDAKmWeI8EqSLPcrrZpwDgPNL2/Pdjjfp3PuOR8/EJAHYAKeaJAzuA7B4r0//UarxwIQTADEC2pk94uIjNIyArlxcEbGZgmyQWJwFYAQj5KbgJwApAUKofx4EdYHvwlQbADCC7ZhYA2AHE3AAAOwCZ9TWAvkEBjRVdSoGRghtoIKLmhsBYIfc9pI57tAaG8wbzlAsPSSx5wYyG91YJxfjnlRMwqVDsQ7/Do/joBzCxv4rYV+u1bxpgapG60s+JrxIB0ytEsbdWFfddsCJPWsSbI1xi3AHWxC+5br7/OKxMgHW19prYNcU9B5aWXPZ3AXAPCmB5owkOOyeoMQ1sSMsp2ClxfwRsyhcWCOriMj6wr1C62S4QlOkG2Jlj/E/hGjDfTHvA7k7uS9dfKYaBQc7g5VdJwV9KAptOM4Isc1O7wCxvRR20Ytv5F1aNwb4yuFDOAAAAAElFTkSuQmCC',
host: ['cn.bing.com'],
2019-01-04 08:19:25 +00:00
popup: function (text) {
popupCenter('https://cn.bing.com/dict/search?q=' + encodeURIComponent(text), null, 800, screen.height);
2019-01-04 08:19:25 +00:00
},
custom: function (text) {}
2018-05-02 04:01:26 +00:00
},
2019-01-04 08:19:25 +00:00
{
name: '有道词典',
id: 'youdao',
2019-01-04 08:19:25 +00:00
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX////99PTpXV3ug4P74uL1uLjfGBjfFhbjMDDuhobpYmLfFRXfFxfiLi785ubiKSniLCzvjIz75OTviYn+9/fjODj86ur1urr86Oj++vroVlbwjo73yMjgGxvkODjqaWn51tbhJCT3wsLwlJTqYGD97+/gHh74ysrxl5fqZmbkOjr51dXyoqL98vLlQUH3xsbzqKj62tr4zs73w8PzpqbsdHTpYGDmSEjlRUX++PjkPT3+9fX74OD63NzwkpLnVFTjMzPiJyfgHBzfGhrteXn1trb//f3//Pz++/v++fn2wMD2urr0r6/zpKTyn5/xm5vvj4/rbGznUlLnTk7mSUnjNTXhJSXnUVHynZ3scnLqZGToWlrkNTXgIiLrbm70srL62Nj63t750tLtfn7xmprhJyffGRnmTEzfFBTfHBz2vLz1tLTtf3/zqqr87Oz/+/vxnJzrcXHgICDtfX375ubugoLpZGT98PDqY2P0rKz4zMz0sLD2vr7hLCzynJzzrKymY9pbAAAAAXRSTlMAQObYZgAACcVJREFUeAHF24dfGlkQB/Cx7YC/Z1BErFjOAxstekQ0oomI2BVbCocaT5Y7W3q/8qdfUS+wb1nYxYR8Pz3Fmd19bz7zilSBmtq6evqeGhS22b9nCo1giCb7HfpO6h1gZnBzi5O+ixbBV8C21nqqPlcb+AaEze6mamsXnAduaumgqursAheCsHXXUxX1eMBa4F4nVU8f66Crhqqmf4Bl8PxA1TMoWOdHqh6vDSyBb4iqZ1iwzghVj3cULIFjjKrHr7COnaonEGQZmtxUCXeIKhBWwBIxSJZ03B2f+Clyb7I5SkamyIgrCJZgOkAldbruB7zuDudMLDxbFxmZe/BwPi7wrzkysmD4TGHBEswn6NpiMrm01Nm53B9aWU2shdc3Nge3Wux1qe2d3eDoXtO+R/A1APwvjJCRHX6UcFMRySjrPPQ/XniSelqbntuZ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d2skq8MtEzgVrDU/YbxkEAlT3QysJNDKWogmjf9a/GWim0HTAwHzCRywFp5QofUyY6AzyDp1b87jphMIROVCr33Ld7XLrl9Iclxkc+SEKDSnwFwCR9IPwMMZ+Y5vyWX/SlyfQJiIkn4bQ0rA3J262mSpcz21h7QO9Qmop9fT63XGTAJbkD8gaQ1pvsGvaXkMC5Y5LunacUoxTMB4EF+QJA3NEFknjQ9gCYKF21KKh0oK/MwayNSTZELVZOA4pgLLRbqZOcq7v7FLJbUrZTeXno+wRtQp/TqUBCntI1JJm4K1XpJO/x/QVqoQfRHLsM4mmbckDwHlRfkbBsg8dtGNQ8ESqL+Tec4sWF/sdeyK1BY9+rRIV17oE4j3kHl+1oLtkorojEgZcPxi5b7BLNw/IvNGBGsgTUUtR3QHCvHgyUSAUoJl0wEyraMZRktySXLdB9aCUKefNoNltWTeX4r8BTrIyOko61JgsA5eknm6w7pWMuZNKWAT7GRaLCsXUTeVsjItwGWtkWnrgjU8p1Sad7jsCSbUGJnVGYV2UM1SWd7NYOnlKLL1ZNahwgVg8uMFVj7sK2AjaHOTSZ07XGh+lsy66087DC9xbS+TSQ2FtUXkJsiK2MXr0Xixc3/xmkxy7SB/FNg26yWrAp+GF3YdnqscAEjLmvLWcU2otnsJN1Vm6tnxxkJjzvZKVW/u07CfTPrQtrc3Gn008ri9g27LPb6SuFh/3deYnks/o6L+AbDOAQEKjE3tAAAAAElFTkSuQmCC',
host: ['dict.youdao.com'],
popup: function (text) {
popupCenter('https://dict.youdao.com/w/eng/' + encodeURIComponent(text), null, 800, screen.height);
},
custom: function (text) {}
2018-05-02 04:01:26 +00:00
},
{
name: '沪江小D',
id: 'hjenglish',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAwFBMVEUzqfEhqvUTpvQRpfMSo/ITovEVofEToPAUnvAQnvUVoOwOnO8NoOwHm/EWnOoMoPIKlew9sfEkoO0bo+/g8vrv9/vz/Pz5/f3J5/d0w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CXIUqliRJxGx5+VopwBARl3fQmbrAjYlqwK5T0gA+5sx0MC1FrK/fsEgCt6XMBWLmPyLrhq7MMClloVSZS3gJepYNwZW90q0Hb8XPw9ZB2/LX2PSILI/YjRY5dp2w2BWN4CfLAUIMycvUWgXcRWTShvgTGAj/i1bqi9mjWBtvaCG4cfwsjVVdXeIlAt47IEt6dOCoESexKfN677XVldz7oAF+yKyQNAZJhAyHOnqhEPCiBup0eGEiGIo9Ypqj5VQIV4xZov4d2Pef6fqpumaT9RoPy/8WHNANkh8MMw5lnuXN2WdWmpvl2gXKKumiyLvrRDB5oTwzAcx/8PNP4gtvzatO//VpcUvZtYx53qkM+YtFP92uBR25Z2xZm+NQjIGbLf+QdKITUhgMFUccLqvbC7UyJwBmYEUCoVNMKc7cW//YF6CQyiNqjqwDDbQAT/6bS6ugLDAFVvAvowLSACRPXB39J2+2Bs8AHijotqAWWtBwREgKwVAREQAX/b8UHM4Xb64Le98XHnYQELREAErA9Ix1ovunSItirNRyIAAAAASUVORK5CYII=',
host: ['dict.hjenglish.com'],
popup: function (text) {
popupCenter('https://dict.hjenglish.com/w/' + encodeURIComponent(text), null, 1024, screen.height);
},
custom: function (text) {
document.querySelectorAll('.word-details-button-expand').forEach(function (ele) {
ele.click();
});
}
},
{
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/+XQn8zLL6hEj7cSM2CWmfAAAAAXRSTlMAQObYZgAADLJJREFUeF68mdeW2zgQRP2M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PWa6uiz/5oC+B3FrsUsFMgWJIdoILWOzEj/wcreI4PvQHz0Hpx85nh+cPKL1KMLZlmzRlAvb7TF7dVrPIYbPpFQAZP+EYdY7nZqowATQBUgrmbNzja1V5B/F2pBf69nSi7EyDHDzGSYlC/8zdFkWtgJW6DQgXQr1Zftt1+gLT8gJUZAdK1DSeVtlhCDfjIhDYRZiFQvn1Dv/rL2ZMQJbthM8lFSBAUVq+bjfNeIFJ8rdlGvU/4O9HqqIoY9AVIdjtZ2zeXC8ujwimbVleCHIjoDAACD2L7tB64YaGk1vdH/16388YDql/9//Dyta1gOwUmT9L5nYfQtN2YuT+/wJctONt5wcVmBMAvO4E+4v1jPed2PmZU7AiVdP1orsQvezYIEb2D/D7A00h0MZ+t7WNGwGHOPK/P/+FpiuKrisacs8s9Q58s3mEqffdtYc0hWFodStE8bFBcgDfW4oB51f0M8GZUUvBKUnQdx4DI
host: ['fanyi.sogou.com'],
popup: function (text) {
popupCenter('https://fanyi.sogou.com/#auto/zh-CHS/' + encodeURIComponent(text), null, 1024, screen.height);
},
custom: function (text) {}
},
{
name: 'More...',
id: 'more',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAABYmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgIHRpZmY6T3JpZW50YXRpb249IjYiLz4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz7UGE7IAAACClBMVEX///9VYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBzg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79VYIBzg79VYIBzg79zg79VYIBzg79zg79zg79VYIBVYIBVYIBzg79VYIBVYIBzg79VYIBVYIBzg79zg79zg79zg79VYIBzg79zg79VYIBVYIBzg79zg782yWrLAAAArnRSTlMALl+Istu6TwMah5mntMFzBwmW/+F6ElPs31gBJNbFDZ/K43vE+zTYBfcnZDVQQyY4BPm51P18nuobIS0VMktkfJGBaE83HAcoQVlyiy19zf/cjDwCEVys9A6C3eqXHU29+wVu6/eIDzbBU+xwAx+pkrftu9ckaSfa7kMElRnkCMjmG6TLCXT2ncwBLP213gZV5KXpwO/xEvxELxPzk/CoibgKo9m+8e7YCs/08iNsFA2IAAAHMElEQVR4AezBAQEAAAQAIOD/ZUNUwXcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk9eyRSw8GD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Q4r4/84CeWGZT3x95wEQwk7HvDzxgJJwhu7/U6hdDva5wYp1iqN0SULNRL37VqiKqlEvFn0JeTLls5tUefBAAEAIBALofbu1f1yAHnL3miKR6q+X/3icAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAguQtJQpv3U0TBLQAAAABJRU5ErkJggg==',
host: ['more.example.com'],
popup: function (text) {
icon.querySelectorAll('img[is-more]').forEach(function (ele) {
if (ele.style.display == 'none') {
ele.style.display = 'inline-block';
gm.set(gm.MORE, true);
} else {
ele.style.display = 'none';
gm.set(gm.MORE, false);
}
});
},
custom: function (text) {}
},
2019-01-04 08:19:25 +00:00
{
name: 'Google Translate',
id: 'googleCom',
2019-01-04 08:19:25 +00:00
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX///9SkPVTkPVTkfVVkfVmnfZsofZroPaox/p0pvfA1/vN3/ximvadwPnQ4fzs8/6JtPi70/v9/v/V5P1fmPZalfV2p/dYlPVonvbY5v38/f/7/P/w9f5Xk/Wtyvr+/v/q8f6RuPn4+//2+f74+v/6/P/a5/3P4PyxzfqBrvigwvny9/7w9v6EsPipyPqGsvhdl/Z+rPenxvq0z/vH2/zC2PtWkvVgmfZhmvajxPqXvPmNtvh8q/dwo/fS4vxblvZ/rfhkm/bf6v3k7v30+P55qfeYvfnm7/7W5f1xpPeUuvluovf5+//o8P73+v9SkfXb6P250vvF2vzi7P240fu91fvu9P7d6f1zpffj7f2+1vvK3fzr8v53qPdel/ZwpPebv/m20Pvl7v3g6/2Mtfhcl/alxvqzzvuIsvhclvWPt/iwzPrE2fzD2fyvzPrn8P51pfdclva91PuxzvpalvXz+P7R4vzc6f1XlPWOtfhRj/V4p/e80/tRkPVvpPdUkvUyb8EpAAAAAXRSTlMAQObYZgAABkNJREFUeF7V24WO7DgaBeDzOylkZoZmZmZmZrqMw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8p3IHktfUHGPEVwaAIvENnkkVqPzQ1EA8xTQex2fEt7oOGW0vfmzG2+EZ+ztxsMcCL1XhOjTLzkKKeAq7AFCOE5faBbOsryrE478BgO5+4uutwyTLt6KTv/bl9BwmuXYRVzse+RTiYpUozPFaEHCNR79NEN/sAUxR6yUutR2P6l0kMNWAGbyLxLX4tM4iCvG5NmCGNYW4hp7mizlIIFBH60ILxNfxZbOvkIAjiNb1KcT1+5frb9atEp8aaKBVoUHiu93Fk3UHCaTn0KKcmxHfFL4ovSeR3nW05jJJfImTKJ5EvYwEWPgMragXU8S3Xcefstsksj+MVoz6SeDZr4BRLwklN2DcSieJ+ErPntj/JqHZGIyquQfEd5JncqMktrkBY+ruAonESngm7yGxZAZGVIsJEknU8Fz2isT2Df15uKORT4Ea/qLcSRo8MejVKH4goXnOgbNtgjTMuss653fPk9jDCv5HdJKRBvY3H3Q4f1sgIfamDRyXi6TJMdmArJPvCyT2w7sqOKKHKmlSKqNRyMhsxUkDS3aDq9FFTdxN+3bQzPHULGliR1nw1SrUTDocvMlCLHQQuFVIW2cDIrEBRk0w52CgvQ08e+exk8ELRk3ct5UgUvtJoaaY4tosno74ns3xqn0kUrlw3jFqagQaqn0kJRV3pCtud1+xo6PjU7HPPZl0Oe5IhvK6Bi31PpKmqmOpVCKVKqiqQpL2Z46hrfGWrORpQzO7s2QF+dNNLugkq7BryGjfJmsoXQ1ICc5ak//QA0kvh8h87CGv5zRHjMw1P5TXd6EYI1NtBvegSzUyQOZRvs8YeMnso2JafucSDOgeMqmB/zAPQ+rnYTMq/MOXg1Eh9/g+tabwz54ojKtmJh2MjEuE53JoTbWta5wMYuG57hJaVt3t+g8ZoPRnzkowxV53IEF69WZqME8jP7k6wEhW4WJrow5z5apzgfAbiQ6scDv1TbUB85WyOd/w63GVNKiOoY7PoVzUwrffz39tLzo/qJzs8fupueCraLQEef8FWy3/BC6ewogAAAAASUVORK5CYII=',
host: ['translate.google.com'],
popup: function (text) {
popupCenter('https://translate.google.com', null, 800, screen.height);
},
custom: function (text) {
var source = document.querySelector('#source');
2018-05-02 04:01:26 +00:00
source.value = text;
tiggerEvent(source, 'input');
2019-01-04 08:19:25 +00:00
tiggerEvent(source, 'keyup');
2018-05-02 04:01:26 +00:00
}
},
2019-01-04 08:19:25 +00:00
{
name: 'Microsoft Translator',
id: 'bingTrans',
2019-01-04 08:19:25 +00:00
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX////////V6NV2tHZGmkYkhyQujS5ZpVmXxpep0KnT59Pn8ucCdAILeQsPew8Oew4JeAkAcwAUfhQ1kDVmrGas0qzG4Mbs9ez3+/eIvogQfBAIeAgRfRFCmEJprWmn0Kfp8+ny+PJ0s3QGdgYZgRkriytVolWx1bHi7+L6/PqlzqUEdgQOeg4HdweDvIPO5M7+/v4EdQQLegshhSGZyJn0+fTw9/ChzKExjjEPfA/5/Pnl8eU/lj+VxpUMegx+uX5cplz4+/jk8OQpiim01rQliCVNnk09lT3Y6tj2+vY6lDo4kjj+//79/v3S5tJsrmwehB7Q5dD7/ftRoFFKnEpusG78/fy52bne7d7b7NvX6dfq9Orv9u95tnnt9e2Rw5Hg7uBfqF9lq2Xa69qFvYW32LfJ4smBuoHM48wWgBbD3sMrjCtIm0iMwIy/3L8cgxySxJKfy5/w+PDQ5tD1+vWdyZ1hqWFxsXFQn1BXo1f3+vdgp2C827wHeAf2+/a417gtAEeJAAAAAXRSTlMAQObYZgAACylJREFUeAHF2mdD20jQB/ARvXi1ip1QRobDiGpuAwIMiLJU2zTTj967uRAn19KufPSnkHAaGdlWnNj3e5kA+9dodrUq4IlSUlpWXlFZVV1TC/+J2gofU7n2zF8ReP6irr4Biq3Rhw+4piMPNjX/0BKComrVkdCMtvaOzq5uKJ5wz49IcY2JwMvePiiWhmaTcXTS+wcGI1AsQ8Mjfl1FB6tftI5CsShj1eOcoxM3foAiGpuQanqCDigmZVJYaQGmIN101wwUTO0sQwcRBmpsbnJ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bing.com', 'cn.bing.com'],
popup: function (text) {
popupCenter('https://www.bing.com/translator', null, 800, screen.height);
},
custom: function (text) {
if (window.location.href.indexOf('bing.com/translator') != -1) {
document.querySelector('#t_tl').value = 'zh-CHS';
var source = document.querySelector('#t_sv');
source.value = text;
tiggerEvent(source, 'input');
}
}
2018-05-02 04:01:26 +00:00
},
{
name: '谷歌翻译',
id: 'googleCn',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX///9SkPVTkPVTkfVVkfVmnfZsofZroPaox/p0pvfA1/vN3/ximvadwPnQ4fzs8/6JtPi70/v9/v/V5P1fmPZalfV2p/dYlPVonvbY5v38/f/7/P/w9f5Xk/Wtyvr+/v/q8f6RuPn4+//2+f74+v/6/P/a5/3P4PyxzfqBrvigwvny9/7w9v6EsPipyPqGsvhdl/Z+rPenxvq0z/vH2/zC2PtWkvVgmfZhmvajxPqXvPmNtvh8q/dwo/fS4vxblvZ/rfhkm/bf6v3k7v30+P55qfeYvfnm7/7W5f1xpPeUuvluovf5+//o8P73+v9SkfXb6P250vvF2vzi7P240fu91fvu9P7d6f1zpffj7f2+1vvK3fzr8v53qPdel/ZwpPebv/m20Pvl7v3g6/2Mtfhcl/alxvqzzvuIsvhclvWPt/iwzPrE2fzD2fyvzPrn8P51pfdclva91PuxzvpalvXz+P7R4vzc6f1XlPWOtfhRj/V4p/e80/tRkPVvpPdUkvUyb8EpAAAAAXRSTlMAQObYZgAABkNJREFUeF7V24WO7DgaBeDzOylkZoZmZmZmZrqMw7j86qtpqe+oZ+2Uk0pytd8LnPNXyY5dpeD/0tl3L2+2Vrcd8dSTN4tOT+9ReT1Uh7VK0ZWY72hTJT7Vv/Zr+2W0BGtEs0uRd+EEaVOcxcP1XBSmy/YcrrkUksEutiLVBkzVqLldKslLbVZiVZhmZ8UdJ936M3smTV8u3pERyvRv3SbEn3/rYmSQ8jHTQEtyl8O8eHmJn3qyMK4WcTJqCSskjxowKHs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b1KcT1+5frb9atEp8aaKBVoUHiu93Fk3UHCaTn0KKcmxHfFL4ovSeR3nW05jJJfImTKJ5EvYwEWPgMragXU8S3Xcefstsksj+MVoz6SeDZr4BRLwklN2DcSieJ+ErPntj/JqHZGIyquQfEd5JncqMktrkBY+ruAonESngm7yGxZAZGVIsJEknU8Fz2isT2Df15uKORT4Ea/qLcSRo8MejVKH4goXnOgbNtgjTMuss653fPk9jDCv5HdJKRBvY3H3Q4f1sgIfamDRyXi6TJMdmArJPvCyT2w7sqOKKHKmlSKqNRyMhsxUkDS3aDq9FFTdxN+3bQzPHULGliR1nw1SrUTDocvMlCLHQQuFVIW2cDIrEBRk0w52CgvQ08e+exk8ELRk3ct5UgUvtJoaaY4tosno74ns3xqn0kUrlw3jFqagQaqn0kJRV3pCtud1+xo6PjU7HPPZl0Oe5IhvK6Bi31PpKmqmOpVCKVKqiqQpL2Z46hrfGWrORpQzO7s2QF+dNNLugkq7BryGjfJmsoXQ1ICc5ak//QA0kvh8h87CGv5zRHjMw1P5TXd6EYI1NtBvegSzUyQOZRvs8YeMnso2JafucSDOgeMqmB/zAPQ+rnYTMq/MOXg1Eh9/g+tabwz54ojKtmJh2MjEuE53JoTbWta5wMYuG57hJaVt3t+g8ZoPRnzkowxV53IEF69WZqME8jP7k6wEhW4WJrow5z5apzgfAbiQ6scDv1TbUB85WyOd/w63GVNKiOoY7PoVzUwrffz39tLzo/qJzs8fupueCraLQEef8FWy3/BC6ewogAAAAASUVORK5CYII=',
host: ['translate.google.cn'],
popup: function (text) {
popupCenter('https://translate.google.cn', null, 800, screen.height);
},
custom: function (text) {
var source = document.querySelector('#source');
source.value = text;
tiggerEvent(source, 'input');
tiggerEvent(source, 'keyup');
}
},
{
name: '金山词霸',
id: 'iciba',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX////1AUv2DlT1A0z5ZpP2EVb/+fv2JGT1DFP+7/T//f7+4uv/9vn2HV/+6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ant0Sl6Xxulg2RRt57NkLwLgq22ABTKMBhC+uupw1FOlgzBoU8+yiRptjWBqvU2zdPgecoFRGGBr7Aa1YJyI3SJLlg4d3vyrdXqD5AvOAPYDLAMp05wKUAYK90Ry7DLLfCYrPDgIsBCHecsSBzDYHiy8z8yxBcCzAn/AKRq0/M6z4CXA8AwtM9JMnAJoR287feJsC9AMHS/wiJZpIMjkRRuwBgv3kRMgmDnvYEUNMAIAypt11HKLMZEupjudaQGOwIw6pHLPcXXKIDdIAO0AFjrKUxKOkAHaADdIAO0AE6wB8qcys27PCHyajxujdUyg+7Is1kcMbRhWSYZOxFG6qxPhEkyWTEQcBdH0ly/ADOXZ7xM756YDsg3J1P69mFM4ljFqRTdgMmWMDOU9jXNmWwyDc2A2b6WezdDGxay7LUmK2A1QDLLN7Aht4tlutfsxPQTpP5PlgWjdFs9kfrAR2KPaD0p4dmX96xGnAdpNl3sGOKAu0WA+700Kwr5cLfFietBbykWeAQ9vg7SeFBVAc00czIwa74feFBVAfcBGni2YN9OUN4EFUBP2VpNgITpx+FIVXAMc2ewpkJmnjvKQKmRY8tCocWWSp7rj6ETQGW+f5XOLWaZZHMxDrUAVh/28JixhGc2/axYPS21V2wOhhkgWcX1djLH8STJjvbMOGdzwc8gV2i1/WeRws27wO/X/CzDVQrTXLpHwd3wrVnJN+lYBHr7bEO0AE6QAfoAB2gA/C/oGnaf/DSo5D7etMMAAAAAElFTkSuQmCC',
host: ['www.iciba.com'],
popup: function (text) {
popupCenter('http://www.iciba.com/' + encodeURIComponent(text), null, 800, screen.height);
},
custom: function (text) {}
},
2019-01-04 08:19:25 +00:00
{
name: '海词词典',
id: 'haici',
2019-01-04 08:19:25 +00:00
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX///8ArvoArfoBrvrl9v4ArPoCr/oGsPoEr/oDr/oKsfr8/v8uvfoIsPkMsfme4P0xvvsjufk6wftjzfyL2vwRs/oVtPoIsPr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bB0QBAs6NT1JwAA7f1ogCA3C8o0gUFIDF9O0i+auso8UxCv1nt4iCAXShe0pyw61aAIuXrz/1DK9RQ126qdeLK+m+4i773vPxB6V9arRM9PHjx9FotFwtetSNSmVHUbtyufoKuzufzmRuJ0579/2/tTbTKCdEjikAAAAASUVORK5CYII=',
host: ['dict.cn', 'hanyu.dict.cn', 'abbr.dict.cn', 'ename.dict.cn'],
popup: function (text) {
popupCenter('https://dict.cn/' + encodeURIComponent(text), null, 800, screen.height);
},
custom: function (text) {}
2018-05-02 04:01:26 +00:00
},
2019-01-04 08:19:25 +00:00
{
name: '百度翻译',
id: 'baidu',
2019-01-04 08:19:25 +00:00
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX///8dbvEkc/EhcfHL3fwpdvJVkvR9q/eavvlIivRuovbZ5/2syvrl7/250vt1pvbi7f3d6f2Ot/geb/G0z/rs8/620Po6gfM1fvMabPHF2ftxpPZonvZSkPQxe/JMjPQsePKDr/f5+//t9P79/v/7/f/6/P/8/f/z+P7b6P34+v84f/O+1fvn8P7v9f4fb/FFiPOewfm81PugwvnP4PwyfPJjm/X3+v9XlPVOjfTV5PwmdPI+g/MVafGmxvpclvVKi/QXavFgmfWGsvhemPUcbfGKtPiJs/jA1/vC2PtBhfP7/P+lxfnR4vxQjvSBrvfg6/3y9v5PjvSUuvhmnfZimvXx9v6pyPovefJalfXr8v5YlPWWvPn2+f7U4/xwo/b///6vzPrX5v3X5f0qd/KyzvqQuPje6v3p8f7u9P70+P7M3/w/hPOjxPkcbfANZPHI3Px4qfdhmvUGX+9blvWpx/q/1vv6+vZLifGSt/Sav/eIs/ZSkPJZl/Vimvb///i4hvJ/AAAAAXRSTlMAQObYZgAABopJREFUeF7t2lV38l4WwOG9E9zd3V3q7u7uLq/738bnqw9JSyMNEBpkLnh607W42L9zkhygq9ApPT09PQa5wgTdE8vJEf3dK4j1EVih2BFfvF6RiMdiyQT1W1LqfD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.baidu.com'],
popup: function (text) {
popupCenter('https://fanyi.baidu.com/#en/zh/' + encodeURIComponent(text), null, 1024, screen.height);
},
custom: function (text) {}
2018-05-02 04:01:26 +00:00
},
2019-01-04 08:19:25 +00:00
{
name: 'Oxford Learner\'s Dictionaries',
id: 'oald',
2019-01-04 08:19:25 +00:00
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAwFBMVEX////6+PPx7Mz00YDtxVPVsVfkrSOrrJvd3MzRmBzwuCfusRfdpBr6wi2scgMxNQf81TnT0a+8fQJiRwonJhe+hwmNag6xiy7NjgiioV6hZQHy75fv4OZoVxzdmwZ7YiGJbCuYezgQGQJeaS5yc12IVwNNTiY/Swno7IPJ0nS3xFSpuzSBmwPG00nc43LT3Vm3yC2XrSqSrQWlvAtsiAJ7jyxNZAFddwFCCRrhpL7VhqaSP13px9fFb5FuKUGvV3jbwFaYAAAAAXRSTlMAQObYZgAAEEJJREFUeAHsltGamzgMhZcA6liSDQMxOLQAyTRk9/1fcCUb0u3tkunVHAB939zon2OdiL++9Hp96UtZlp3yvCiKEsoiL7+9yR/+YHdpXhiDICKWal1V5vnpDyGcTnnJDBuAVACshaCGIj/9gfbvBph/A8BEUNSExWfbkOWladhI/w1gB8G6PZe1VCw+04VTaYz3uwPA2lkBUKqrqtKiyOafZUJWdq7xvQdIAKgEsUYEnQNLKCqy7HP6N87LHZ4OpMrSXm4DdbcT4GeYcLoE5703PvB/AXAH8GxjFj6JIDv5Pv77wWtj8zwCBYjy8kQPpBJS8VqC7N00ZVEakfccZyDEIRQWUAcQvNZ6kDQCotVBeGn/PjSXXPU91/YJQMQUnjOA0YNzEefgtQQ/xjB147ws176/FMxmA4gzYEyMoVEOsv2tEgJAghfGMTt31HyM4zyOyzjyryGUCwKjClLB3nRtEefAYv6q/j9vflrGeV5m6e9NAgjMJtU4A7wBgJVJLGqMepEF7+09uHUWgGVZfXgCgJQJDEMEMFYLGiG4r+qByL6E4K0f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85hW0CA8HRVTIIyjtlSgryv7++rEzUQ2hQBdADUAN8oYECDlaEP++NXxH56ensmOMbm58Gd0Oybek5LrDCGtT3ZdpoZxyFAJl0lVC4rtoBixGs2FC2fh3+Mz30MWuHmBCByOO9Yj8DP0OCjgdnTxcyiWK9sEBchdY8UxYXy3W9gyr4jEBzkKpR62xuAcgRUEzPFxe4TZGuMg2cBtq+zXaIzFI5vTr193OD0+XGaRlTJXgyVulsqQToktw9BGkdW4VSySUVErnSEcw2JwC4Kz74/47M4N8mxN50chl60yy8Hbze8gDG+uGRj0LLhiPtNFCbRozSWBHp11UXcOfNXHOYyS5UqdstGgKzv7c+CK7E4Bbp2A6AKWg7sYVsR7lPHAS60Le45595GPJEtDk4EI9/iFxLXmut6alOyWHXrw1x9i0JEPzDuHVxmuIAKoxv/l8fI0ffLiI39r8TYo6a0flwwzZ2nfc9NGSa4rRdRVEfnoEFiRk79MrHKbhOIUDHdwzy9rvKpZz2d0AbFfrfauK2Bc7LhhAsawAz7bYRtWUVQjzJIFLL25H/WacggI4LpnJscidjXIBQ/DrhiuYDaMObnpATYdGTzmAOiFfxXHUo3eHgYCxhWyi1nA9c0R46ph2AkEXiEX8cvKIhaRX5zR5KOPP7KYgUNc6GhXFCJicEAXr5GA62Ms79UH/EBWd36/NYbcSoxW+Aw72PMsSw3I3fYoiaJG2DHsx60JKiLjTz4ye6SEHvf8vBZHrp/XfnRcsj29D/gBY1SC6FZCDlBA1OBS5QiJJbuj7aKoLxriswBgC79jILzYgGDsaEp5cqMz6BAY0e1Y3z8/g2SpjfyocOwiYOnD/JCRnKyQCy0FdLwi2i9PCtuYTILEDSkG0hsFrj0uj/ef/2Z+qivI60UA+azKA5OVbQRC3jcORR9FSXNG8UXAKHiPhT5mh2RF4heqE73o3Ojj8h3++
host: ['www.oxfordlearnersdictionaries.com'],
popup: function (text) {
popupCenter('https://www.oxfordlearnersdictionaries.com/definition/english', null, 800, screen.height);
},
custom: function (text) {
document.querySelector('.searchfield_input').value = text;
document.querySelector('#search-btn input').click();
}
2018-05-02 04:01:26 +00:00
},
2019-01-04 08:19:25 +00:00
{
name: 'Oxford Dictionaries',
id: 'ode',
2019-01-04 08:19:25 +00:00
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX////8/v/5/f/p+f7c9v3N8v247fyW5Pp93fhm2PdT0vZGz/Y3zPUwyfQpyPUtyfQ0yvU8zfVL0fZe1vd12/iO4vqm6PvD7/zV9P3h9/3y/P7i+P3F8PyF4Plh1vdBzfUnx/QUwvMNwPMLwPMIv/IFvvIDvvIBvfIAvfIQwfMcxfNP0vZ53fia5fm66/v1/P/e9/2r6fsAvvIaxPNp2ffw+/637PsgxfQAvPL4/f+U4/okxvSC3vkjxvTs+v4kx/P6/v9u2fjH8fwSwvOi5/oyyfUWw/O97vwCv/HA7/xW0/aJ3voBwPFp1/cbw/MOwfMGwfAVwfTZ9f3l+P6y6/ud5vpH0PzI8f3D9P3W9fpa1PcXxfRk1/cdxfSR4/nR8/2K4fm+7foAvPHK8fzT9P206fsuyPQYxPMew/Sv6/u57/xx2vi07PsZw/MhyPS/8PwyxvPU8/2D3fcryfWs5/pX1/3U8/e67ftj2PgzzPaQ3/c/0fZ64fj5/v/X8/tJ0/lwlwy1AAAAAXRSTlMAQObYZgAACJlJREFUeAHt2fdfIkkax/GnaBhRyUmCCkI3/UVw24SKIpLUhQ3uwbjuseLkmZ3V2Rzm8p9+oS85r6qGQpvXxfevj+FD6OpQNLH/Yw7F6Xow456dm/d4fX/mDwRD4Ug0thBPJNnU/3lqMba0nM6sZHOqltehm/KaqmYLq4Fiae29uMGm99/XN9zFjIoRNrfS2zOLZZoCh7LjLu7uYbycp6SQ3SrO/bkDyFqNk72Srmq6AHmHtgYwZTGSyWMSB3YG1Da2DzGhI/sC6vFGAfjXBSixeR3/ugBHc7kF/OsCyu1j4F8YkCid4F8ZEF/W8C8MqJwW34etAaxOEzDWMoC9AZVOk5EsY2Y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/E9xeW+wL71x//6Ia8uUwijbbpzGS1QJG2yscd0vnO651JelgdcYclXI/fhqLNv7wlYoxinEaSykVMF7LFwwNZiPuarVaul6eS3tXVYw3/4wkKO4CJOU1NadqkPR0vklSaqUzTENwkST1IznYz/eQpPVLBdjt+Ic6yau1A5uwUy7cZBNeTAT3YJ+VUoom9ayrwSab3vMyTc5ZOoE9ip063UU5loYNCtc9uiMWrx7hnvR0rEZ3Z+zM414Ol+J1ug8Wj86f4a4ykSdJui+j1w61cAf6UcRVY2SDeio2OMSECp7SRZnswso/bwdUyDvs7vcMshMznkUH/jxktNKRG8VBtqsrPz8efK9itK1049xVYTQVrK4sxqoDz+pZTtX0P4MJup7Pa2p2JRO6ntmJG4ymiVWU+EJs6TLk8X5/tLv6Z8PDjD+QHkSublyJMqP/m9CfAEzoM7Az/eTVAAAAAElFTkSuQmCC',
host: ['en.oxforddictionaries.com'],
popup: function (text) {
popupCenter('https://en.oxforddictionaries.com', null, 800, screen.height);
},
custom: function (text) {
document.querySelector('#query').value = text;
document.querySelector('button[data-value="Launch search"]').click();
}
},
{
name: 'Merriam-Webster',
id: 'mwcd',
2019-01-04 08:19:25 +00:00
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX//////v3//fj++vL+9OL98dv97dL86MT85Ln61pb5yHf5zYL72qP++O3736760Yv1t0T1tkv1s0P3u1f1wV34w2r4vmD4skL5tEn2qy71sTv2uk7+9un2rjb8z4//+/v+8fH96+v85eX84uL739/729v96Oj97u7++fn+9fX6zMz6xML4rqzziofzeXjuZ2PvXFrrUEvvSkfrSUPsWFPuYl/xcGzwhoL5v773x8b72Nf+9/f3rz/60M/5trj0mJbqPjvqLSnqJSLpFRHmFxLlHhnmIRjmIxzlKB/nJSDmIB7pHhrpGhXpGBjqIh3rODTxamfzj4/3rq/6xcX+8vP6vLvvcm7rQz7nLSbnKiPpKSTrJyfpIBnpMi72ubb71tf4ysrzlJHvQD75srH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AEQzNdUY7dTot8WjCDmoWxYyb8nIKTuE76eIyOU56ImsrSGWt098aXjqMs1kU7NHiRf/65mOz0YNrZYZhoBLROD+iwAMjzPetbHg1vVOnJybsslZNSuBNGrnP5PNI9lCs7Le0w/dyt7iTa+RtornsUaZmTXrS9wnw2MdGr40+MKEEODVSwB46QmgUWO906vTtTEgc++LlGt4EHfPV9hecAYRaWUs2JvzpxyLc2cmDkDE90mywjWTKTP+Aaqd4WPdMBUhwMDLl+CyU1cABbsEGM5oKQLzqZKFqt6Yh6vpwlYQyA/kSBfeh3obwR7KnCunlwBk1cqEYT2vijtTrtOs2
host: ['www.merriam-webster.com'],
popup: function (text) {
popupCenter('https://www.merriam-webster.com', null, 800, screen.height);
},
custom: function (text) {
document.querySelector('#s-term').value = text;
document.querySelector('.s-frm').submit();
}
},
{
name: '汉典',
id: 'zdic',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACABAMAAAAxEHz4AAAAMFBMVEX////89fXvy8vz2tr+/f346enotrbhoqLai4vRcXHGUFC7MC+zGxupAQGuCQmwAAA775PrAAAAAXRSTlMAQObYZgAAD+hJREFUeF7NmU9QIumSwK0W7kUD09ceULFvKvjnCCLvDANlz7XxifpurW9E3ZsdIX/cU29Eyx+fL+IdXlsU7V6FQt91pArm3lJwVgHPG7vIZuZXCoITE7GnzRCrqD+/yswvM7/8ipH/k3B2/oWjBtNLYhWEgSOCSRDsFpN7GBuyBuA0ScBkpU3ANBMJzwpOwWoFljMAp4MRZ8Qe8Aj80ON/2o4+kzXaxOOxaDTCjuBuLBpbSx9MDwG4gHlSUlVFlXOynJNKqpLLybmSqqrFdFbO5GFHgU+pBN8zamozNGCCwboW2avU2+0aAopyqdouSrIkq1VVjEvFtKyq1XYTPm21GM/IqW3/0oACc5KYkcV0ToxGtic3HdFEZtOxEznYSSc2nfMx2/bOTiKXiiZyYmLLOXewKvADDgg6MmI6vT0R3fSZXN6QLzQXCfmCJpd5Yia05BMsLsE6F10xze0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PmPPpP+gRDZ5jDdaODQAsLV70AyBCoan4B99/8ZJnGMf9O70DQMAbBuCyjwDju/Z/9N+xtORD3nCXyQCe9wzgg7IOiwkoKMaN6j/omQbWVPsikXHwm3NWr80BD/SWyxjQBDC9rwCAqvKYcZJpUPmV6i83Tg3hYrZ4EI5M7B7RsZm1FS/PzW5UMbDZC4gLBrgoUzIR4HZzXLA6HbEIA
host: ['www.zdic.net'],
popup: function (text) {
popupCenter('http://www.zdic.net/sousuo/?q=' + encodeURIComponent(text), null, 800, screen.height);
},
custom: function (text) {}
},
{
name: 'Settings',
id: 'settings',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAp90lEQVR4AexcBXBbu9pcmZmCpcCFMrcptz/jY6bLzMzMzMzMzIzlNsxxqIYws/FI77t+zUzad6H2iV2PJzuzVY6sI0+0q0+YMqQoNpeUMCEE45yruBBqStWCGHmmlPIiKVElxsuMf0YU//g8TBwh9hGbAXCkGNhTr7+OVMLc2bNVAtBJkrQQwF+IK4gziWwC8X0piT7xGfTcE5ak5pGRkW8HBgYqyATFAPqRSiADpAx3VlWpdlRWTqfefwcxRBSTxPDnO3a8+sybb/6avseYQm2WWgbYXV09c0tp6ZUR0eLAT7Zte4RMsJGIVKGCgFTg4gULjJzzfCHEpYgTDHr90Xq9Pg9AGlIECqQIGGNmSZJWAtAjftCZzebZZDgrEalAFf2TKgawCmAh4gyNWp1PbWZGaiClDKAFYEGcQe2lJzIkHaYMoE7QkMbpu3jKGIAxliIGgIoBygQYTaJOE0bSYSoCpAsgLQHf46A20yJFkNBl4IbVqxQbVhVkrl9VwIiYLC6YMyeDgdmEEPkJMMBh9LsoAZgwiWhsbGT1DQ3WOqeTEZEoKhLxJST6USTUhwxoAGNFlBYDeBJC/CsRcjg4PMwIi/2BwAoywIwEGCDfarGsIhNkAmCQCbfHM8/lcp1A9d2gYOwGSu8GcDHnfBMR8aYinpUff8QRM0486shPwpL0RFdP73+529pzmz3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GfqvvjkzahG9vJWFt7S
host: ['example.com'],
popup: function (text) {
popupCenter('https://example.com', null, 800, screen.height);
},
custom: function (text) {
settings();
}
2018-05-02 04:01:26 +00:00
}
2019-01-04 08:19:25 +00:00
],
hostCustomMap = {},
customMadeIconArray = getCustomMadeIconArray(true);
// 初始化 hostCustomMap
customMadeIconArray.forEach(function (obj) {
2019-01-04 08:19:25 +00:00
obj.host.forEach(function (host) { // 赋值DOM加载后的自定义方法Map
2018-05-02 04:01:26 +00:00
hostCustomMap[host] = obj.custom;
});
});
// 前进后退按钮
var backAndForward = dataTransfer.getBackAndForward();
// 绑定前进后退按钮拖动事件
var backAndForwardDrag = new Drag(backAndForward);
2018-05-02 04:01:26 +00:00
// 翻译图标
var icon = document.createElement('tr-icon');
2018-05-02 04:01:26 +00:00
// 绑定图标拖动事件
var iconDrag = new Drag(icon);
// 翻译引擎添加到图标
var isIconImgMore = false;
customMadeIconArray.forEach(function (obj) {
2018-05-02 04:01:26 +00:00
var img = document.createElement('img');
img.setAttribute('src', obj.image);
img.setAttribute('alt', obj.name);
img.setAttribute('title', obj.name);
img.addEventListener('mouseup', function () {
if (iconDrag.elementOriginalLeft == myParseInt(icon.style.left) &&
iconDrag.elementOriginalTop == myParseInt(icon.style.top)) // 没有拖动鼠标抬起的时候触发点击事件
2018-05-02 04:01:26 +00:00
dataTransfer.beforePopup(obj.popup);
});
if (isIconImgMore) {
img.setAttribute('is-more', 'true');
}
if (obj.id == 'more')
isIconImgMore = true;
2018-05-02 04:01:26 +00:00
icon.appendChild(img);
});
// 翻译图标添加到 DOM
var root = document.createElement('div');
document.documentElement.appendChild(root);
var shadow = root.attachShadow({
mode: 'open'
});
shadow.appendChild(style); // 内部样式表
shadow.appendChild(link); // 外部样式表
shadow.appendChild(icon); // 翻译图标加入 Shadow
shadow.appendChild(backAndForward); // 前进后退按钮加入 Shadow
// 重定向
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]);
}
if (window.location.host in hostCustomMap) {
document.onkeydown = escExit;
backAndForward.style.display = 'block'; // add back and forward button
}
2018-05-02 04:01:26 +00:00
// 鼠标事件:防止选中的文本消失
document.addEventListener('mousedown', function (e) {
2019-01-04 08:19:25 +00:00
if (e.target == icon || (e.target.parentNode && e.target.parentNode == icon)) { // 点击了翻译图标
2018-05-02 04:01:26 +00:00
e.preventDefault();
}
});
// 选中变化事件:当点击已经选中的文本的时候,隐藏翻译图标(此时浏览器动作是:选中的文本已经取消选中了)
2018-05-02 04:01:26 +00:00
document.addEventListener("selectionchange", function () {
log('selectionchange:' + window.getSelection().toString());
if (!window.getSelection().toString().trim()) {
icon.style.display = 'none';
forceStopDrag();
2018-05-02 04:01:26 +00:00
}
});
// 鼠标事件:防止选中的文本消失;显示、隐藏翻译图标
document.addEventListener('mouseup', function (e) {
2019-01-04 08:19:25 +00:00
if (e.target == icon || (e.target.parentNode && e.target.parentNode == icon)) { // 点击了翻译图标
2018-05-02 04:01:26 +00:00
e.preventDefault();
return;
}
var text = window.getSelection().toString().trim();
log('click text:' + text);
log(e);
if (text && icon.style.display == 'none') {
log('show icon');
log(text + ' | ' + e.pageX + ' | ' + e.pageY);
icon.style.top = e.pageY + 12 + 'px';
icon.style.left = e.pageX + 12 + 'px';
2018-05-02 04:01:26 +00:00
icon.style.display = 'block';
// 图标开关初始化
var isMore = gm.get(gm.MORE, false);
log('isMore: ' + isMore);
icon.querySelectorAll('img[is-more]').forEach(function (ele) {
if (isMore)
ele.style.display = 'inline-block';
else
ele.style.display = 'none';
});
// 兼容部分 Content Security Policy
icon.style.position = 'absolute';
icon.style.zIndex = '2147473647';
2018-05-02 04:01:26 +00:00
} else if (!text) {
log('hide icon');
icon.style.display = 'none';
forceStopDrag();
2018-05-02 04:01:26 +00:00
}
});
/**日志输出*/
function log() {
var debug = true;
2018-05-02 04:01:26 +00:00
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;
};
2018-05-02 04:01:26 +00:00
/**Esc键关闭窗口*/
function escExit(e) {
e = e || window.event;
var isEscape = false;
if ("key" in e)
isEscape = (e.key == "Escape" || e.key == "Esc");
else
isEscape = (e.keyCode == 27);
if (isEscape)
window.close();
}
/**触发事件*/
function tiggerEvent(el, type) {
2019-01-04 08:19:25 +00:00
if ('createEvent' in document) { // modern browsers, IE9+
2018-05-02 04:01:26 +00:00
var e = document.createEvent('HTMLEvents');
2019-01-04 08:19:25 +00:00
e.initEvent(type, false, true); // event.initEvent(type, bubbles, cancelable);
2018-05-02 04:01:26 +00:00
el.dispatchEvent(e);
2019-01-04 08:19:25 +00:00
} else { // IE 8
2018-05-02 04:01:26 +00:00
var e = document.createEventObject();
e.eventType = type;
el.fireEvent('on' + e.eventType, e);
}
}
/**弹出居中窗口*/
function popupCenter(url, title, w, h) {
gm.set(gm.REDIRECT_URL, url);
url = 'https://example.com';
2018-05-02 04:01:26 +00:00
var x = screen.width / 2 - w / 2;
var y = screen.height / 2 - h / 2;
var win;
try {
win = window.open('', title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + y + ', left=' + x);
win.opener = null;
win.location = url;
} catch (e) {
win = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + y + ', left=' + x);
log(e);
}
if (window.focus) {
win.focus();
}
return win;
}
/**鼠标拖动*/
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);
2018-05-02 04:01:26 +00:00
// 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();
}
if (backAndForwardDrag) {
backAndForwardDrag.dragging = false;
backAndForwardDrag.unsetMouseMove();
}
}
/**设置*/
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 = '&nbsp;&nbsp;';
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);
});
}
/**得到定制化的图标顺序*/
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;
}
2018-05-02 04:01:26 +00:00
})();