tampermonkey-script/translate/translate.js

736 lines
103 KiB
JavaScript
Raw Normal View History

2018-05-02 04:01:26 +00:00
// ==UserScript==
// @name Translate
// @namespace http://tampermonkey.net/
// @version 5.4
// @description 划词翻译调用“金山词霸、有道词典有道翻译、Google Translate谷歌翻译、沪江小D、搜狗翻译、必应词典必应翻译、Microsoft Translator必应在线翻译、海词词典、百度翻译、Oxford Learner's Dictionaries、Oxford Dictionaries、Merriam-Webster、汉典、PDF 划词翻译、Google Search、Bing Search必应搜索、百度搜索、Wikipedia Search维基百科搜索”网页翻译
2018-05-02 04:01:26 +00:00
// @author https://github.com/barrer
// @match http://*/*
// @include https://*/*
// @include file:///*
2019-03-22 11:43:10 +00:00
// @run-at document-start
2018-05-02 04:01:26 +00:00
// @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 = `
2019-03-22 11:43:10 +00:00
:host{all:initial!important}
2019-02-23 01:18:47 +00:00
*{word-wrap:break-word!important}
2019-03-21 04:21:03 +00:00
img{cursor:pointer;display:inline-block;width:16px;height:16px;border:1px solid #dfe1e5;background-color:rgba(255,255,255,1);padding:2px;margin:0;margin-right:5px;box-sizing:content-box;vertical-align:middle}
2019-02-23 01:18:47 +00:00
img:last-of-type{margin-right:auto}
2019-03-21 04:21:03 +00:00
img:hover{border:1px solid #c6c6c6}
img[is-more]{display:none}
2019-02-23 01:18:47 +00:00
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}
`;
2019-01-23 10:40:19 +00:00
// 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;
}
}
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, '');
custom.forEach(function (cus) {
cus(text);
});
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///8Ap54BqJ4BnpLh9PMCqZ8ApZ8BqJsApZsBqZ0JpKIFqZ4AqKAGpp4AopgCqqADp6ACpp4Dp5wCppj4/fzz+/v9/v5VxLXu+vkMppsnrqKv4dyX2tUFqqS16eUEqaEArZ4BqZUFpaIAoY/q+PcaqqEAraEUraEGpZia4NphwLoApJQxr6RDtqwAqqACqp0ApJsBqp4BqKM3taoAqpsArJoEq6ADpJsBqaHm9fWi39ortahqyb0OqqK+5eLV8e3b8O+G0svS8fC53914y8XR6+tQubABoZ3E6+g8urOY1dAGqJfp9/bA6+U4vqoCrJ4DqJsHn5sDqKMjppwCraSAzskLqZQHraUOopEEo5530MYCpKDI6+dsxsDz+vgApJ6o1tQIrJ9YvLUXpJkCq6La8/AAsKIAqKON1c8CqakbtqVDvbbM6+nM5+l81c9Av67v9vgNqpsHrZtLvrBbyL0Psp0Ispje+vrE5+zI5ubE8O/K4N3l+vzk+vNJxLV8z9Dt98HPAAAAAXRSTlMAQObYZgAAB9NJREFUeF7t21WP5DoWB/Cxw8wpZmbmam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+c77o8rGiaSt75A4BbKAQlShYLKWdWbI+1A/y+muVO/9/i64h4TMfD8+cttQeC4QollwzJkmJEC+jF1w5ic9rS7jsoOJlJUpkiGWV+Tz+dlFQmgn9XW3MyL48+dhEsQRFGr7vqOFAYVoB9ndPKNp33s6LhjSax4QQKevwP03wx+tID+vojic/7U3uec+6oaycBmk6Jp0JSCpRLHqYBUFLleqFI0ACMB9PdFb3v+0X6XriQikVCIaZJKOKwomkYT9ZJmRS0QDDM6QD/Gh8nx9t519sZ1RWMXJFn2FVSV5sYEoV5nKASAXnRn683vqdlcpRMTMUwkfQfbR+UmpGCdQAOwYprG+eTdr2jrHQHD6GbQiiTIqAB9hRl1Pp32Tjk63w4PMxrN85BHCOhH152reOqdoxNLXFGiSDdv+eeNPgChwnD+dnn8JedOUBHqYittx5/Xpmltz1OP9btcDJuf6AOQI0zDaPlT/iHOH4/5D9P5Zog1Z0oWAAAAAElFTkSuQmCC',
host: ['www.bing.com', '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/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3QHCvHgyUSAUoJl0wEyraMZRktySXLdB9aCUKefNoNltWTeX4r8BTrIyOko61JgsA5eknm6w7pWMuZNKWAT7GRaLCsXUTeVsjItwGWtkWnrgjU8p1Sad7jsCSbUGJnVGYV2UM1SWd7NYOnlKLL1ZNahwgVg8uMFVj7sK2AjaHOTSZ07XGh+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/d0wfFPrOwUnO6g1PP6/vn+/vn+/v3///8QmOkbmuz9/vP5+vz9+/0Vmu0Tme/0/Pb++fn6+vk+pOsmlOcamOQWkugJj+wVmOsVl+sVluoXleoXlOkXjeUXkecMieYah+QXjugWjOYdjeEYj+YYieUYi+QYi+ZrlpNiAAAHc0lEQVR4AezQAxbFQAxA0aRRbex/p9+20dya884A4GcBBp8FHuABSETBG9HM1tV3BHySBwDyFprhgzszfHB7fXL4+eHJ4ctzXxfwAYAe4AHyWR7gAR7w9QEqJry+4tNExFSFRVXtpgA7K4w4jmxGZlcnWWIaqnEcWxTGdr1LAWmWJXkxk5RZckYx26Uyb2B5XgBWgLBQnQdQN0U27Q01et4MJFXbLfXDWX0/IbU+FFXVlTAAuzuI4UaNhpAyIWhi4xLw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7cW//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/+XQn8zLL6hEj7cSM2CWmfAAAAAXRSTlMAQObYZgAADLJJREFUeF68mdeW2zgQRP2MDMacg3KYHGzv/v9fLQgRopgkK3jrHM3rrUY3q0HOj1vkaTooS0qLwhUqaBgnINe8H/+HPBvE1LLSNGVsV0v8ZUK71HJpomt/l66B2DVTCW0lDWDMEEJ4ZxVJ7v01OrUEPK3VN4CVCMamG+ePp3t5rOhTBpQQQqmbaI/Fg8KUdKUTtvjhoZAV5w/Eu2kfr8Rq4RERZNL8YXim0FPtH/IJQrB6hAW9SHcDeiuGRy0QKQTN+M5w0EKTpePlY4ZreI1HpI9XgtAC91hIrF0X3ziQbNO0LFfIshbmTg4/UfRWCKLb+2CHI6fPhFKriBM91zQVzHYOSuqamEBEBuILcGP3++UL1XA6lXU2KAsTQThwgOgNbfBK85Sv6OGFtLeT2kOHDyHkVn41n6Yd1XiTAu1POle6GMKDC6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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/ZUNUwXcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk9eyRSw8GDgBQEET3LjY2tm2j/7piJ7+CfS3MuD1eiPL5A8FQOBKFplicV4lkCorSGV5kc3kIKhT5UPJCTrnCh2pBsH+NL+qQ0+CLWkG7P5stiGmRcgfY/cl2B1oqtA8Q7E/6ICXVpX2AYn/2IKVP2gco9ucAUoa0D5DszxGkjGkfINmfE0iZzuwDJPvPIWZB+wDB/ss/iFlR8gCjP9dQ4y1ZByj232whZ7exDhDsv4eg/ZFdOqgBAACBAFRM+9cygW/djgywDuBvAH8D+BvA3wD+BvA3gL8B/A3gbwB/A/gbwN8A/gbwN4C/AfwN4G8AfwP4G8DfAP4G8DeAvwH8DeBvAH8D+BvA3wD+BvA3gL8B/A3gbwB/A/gbwN8A/gbwN4C/AfwN4G8AfwP4G8DfAP4G8DeAvwH8DeB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XP4F5/gl8yp2LxTEwv8fAy7uwU1wE5fciaAs4v1lcBef1Knh9DWD1wUf27pgAABiEgaCRKqjbLtXLgAQGhlw0sJH8Zz6DPIP+9Q72Du5CUF4hRCHkHZUwlTClUKVQtXC1cMMQw5CVCzANMw40DjUPNg8HCACIyEOEQMSABIFEwYTBxAEFAkVChULFggWDRcOFw8UTBhBGUIZQxpAGCW2YEAcKdaiQBwt9+CDFLh3TAAAAIAzz75oLDyR0FrrG3wH8HcDfAfwdwN8B/B3A3wH8HcDfAfwdwN8B/B3A3wH8HcDfAfwdwN8B/B3A3wH8HcDfAfwdwN8B/B3A3wH8HcB/8wD+DuDvAP4O4O8A/g7g7wD+DuDvAP4O4O8A/g7g7wD+DuDvAP4O4O8A/g7g7wD+DuDvAP4O4O8A/g7g7wD+DuDvAP4O4O8A/g7g7wD+DuDvAP4O4O8A/g7g7wD+DuDvAP4O4O8A/g7g7wD+DuDvAP4O4O8A/g7g7wD+DuDvAP4O4O8A/g7g74B3/5BLD1YMBAAQRDdPsW3bRv99xXePW8H8FmbkD3gI5w7s7w/oxERz9f2JB1wEEzn7/sQDToI5+v7IAw57oeyw/d0BW6FsuP3NAWuhrLj9zQFLoSyw/c0B84pQ4r4/84CeWGZT3x95wEQwk7HvDzxgJJwhu7/U6hdDva5wYp1iqN0SULNRL37VqiKqlEvFn0JeTLls5tUefBAAEAIBALofbu1f1yAHnL3miKR6q+X/3icAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAguQtJQpv3U0TBLQAAAABJRU5ErkJggg==',
host: ['more.example.com'],
popup: function (text) {
icon.querySelectorAll('img[is-more]').forEach(function (ele) {
2019-03-21 04:21:03 +00:00
if (ele.style.display == 'inline-block') {
ele.style.display = 'none';
2019-03-21 04:21:03 +00:00
} else {
ele.style.display = 'inline-block';
}
});
},
custom: function (text) {}
},
2019-01-04 08:19:25 +00:00
{
name: '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qwH/FkBNjJ2d0SYAI8XaoyXQ06Pzm/BZgDkZJ0Yq/GX7i6Gr26/CZwHGz8r6yUiEP39nIbR3aP13GahmxszOaJcz/BmbC0DT2kMHwAL4xTzgpFzhT1qfBw0t3f4aPguAjJv77KdyhP/3lTlQXU/v6Q9wAbgM/Hl5DpRVd/hr6CwAIcApqcL/w5JsKChr9+fQCQF4HvAzKcL/zYIsyCpsVULwLAAhQYcv4U+clwmPsjWKCJ0FIBg3J/20t+GPn5sJN5/Qx7lZAIUwZlbmz70Jf9ycDEi816TE8AkBuAx0eirApTRiV65iBWABzngSftjlGsUGzwIQjJ+b9Qt3wz92oUrp4SMWDt6GoCD4Rgi3y1X4e8LKAyF8pImDH8bYWRlnnYW/5VQZaHW6QBHgKoc+jHGz038pFv7qwyXQ3RMw4SPrOHS6DHQPD3/J3iLo7Aqo8HUC3+XQCcbMyQy2DX/O9gJobe8JpPCRvwoEceAEY2dmjBkKf9rGfGh5HnDhHxcIciIAl4HfL8569++1edDQ3B1IwfcI/FEgiAVwwaYTpber6joNwn/rFcwXgVqBWIEVAt+x+zlZAOZ/xxy2X2J2T5MAAAAASUVORK5CYII=',
2019-01-04 08:19:25 +00:00
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+/eIvogQfBAIeAgRfRFCmEJprWm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v4g13yTAFdTkrTgGLi5S6X34LsEePGLPX/ZWgu4G7fsAKXb4GK3QqATl55WgWWyhJqZMm+PS3u7MQEuDuMGptMG9iC3kjZm710uMm6cmX3rded6f+XDp0S8HnKht7DmZALczbTbAdpaIJ0yXdmDboyzIchuo9Ug8/sYMuiyA6D/6d+MPDdVdGOZ70YhG2XCsG9rjWEl488t2o2S/Ahpjp9jJlyfzJag7y3Z5xvvI5BRk7Rv3hrSq3imcyQEowl6Gjcyj1+dZGhPwV3IrIPc//8JDodTOq2/KjYrhGMq3EIGSjjZj48k61QgsyOS9BKomlc+x/jmWWR+QNDNUx24Gx2Wdv1V7WUCsrgy7UMqJ70a+XPWQIKL83pQasj3xMZSLbg6bPxLktvcjhBkM0YeNwj71eTMu5SGBDcmQw9b5FiQPd6jdC6DC2XmA+P0NrcesgrF7Ilu6ZWfT+t+eElIJPqtxsdP2idmuRC6IQdO+sBNybhBxvfFDyG7vmH6qkOsTYb/GW6M+gVSf/nf2n3UNTg+vhR/V5JwPZ43AzrajMUZyGWmXKJNChFkQnLnohOYA2rooMv9uBLrZxZDevzHkJMyaWJWTP9wCp4MhaO0/FLbqgcPWsoZZiHWLg/Bi9G7Ds7QJuWnA/DkrWZhJrq2WNcAXuw3phhHG
host: ['www.bing.com', 'cn.bing.com'],
2019-01-04 08:19:25 +00:00
popup: function (text) {
popupCenter('https://cn.bing.com/translator', null, 800, screen.height);
2019-01-04 08:19:25 +00:00
},
custom: function (text) {
if (window.location.href.indexOf('bing.com/translator') != -1) {
if (hasChineseByRange(text)) {
document.querySelector('#t_tl').value = 'en';
} else {
document.querySelector('#t_tl').value = 'zh-CHS';
}
2019-01-04 08:19:25 +00:00
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///9SkPVTk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KqNRyMhsxUkDS3aDq9FFTdxN+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/H+5u32Gl3//P34ToH1CVH3LGn91eH8q8T4VYb2FVn6hqr/+/z5Y5D8p8H3Pnb4RHr4QXj3MW3+6e/5aZT1B0/3PXX6fqP5c5v7o776g6f4TID7n7v3KWf6iaz7lrX7jK78rMT9ztz2GFv9yNj1BE3+8fX4V4j3NG/4Rnz1BU7/8/f9w9X/+vv5a5b/9/n5Xo3+2+b8rsb8tsv8ssn9ytr8qcL+7fL90t/5W4v2HF79wtT3Kmj9xtf4UIP8vdD/9fj+2uX92OP8qsP+3+j/+Pr+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ADdIAO0AE6wB8qcys27PCHyajxujdUyg+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/oVtPoIsPrT8f7s+f4tvfpu0fzY8/4ArfsEr/mF2Psatvoou/pBw/v5/f+05/110/zF7f7f9f5p0PxZyvyV3v0Ksfnx+/81v/set/pcy/un4/xnz/zL7v1Ox/zq+P5Uyfwmuvnh9v7t+f/2/P+q5P0rvPpezPzs+f/t+f4hufoLsvqZ3/30+/7B7P5SyPyu5v0iuPuR3Pyx5v1RyPoiuvpRyPwnu/q36P2X3fpUyPosvPgAq/pJxvpu0PovvPhZyvsguPuj4f2y5vtQx/kht/cuvvpOxvpRyvwyvfru+v8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zjheJ6LIUED5DTTTjBsCw4MqcJ6KLUkDhMrVwDmAdE1QBf0oAwmwK8DYs5D+0BonoOgtJoaYAdM6o+UQuUqYKgCSjOcAm41gidBxwUSXgt9eoEYjjgJuQJBaomb7/u6sGYMCOX6gGRH7qgnBlOH/X8zIRPdRVArJ6zQw41iGnPAFocgo+vkJNAm0EfPsKknhZNWDtF2/ArZsKASu7kMV3lQMKkDanGqCZkLapGjAYhrQEEaVVLsIeC9LmiWiZFQKe6JDEZgVAVxQCFlMsZIB7mmLAfIEha4oUT0GCIUsfUg24JQeELigGzP8FaeaiYkDW8x9jtYCBJOR1kFrANXj0Xi1guwx5u0W1gISAtFCSlAK27sGjz0oBkU2GR/eVAhIvIY/jGlXbgArAh6/YCzAToWo3VAC2exleXSB1Z2ArzfCIe1eOANxywPN+hlc8R8rOwFZawDPjwxHgRasBV8sMz/RbESI1i/B8AT7is6QGUBwz4CNObSsBTHaEGb66Rg5Aq/6iOcim4C/9yiTZ3RGy8X+8Tv4qrveb8BvPOtzPLAkgnr9bWl1dLZXso7tSaVvTtPeJobQJ/3E/OUoKSVYsf6nSzs6OfXT17t1OLhw2DGY0UOiAHPWxXKuzrrMkNBzPRcjRBqO9cXyFAgXos+QG6GhrPEOBAjhfChYQ+kJEQa6BHgoUwBkKFMDpCBEFtwY4uUKBAnZGKFDAvU4KFHCpk4IEsD1+MACOdlKggLsjFCSgu4MoSEAhEQkU8OwLSVJ9KWZrqEQBAowbB0QBAs6NT1JwAA7f1ogCA3C8o0gUFIDF9O0i+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/738bnqw9JSyMNEBpkLnh607W42L9zkhygq9ApPT09PQa5wgTdE8vJEf3dK4j1EVih2BFfvF6RiMdiyQT1W1LqfDnSRkQXbG709/eXb8fuVsv9FTZJ41MrD/hsxhMBUcJYUZz97bfvRaxwwlsMFyh5m4ZAhioDYrwjkGK1Ii0IjSVTn2iXps0n95ahw8PDXyXksKoyogNo/ADqpmDLm5+kb5Vh2vIa1kWqIs0HzMALmaqfrax4CNHkKBZZjkjZgY0iSmVlCkQGuIeAYWlFwW5zAbNGYGgVTc1CQbpYcwHXwLIawrpO1p6VlOGlGRQyeBtv7hIcAsu6ZRwZ1pPsYEXAteXV0Hx/XG0O0MYAYgvIE/Bdaw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hy+17oDQMKEWB52zFYgyqSwtpeGMA5D+boLb8f4q8AAF3VwMFaD5AlKhxkh8grF0Bw//8bu1qwMeZLu9AjjMfS0fAljr74LjItzXgj+/cm7AAlKSBer+fulgYGRlEjb19AfrcNjdAvjBEmXPJKSRSit5oCwJS6Xtt1b3KSPvp9bvki9hQ0VuQHqA9Xyu9GMcqt9uKjZHegvQdeEfg25HeD1ID4FKBEpDLKakBMJZFCYyfJAfA0jg2NGhRXQhRaUF6wK4f+dRhjRPZSvmIkEyiJeeA50AxQjn/+llGGzB9Mvm4AYV2HsXJQpT2cZ3zV+OuvhfwP5D0AnoBE/YuB3hTXQ7wgLBE5mhAlupAQI4/NxKxm9+bZNu+vSIu77Y+gH8QeeIV61E7LZpWLVvejTD/07G028KApJ1m5u7A9rFOp+t3BWiDcmQwBU0HpKJHu3rZyiqH5zZIGVU/YDOWUs0HrOuGNMZRbBFLoukA2FRgC/2INR0A+SESW2btffMBoD/FppywqYfm2PZkbwiAXAjF+bJXoTjWMabSLTkJVdUCoqRmC5YekK0vUhFrx1GsKjmdPqVSuW82semvhkQdxdID4Gp1JQmvHfm4O9DKAFH+dHU5YAO7HKD7PwvoBfQCct0O8IAk05IDrlMghQJfhN4W8MUOUpxLC5D+1UwrezFwKSGgg/gBvYBegOusywGW4a4GaO6HoWsBIaXMnILOO8YK+Zes8n0CuuKRVO+rPMORODShp6en53+E0G/h7siGWgAAAABJRU5ErkJggg==',
host: ['fanyi.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+PPx7Mz00YDtxVPVsVfkrSOrrJvd3MzRmBzwuCfusRf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y8Hbze8gDG+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+P3F8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ECp7SRZnswso/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+8vP6vLvvcm7rQz7nLSbnKiPpKSTrJyfpIBnpMi72ubb71tf4ysrzlJHvQD75srHnHBTvenX1np32pqb4pKP0pKH1rKvxgH3wX130kIv2sa36ycbpJx7vUk/3wcL2trj4w7/5ztD2tbL99t/3vLn5uLb709P1qqXtT1T10tT99PLnEg19LELPAAAAAXRSTlMAQObYZgAAE6BJREFUeAHUkEUCQiEQQKURmN/dacf9T2e7dGW/zXRO/hCEMKGMCynFVCmltTlpnFGCEXr/dExAWLZyXM9z/OBEGEaR78ax4ynbEkDwW6cDNSpJs1zZnNKiAHIBCnr6iB3mZeooQwuM3jSdV3mS+bZ4nCMqP4vz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pwlYQyA/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/bOTiKXiiZyYmLLOXewKvADDgg6MmI6vT0R3fSZXN6QLzQXCfmCJpd5Yia05BMsLsE6F10xze0c2OD7dGjw+cGJcdOM0wkunvUsWTy8wWIVeM4EuwLYypncFhxPi8cqzAbcIwY4NmhAYtWypMsI/MEH/8EGt/qOmy5h3wfEOFn6Clb9gRgF/++e2miVo2HbsNh5MG/Gyfbnopu4cQozdsEKQeWcdfcAlaace0FOp0aM65l0GvfTGQn/p2NrmVTY5kjZkkd8H0Crq8OiFN4CoKTI+EUutfG/nEtDXMQTxXDyNOTuAbrdh3aftDTcNEEDbv5CP6JptKMqUlUplZRVR6wHWLjodjtan9TbsOnUjqZGDI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CS1iCRK6CYdSlIfvchsnfxXwQVugdBCBXBSh9JGAQvp+yO22C2t9sXiZq0yzviAutBgzBaloykE/EYAVq3WLzWIMnGKAA1MZ8zeRv0K2m89w6lQnzFA4S2ZcO6C6MRiY1jOtB5b3VfHLapIlDtEorrHlkGLySrk/mJWQYD57BR9QJf85ZLavVME4H2gL5YYzHQeOzGiA8A3LwHIm6Wy5KOCUsFFhjmrdfXKRA+un4cwVwCq3Yy7DT9ApwrKjPMQ1El13+/NUEKMSvshLFtbPDd32UAA8ydrpAiAxzZ54zxq0EU8mCPv815mwisZKxIOIxhCgNsP2O6dNEADZgvelrLDOqzLDES9pa0ngFRwUeWdwlaUWmbqybAPuuJZu49lPL4LqoA0KOu5zC/8own58hiMAqgLhiBAu3JBQOwBjBpbSDTCFqUWW4/cjuOUnf3g1p3IndyNQRyAZlhqOloHFqVQ1c80Wt9S/OCNuNJBwUYfK6388RHg+/vdmOHNBUQPDnRTbTfvPge8u5WmWlXL4A2jo1RVVRWW4koJtvfghFXhpw31r+7FDAGW//N2zPD+AppYg/msruSq5VzBbk2WciBHAfAG9O0gpaIYT6RSuFhRjmzr0vXHJ8C/wAfvUQNY09RPd3KphLhi3U3H4/GjFSpA63GQdGrTHpmYWM/+BrEUz1QAMMpMsJ5Aj0QagDtqX+w2Z9AeWAraZ6HTAAWotwGxOfElnPATLHfATrUFgced0CgYj0UXaoAmfLtd8f/Bi0AzlGTwJbS1Ft83PRIZ4MgPmPPpP+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) {}
},
2019-01-18 10:17:37 +00:00
{
name: 'PDF 划词翻译',
id: 'pdf',
2019-03-20 01:58:15 +00:00
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=',
2019-01-18 10:17:37 +00:00
host: ['pdf.example.com'],
popup: function (text) {
openInNewTab('https://barrer.github.io/tools/pdfjs/web/viewer.html');
},
custom: function (text) {}
},
{
name: 'Google',
id: 'googleSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAK5UlEQVR4Ae3cZXQbVxPG8QkzMzPT2xMoM3OgzMzMjOHEUBdDZQyjayozMzMzGAVJPO//ftBp3BqktbRaaW/O+c33q3mi3Z0dWdLxX/Huk9piV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SCKYkjAcZjrUGWvbB7OLzWoZJFFMSaTIssTPUCsmP2A/SCKZ4oauWAe1ovIQOkDSJQARZ6IcalXrV0yFuMUUtw3HG1CripXoCkn3ABhNMBMhqM/9iWMgyWBKMvXFYmyE+tB69IT4NQARQ/AQNkPT3CYsxSQIYAMQMRqroGmoDDkYAPEKU7xoAlYhDE1xP+EqdIB4jSle1gln4SVoivkAJ6EZxKtMSRWDcQM+9/CG8ZuYi93QAOJ1pqSibZGFVxCEJsmXWIjD0BmSakxJdU0xEWfjPnyUwF3/37EUp2EgJNWZko7aYXecgaswH0uwCs/gPfyAAMrwJV7GGizCDJyPI7AbRqMLGkDSyf8BDpOCJZsko8UAAAAASUVORK5CYII=',
host: ['www.google.com'],
popup: function (text) {
popupCenter('https://www.google.com/search?q=' + encodeURIComponent(text), null, 800, screen.height);
},
custom: function (text) {}
},
{
name: 'Bing',
id: 'bingSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAFUUlEQVR4AWL4//8/WZhhWkcBoL17gLElieIwnrVt27Y3Wtu2bdu2Hay98bNt27Z5X+6c/YJe1KJnXt2ZudXnn+T3/KZrbn3prh50YSLG4TMcavx5WmR5J/8sWAh9cDPWLfYLpwA+gf2PBfi8uGcFBfAdrJb64BadFfwGkFmIz3GYXnifAeisoAB0VlAA+WeF9XxOhgLILMQXPs8KCiDUF7f6PSsogPCscLDPiVIAmTLu8zpZCgAoY1OvE6YAgHN9T5wCuEiTBwUgCkAUgCgAUQCiAEQBiAIQBSAKQBSAKABRAKIARAGIAhAFUGgKgD/fFi3QGy1xrZMvKVcA/Nk6GAILLMb3OA0rF3cyFcDusBzT8HYxv79AAewAq4PBeATbKoDirAH6wuqoBm1wTfrfrq4AboFFWIzvcGqa6wUFsC4WwipgKt7GQQogjQCysX0Oq7BBeDiN9YICOBRWT2rQunrXCwogG18fWD1bhG9xSvWtFxTAzbAGNBVvVc96QQGsiwWwRjAID2EbBdA4AWR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ehWlKrqnfx5r5I9fARTtstAae2jS4wOIvSxMgDWgabgifvwKILXLQg0+xgaa6OoJINyRqyWsHvTBEZrgKg0gCOHCCl4W5uMerKzJTSCA4LLwSuRl4WdsHT8eBZDaZWE0TtVkJh5AEMIFtbgslPCC7umLFUB4WXgZJVigLfbUBBY0gCCE3fE9ZqALrtTEVc7vquRzBPZVAfAAAAAASUVORK5CYII=',
host: ['cn.bing.com', 'www.bing.com'],
popup: function (text) {
popupCenter('https://www.bing.com/search?q=' + encodeURIComponent(text), null, 800, screen.height);
},
custom: function (text) {}
},
{
name: '百度',
id: 'baiduSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAL7ElEQVR4AezdBbCkuBYG4LPubsC663N3t3V3d3fCXR9/7u7u7u7+3szcJtxxn1l39728/1RR9hYaAuSQnr5b9WWrqKYnFbgknCSnadD+C8L4hZ7SHw1U/Adf6ZXwCIzBD/1QX7HL5aObA1UzgYuBsN1I/EZc5L9DWuIR3Aif2uGKOVsC9TfB/QpOStcMVDwJF/YZSA2s2E7FLweSFEyaueF2V8cv80J9Ogui+Hg/6r2NjwO5hgtn7T9pzrq4kL+AtI5A6SfRZZwAZNM2k+Zs7EXxBfg3Z8PTBfV5FL6xvYp3AHIFF04iStfwQ/3VgsY0ugm4+wBq2y6Tlq3vR8l0/DsPGtTpQdw0ZwO5gAsn+ZGeyg3Wikg/4F01Zz+gtvhh/Bp894K6dfKi5GqgrnHhnGCk94LSPt/c3/mpAtRUoJJL8X3jTevE3wPUJS6c46v4b9xA7UtOAWomvq6t+nD3tH045/lAXeHCKTxo48ax5LYmo3GTi28g2eOSResBdYELpwSR/hc3jC3Z6xmZCsLkrRa6pUx8OVAXuHDGDlcnz+UGsclT+h9AJvjVzVfJXbbqFCi9mOMdQOJQOINDvNwgtnlRb3+gqnCBfma/TslBQ/8WgIZYBqltuKARUCVR8kqBOkH8/aHuArYJ53gyDQ2h/hFQRX8UqtcdQNK4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w6AyNv3HEcV9mI0haIiiSIBQHgmNDKiHEGwxFMU7DEa4QBmLzoha6IZRWIUD2IoVmI2xGI7+6ISmqIE8i
host: ['www.baidu.com'],
popup: function (text) {
popupCenter('https://www.baidu.com/s?wd=' + encodeURIComponent(text), null, 800, screen.height);
},
custom: function (text) {}
},
{
name: 'Wikipedia',
id: 'wikipediaSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAQAAACTbf5ZAAAH9UlEQVR42u1baXBURRD+liQEUBMCiMp9yI0Ei0NESpBLtCCAAgGjgFUIhVBSXJYcApG7gCAChVgWICJQKMUZEAKIIqLggQdXlSBy38gRlEASf5Cj327Pe9Nv3yZbOt/+2t35vunenTfT09MDGBgYGBgYGBgYGBgYGBgYGPz3MBkLXb1mooZFZwVWab6aB9jQRJM51MLqgSVIE742A9muXy+Rzn0C3ssBDnfWZK63sFa7svr/5/ASXHFBu45tqGDpfjEuajFvon2Aw81wVYN5BSMtrBr4GGeQLrD6b2y9R41BHXTHXFywbZyCZ1AdcYhRzgfl0RtHlArfIgnxiFRw49AA/bGH4WVgIuohWtlrBMqhJebgH2XPuzAMTREXSI3FRiWpt+YkGIcDih/sPg22DysDmD00e26ES0y/P6CxHSkGpxUOl9Oe95sik+Ff1WQ/58dbLlhx+gf0ugJRTqTXFA4/Ieh4JatQW4ubaOGk+80U9qjm12Oa8gEiKKaYfMYIOq6HLEZhghZ3joUzXhRTVLVwL+uOymmsw9+Lul7PKJxBUUdeBM4QxgmUEPX6vKW/Ifq/013W5QaCrluwCkmOvA7KlV4HKcKfNw8bWHPnijrfzSh858jaQlrvgU/UYyTOEnayhNqRdfiqaIDx0VNzW0685dlvJfx/Ewj3LipKqEVwnDW3r0DDh4OMwqe2nGWk5TfibdBaZRCqgXGsw7tFGgMYhbuormxfARmk5bNCix+ysDtJHX4Ed1iX4wUa0TjHKMxWtp9liY98QotHEvYpRMj3yetYh+eINCaw246SihjvL9IqQWzvAbcTFr+m5U9c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9ujYJ1uJVwcYrCCWJs7v61gygAuZ8kerehwPEza+zritb0jH4D2cZz9fOnFEdi/YKqAgkaA1iHjygWp59Im9bk8xGsCh8w7i6cCSsXJXCZNbY905YO3V8sPwmfOOJKlWuSoGUaCgWzWIc3MC2325Q9LdIMQKYX3oSVi+rs3YbAxYmWtZwOKGl4nHV4dcAu+oz3p4Ry8HdgUvxaLSffjdKMzf0DEHoQ0K3wHOaXlWuWxYmeKKWzCb++GhmQNd6WNbiFD4dZYwcqtuvzFLH5BfYGWymSdsjwtqzBPd5gHT6YNxPH4Tp5ulUXeWY4BCAjiMajhetwrOKYu23O92+Rz9YJp7/8DEh+afAWFDoWsA6vyxms9FJOSxuVTTYBCC0NfqHwHebPIzJRDcCr2vee+GslewEAC8mxWxTCAHtYY2fCh9+0S058ilupLSylwZMQFuijKEFNsdTIOt1CGMqqfIVkMmqqhofDxRVRtWqh4qGqFXKX7g8xUhxMPa9VQznfQaVL+DhcyyH9+raWSh1blTCZsHKxw/bWv24NVpqNyjsIKyTamKpfo5Og1MgU1oSFHFHKq/QZgltERXBUoZKKsMNkhalLRSrDFSoJ4edwJcU164YilZK46VlhU8iRypi6yZPYPBlhiU6Mqa3EKnUDFieXdwlDj8Br1ntd6WzTSAuGCfyLzrp6MlI6hq/DpUh+Ixtfii/F5u6c9lmuxvsQxphIatxru1ZpnZcBuS2s5SxwROf8OxnoHJROcs501R9hjxhMx1I0CVqnK1Jsk0IGBgYGBgYGBgYGBgYGBgYGBjn4FzYbCWKR517JAAAAAElFTkSuQmCC',
host: ['en.wikipedia.org'],
popup: function (text) {
popupCenter('https://en.wikipedia.org/wiki/' + encodeURIComponent(text), null, 800, screen.height);
},
custom: function (text) {}
},
{
name: 'Settings',
id: 'settings',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAQAAABpN6lAAAAGIUlEQVR42u2dW2xUVRSGv95VKAJVQGJUfBHUxAgNKqGUSzERLUrlFhAK8QH1pQoB9EEFb9EHET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LWP3S4FOJjIfgHIjNsi+KP/B7Zyowv6vWQX2JSIRTCeKBLN8114zRSvQq/HAfcLlQoXXjvF63bvJ8ICsznHoU++eOzS8DAU6C046GjmZRnXNORrECDNKLEuj5nuTDPusWjUkhbLMTJCm7g5imVvfjAyQoou7PnA2IEPRewyepSjht2rmpKi6XwXFIZUMj4oLujG08bf3oePNdoS4xlsDonF2thDGZ+xnr382ylwTkUdMnjf6EuKPC7yhkb6V2Z5rGu6fmU4qpFGIYcjkG9kqraZHzlAnsdGDtDCeVpopJyi4KczCwsLCwsLCwsLCwsLCwsLCwun6Mcs1lBLM+200cwO3mV0V8kzPcTGCGnXZl5xdF+yh9G3Uzl+55KIqXrpj3VY5rVUZ8J9UkjDRQd1VLCCYqo5EyJBFd210c/nvEHwGHOCXgWTRh5fB60MG3S1YtxNq1D7j6Kg288CyKbekOBNPfSTjQaLUwyLYtmNdUaD3ggtAhQKqdaY/SUpxvGsmtKLRqHkZIvraRTfqGjFGCN0qh3vF4GLQxXgI6Hj9EQ5iTopwOnlfQEa/GROuJjRC8M3cMSvXyB+Y5yUXn3sQrR7RYDXAx8mol8gnqPIhQBpItsXgQ9Xe5q+j0muJk6L1CwKVnlcgMnXKkAi+gWuvynwuflxpqcXQTedZfeFWwS9ivqr2AZfFgGe1BQI5TgOhBokEOrpfQFGGU35zhB4Mcz32h6Gpjmw7iVtnO4aea9jzDQqjwfHfBwOtOI1aHkcTpauNB+noz4SdWeDkRDJQQ0G8I9x4f880sNaDTUmi4/FupKiTxivfPBxnOe5zfg2nbGUBSVF1+u7rWpip7R4A5WspIQazoZEjVtctfF7BnkOg/klek8J+8gr4yKNky6fGj2IbCpCXgTik2B5gb4ToUj/CTMpYR9NtNPKCbbxNrmRuxX/B4UnbV8qW1T4AAAAAElFTkSuQmCC',
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 = {}, // {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) {
2019-01-04 08:19:25 +00:00
obj.host.forEach(function (host) { // 赋值DOM加载后的自定义方法Map
if (host in hostCustomMap) {
hostCustomMap[host].push(obj.custom);
} else {
hostCustomMap[host] = [obj.custom];
}
2018-05-02 04:01:26 +00:00
});
});
log('hostCustomMap:', hostCustomMap);
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 () {
2019-02-23 01:18:47 +00:00
dataTransfer.beforePopup(obj.popup);
2018-05-02 04:01:26 +00:00
});
if (isIconImgMore) {
img.setAttribute('is-more', 'true');
}
2019-02-14 11:04:02 +00:00
if (obj.id == 'more') {
isIconImgMore = true;
2019-02-14 11:04:02 +00:00
}
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({
2019-03-14 10:43:11 +00:00
mode: 'closed'
});
2019-01-23 10:40:19 +00:00
// 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); // 外部样式表
shadow.appendChild(icon); // 翻译图标加入 Shadow
// 重定向前隐藏页面主体
if (gm.get(gm.REDIRECT_URL, '') && window.location.host == 'example.com') {
document.documentElement.style.display = 'none';;
}
2019-03-23 02:09:56 +00:00
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]);
}
});
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()) {
2019-03-23 01:56:14 +00:00
hideIcon();
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 + 10 + 'px';
icon.style.left = e.pageX + 10 + 'px';
2018-05-02 04:01:26 +00:00
icon.style.display = 'block';
// 兼容部分 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');
2019-03-23 01:56:14 +00:00
hideIcon();
2018-05-02 04:01:26 +00:00
}
});
/**日志输出*/
function log() {
2019-01-16 13:01:02 +00:00
var debug = false;
2019-02-14 11:04:02 +00:00
if (!debug) {
2018-05-02 04:01:26 +00:00
return;
2019-02-14 11:04:02 +00:00
}
2018-05-02 04:01:26 +00:00
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) {
2019-02-14 11:04:02 +00:00
if (oldIndex < 0 || oldIndex >= arr.length || newIndex < 0 || newIndex >= arr.length) {
return arr;
2019-02-14 11:04:02 +00:00
}
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;
};
2019-01-23 10:40:19 +00:00
/**带异常处理的 createObjectURL*/
function createObjectURLWithTry(blob) {
try {
return iframeWin.URL.createObjectURL(blob);
} catch (error) {
log(error);
}
return '';
}
2018-05-02 04:01:26 +00:00
/**触发事件*/
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';
2019-03-20 01:58:15 +00:00
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;
2018-05-02 04:01:26 +00:00
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;
}
2019-01-18 10:17:37 +00:00
/**打开新的标签页*/
function openInNewTab(url) {
gm.set(gm.REDIRECT_URL, url);
var a = document.createElement('a');
a.setAttribute('target', '_blank');
a.setAttribute('href', 'https://example.com');
a.style.display = 'none';
shadow.appendChild(a);
a.click();
}
/**是否包含汉字*/
function hasChineseByRange(str) {
return /[\u4e00-\u9fa5]/ig.test(str);
}
2018-05-02 04:01:26 +00:00
/**鼠标拖动*/
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');
2019-02-14 11:04:02 +00:00
if (!ref.dragging) {
2018-05-02 04:01:26 +00:00
return;
2019-02-14 11:04:02 +00:00
}
2018-05-02 04:01:26 +00:00
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();
}
}
2019-03-23 01:56:14 +00:00
/**隐藏 icon*/
function hideIcon() {
icon.style.display = 'none';
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 = '&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') { // 隐藏
2019-02-14 11:04:02 +00:00
if (this.getAttribute('show-id') != 'settings') {
hideConfig[this.getAttribute('show-id')] = true;
2019-02-14 11:04:02 +00:00
}
} 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) {
2019-02-14 11:04:02 +00:00
if (hide && !isNotNull(hideConfig[obj.id])) {
tempArray.push(obj);
2019-02-14 11:04:02 +00:00
} else if (!hide) {
tempArray.push(obj);
2019-02-14 11:04:02 +00:00
}
});
// 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
})();