// ==UserScript==
// @name Translate
// @namespace http://tampermonkey.net/
// @version 10.18
// @description 划词翻译调用“金山词霸、有道词典(有道翻译)、Google Translate(谷歌翻译)、沪江小D、搜狗翻译、必应词典(必应翻译)、Microsoft Translator(必应在线翻译)、DeepL翻译、海词词典、百度翻译、Oxford Learner's Dictionaries、Oxford Dictionaries、Merriam-Webster、PDF 划词翻译、Google Search、Bing Search(必应搜索)、百度搜索、Wikipedia Search(维基百科搜索)”网页翻译
// @author https://github.com/barrer
// @license https://www.apache.org/licenses/LICENSE-2.0
// @match http://*/*
// @include https://*/*
// @include file:///*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
// ==/UserScript==
/*
* Copyright 2017-2024 https://github.com/barrer.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(() => {
'use strict';
// Your code here...
// 注意:自定义修改后把 “@version” 版本号改为 “10000” 防止自动更新
/**样式*/
const style = document.createElement('style');
const 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 #ff9900}
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;z-index:${zIndex}}
`;
// iframe 工具库
const iframe = document.createElement('iframe');
let iframeWin = null;
let iframeDoc = null;
iframe.style.display = 'none';
const 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() {
GM_deleteValue(this.TEXT);
GM_deleteValue(this.REDIRECT_URL);
GM_deleteValue(this.HIDE);
GM_deleteValue(this.SORT);
},
set(key, value) {
GM_setValue(key, value);
},
get(key, myDefault) {
const value = GM_getValue(key);
return isNotNull(value) || !isNotNull(myDefault) ? value : myDefault;
}
};
const dataTransfer = {
beforePopup(popup, id) {
const text = window.getSelection().toString().trim();
if (!(id in beforePopupDoNotSetValueMaps)) {
gm.set(gm.TEXT, text);
}
popup(text);
},
beforeCustom(custom) {
const text = gm.get(gm.TEXT, '');
gm.set(gm.TEXT, '');
custom.forEach(cus => {
cus(text);
});
}
};
const 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+vNJxLV8z9Dt98HPAAAAAXRSTlMAQObYZgAAB9NJREFUeF7t21WP5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C5apVhoESMFuCcGG97Z+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'],
popup(text) {
popupCenter(`https://www.bing.com/dict/search?q=${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) { }
},
{
name: '有道词典',
id: 'youdao',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX////99PTpXV3ug4P74uL1uLjfGBjfFhbjMDDuhobpYmLfFRXfFxfiLi785ubiKSniLCzvjIz75OTviYn+9/fjODj86ur1urr86Oj++vroVlbwjo73yMjgGxvkODjqaWn51tbhJCT3wsLwlJTqYGD97+/gHh74ysrxl5fqZmbkOjr51dXyoqL98vLlQUH3xsbzqKj62tr4zs73w8PzpqbsdHTpYGDmSEjlRUX++PjkPT3+9fX74OD63NzwkpLnVFTjMzPiJyfgHBzfGhrteXn1trb//f3//Pz++/v++fn2wMD2urr0r6/zpKTyn5/xm5vvj4/rbGznUlLnTk7mSUnjNTXhJSXnUVHynZ3scnLqZGToWlrkNTXgIiLrbm70srL62Nj63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GRaLCsXUTeVsjItwGWtkWnrgjU8p1Sad7jsCSbUGJnVGYV2UM1SWd7NYOnlKLL1ZNahwgVg8uMFVj7sK2AjaHOTSZ07XGh+lsy66087DC9xbS+TSQ2FtUXkJsiK2MXr0Xixc3/xmkxy7SB/FNg26yWrAp+GF3YdnqscAEjLmvLWcU2otnsJN1Vm6tnxxkJjzvZKVW/u07CfTPrQtrc3Gn008ri9g27LPb6SuFh/3deYnks/o6L+AbDOAQEKjE3tAAAAAElFTkSuQmCC',
host: ['dict.youdao.com'],
popup(text) {
popupCenter(`https://dict.youdao.com/w/eng/${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(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(text) {
icon.querySelectorAll('img[is-more]').forEach(ele => {
if (ele.style.display == 'inline-block') {
ele.style.display = 'none';
} else {
ele.style.display = 'inline-block';
}
});
},
custom(text) { }
},
{
name: 'Vocabulary.com',
id: 'vocabulary',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAYFBMVEV5wWt3w2d0w2R8xnB/xXB9xG98xW17xWp7xGx6xGl4xGlxw2FtwVtpv1eAx3GByHJzxWSDx3KFxXeEyHWDx3SPyoOBxXOKyXzG6b625a2JxnnO6cen1J6GyHn7/vuGyXfaoRq3AAAIDklEQVR42s3a62KbIBjGca3x1G2SIBI1Jrn/u9wD8hokYjCHdf+dPhl/RQRrF6E4/roVJ8luKh3LsizP88JUluW3Knb7Mv1y+z3rz6wlQFX9cwCi88cFAKo5AH0IMD86RhljfgBGwgP4oggwbw1AH0CGiiGDSMYMIFeVKu8I7B8AqAnwNT98j7/yZwDk3+/3vxbzAZYGEaeeAFSaKkBBABS7vQ+QV+xHAMjMw5IEaLofM1Nu+qZmx+9NqwLKD2BzQLodQAK7AAAFQeUDFMUDwKR4HvAVewBJ8mkAlRkAIVAg4GuMAA8QXkD0EiCOXwSg7GcB6EmATkFeBiSuwAWUugVAjMIAKLr7MqiIBPPb4bYSmL0xh0HlLI04v397DANEu58GpMsAXIYbAIJlAAoHl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WgZUH8GgAIB4kMAV+ACVBL5b8UrpQEI/xIgTEAtPilJSc87qTgupQCGUVNvBKBHgLGrLgBAbQdIeQ4GHA6vA5ALkFffUcgBHDYCep0jcN7hEMCH0ACKvx2ApHgbAD0DkGcPgPo4gL8I8BMoYsxeaQoVUwsTrYc+gbUmARDQNgDDGIh/DbBjQNShgL9yH2pcpZXLDgAAAABJRU5ErkJggg==',
host: ['www.vocabulary.com'],
popup(text) {
popupCenter(`https://www.vocabulary.com/dictionary/${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) { }
},
{
name: 'Google Translate',
id: 'googleCom',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAK+klEQVR4Ae2dBXMbTRKG/d0fOPwhx3fBY+YwMzMzM5rtkClgDDOY2WdmUMyWDGGOuG/bVb6SrF7hrq3V9lQ9H8Ts99ntmd4ZJchu8ODxn2D9dwRWCMQK1Ap8EdAHABMFguxhhv/BHwV6BCAAieTAnQtwXAACmF6Bb3HotAB/FQAVMIFDdxTguwI6lQgQzqE7CrBOAFQCiv4NB28vwFUBUBHjOHh7AZpUJkAoB28vgEVlAvTYlwEWAFTIGHUHzwIEqzt4FqBL3cGzAMgv1B0+C3Ba3eGzAB3qDp8FQH7GAqhbgJMsgLoFaBdgAVTOT1gAdXOcBVA3rSwA8yMWQN0cZQFUzOzIry96e3shALEKaAQSBTYI/EAgyAYWYIiyxoHACp9mQGASIQBz4enbwAydJpoFGMaKS5/VJAAyiQUYRnmAlwGiHPyABbDhorrKALLBRgBmRYzqykDiMAGYiiZVlQHNMAGYS89UVQasoyrA5BA97E41wvUSM+Q2WaCuxwK9b63w9rMVOl9aoarTApn1ZojPNcGqOMOIfE+rVFYGRkWAPWlGyGoww4evVvBkaN9Y4VaZGRZflFeGiuYBFkAONlwxQEW7BXwdBhPAzVIzzI6S5/uMkbYMsABTw/TwuNoMVitIOj5+BTh13yj597s69jMLIBULzxugSWcBuQY6lVpshkkS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VIKcnBwlCcBlIDH1jseh4NND3Eou1i3EwyYsgEK4WfDKq2DwGJjYhhHcZVRdXc0CKIE9KR+9DQf3BgydFCJPCtfX1/u7AAweXmnr7PM2IGwYOWso+SwBCmDloOTlVuFr70Ny3lLG7WY+C6DhkORlr/dlwOlDpfj4eJ+7hChAIockL1OxDHR5WgboHUUoAR2+9wJs4JDk507Ra6n+xhFsDRPhey/ADwQGOCR52ZdKlAE/IEj4B0owiUOSvwy0d/X5pQBDEkRzUHKXgVf+K8DQnYDLgXzsT/3g1wIgQ3OCDQKJAhop+wTcFPqKqwH/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=',
host: ['translate.google.com'],
popup(text) {
if (hasChineseByRange(text)) {
popupCenter(`https://translate.google.com/?sl=auto&tl=en&text=${encodeURIComponent(text)}&op=translate`, null, 1024, 800);
} else {
popupCenter(`https://translate.google.com/?sl=auto&tl=zh-CN&text=${encodeURIComponent(text)}&op=translate`, null, 1024, 800);
}
},
custom(text) { }
},
{
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/kz8HELTzR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IjDaFI7JKgnocwyVjXOgku1z3f6PRekkugPNWU/5U07ksGAvqx+IaEYWxnL+TpoUxyInqtDxYnbv9drb2rLAwEYRj+Il6AJ4I2JoiFpovRQvwhHokBRcRKsZAQGzcEixD4cXPvthZuIJDdwecK3mZ2pliUzAvTAoenv0ZB5W1J02ztOQQU/PE1X9oGxZT81fLQhUyO36zk08aQ65blj2TqQjYrd0sGLuT7t4kDwMRbMoihxO4iOFznDhRJvh+u9gmqROcebQDAM4M2AFi2iQOAq00cALb4ow0A7pOPkdQjEEjqgpdQ4Ug+aAMAPjRoAwBrRBwAL9RpAwA2qG1jkGpMGX7KG5nV/k3KdMVBAAAAAElFTkSuQmCC',
host: ['www.deepl.com'],
popup(text) {
if (hasChineseByRange(text)) {
popupCenter(`https://www.deepl.com/translator#zh/en/${encodeURIComponent(text)}`, null, 1024, 800);
} else {
popupCenter(`https://www.deepl.com/translator#en/zh/${encodeURIComponent(text)}`, null, 1024, 800);
}
},
custom(text) { }
},
{
name: 'Microsoft Translator',
id: 'bingTrans',
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/3L8cgxySxJK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R+QNDNUx24Gx2Wdv1V7WUCsrgy7UMqJ70a+XPWQIKL83pQasj3xMZSLbg6bPxLktvcjhBkM0YeNwj71eTMu5SGBDcmQw9b5FiQPd6jdC6DC2XmA+P0NrcesgrF7Ilu6ZWfT+t+eElIJPqtxsdP2idmuRC6IQdO+sBNybhBxvfFDyG7vmH6qkOsTYb/GW6M+gVSf/nf2n3UNTg+vhR/V5JwPZ43AzrajMUZyGWmXKJNChFkQnLnohOYA2rooMv9uBLrZxZDevzHkJMyaWJWTP9wCp4MhaO0/FLbqgcPWsoZZiHWLg/Bi9G7Ds7QJuWnA/DkrWZhJrq2WNcAXuw3phhHG0tOHII30++Eiq6k+Pn3WvBi7L5dk2izegauusGrww4h3YrPylsvwIuD6kUm6UForLIXvkLtO4tJCwnOWf/iTa+ng+gKlwUFEqpYm2iArxLZ2UpZ5pdzyJlhpJLng11ehu+unQgEdRUJhrH9bfhav72erAykLKZJNTXS8dMLbxVc2L+p4BpHgono4AHkJTIzvzJ392Jlvis0DR40/Nm6NCsYUpZYK72A4khMcsYZUpIFO64boDiUHUOiA9dSr6ojUCyjf/iQkiIZu6qH4mk4IwG41FNTcwtQTH2d/3a/avpnL69DUGQf3/0lLESm8eTUi3n4DzQMB4I+MTs+cReB/8jM8P39bT6rzv8CoTxF395hjrkAAAAASUVORK5CYII=',
host: ['www.bing.com', 'cn.bing.com'],
popup(text) {
popupCenter('https://www.bing.com/translator', null, 1024, 800);
},
custom(text) {
if (window.location.href.includes('bing.com/translator')) {
if (hasChineseByRange(text)) {
document.querySelector('#tta_tgtsl').value = 'en';
} else {
document.querySelector('#tta_tgtsl').value = 'zh-Hans';
}
const source = document.querySelector('textarea');
source.value = `${text}←`;
}
}
},
{
name: '搜狗翻译',
id: 'sougou',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAwFBMVEX////+VAP9WQb7aib7XRX8TQD7cy77Uwf7Zx77bzT95dT/fSH8giH+hin/gST8wZ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Atg9zkVRsjj5vwNHX1Sx9Bb9Z//pn1wxkSCSI8h/gy1QVPtQ8IvHIE29G64C73BkgDcJ4CR1eOhW2h1A5jc9KoKOmEssMvcMrtO6Rsya6hRFNbNr32WhOiiACycvT4Qp9NJoer6MPiCy/RBcSIsZwTIpR/l/qcY8tD68ru/RVKxnM+/opN/w8LoZbpdA0Cj6ppvqRCCH94jYLlE7I++/G44xYcKAvqHUg9HhZOLneInVVghAI6DogrICUBOHzC9Bf8BUgiQaxuANbgAAAAASUVORK5CYII=',
host: ['fanyi.sogou.com'],
popup(text) {
popupCenter(`https://fanyi.sogou.com/?keyword=${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) { }
},
{
name: '百度翻译',
id: 'baidu',
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/738bnqw9JSyMNEBpkLnh607W42L9zkhygq9ApPT09PQa5wgTdE8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E0G/h7siGWgAAAABJRU5ErkJggg==',
host: ['fanyi.baidu.com'],
popup(text) {
popupCenter(`https://fanyi.baidu.com/#en/zh/${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) { }
},
{
name: '金山词霸',
id: 'iciba',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX////1AET1AEr1AEj////1AEH1AUz0AD3//v71AEb1AUv//P31C1H2EVT1BU7/8vb2G1v+5ez4UoX3Mm34YY74TYH4RXv+8fX9wNL9zt38vdD+6fD3LGn/+/z2JWL/9Pf2FVj0AD/3NnD1A0v2Hl/5ZpL7lLP//f7/9/n1B1D/+fv91+P+2uX6hqr8t8z8us77p8H0ADn+6O/4SH391uH4Pnb+7fL5XY35cZr/9vn1CUz6dZ7+7PH+7vP7pb/9zdv7i639yNn/9Pj6f6T9w9T5bZj3QXn3OXP8rsb7m7j2Il/6eJ/7or36cpv4W4v90d/8xtf6eqH//v/2KGX5apb7n7v6gab4V4j4Sn/+3Ob8s8n+3+j7qML6hqb7nbr8uMv90uD/7vT6hKj0ADH1BUr3PHX6fKL7jq/9vM78us30BEX5WYr8qMH8w9H7q8T+4en8x9j+4uv0BEP6kqz1G1b909z7oLT8uM77rsb8rMT0AkL6iqb5hKj3PXH9yNf97fK7J+5BAAAAAXRSTlMAQObYZgAABwpJREFUeF7tmmWT6zoShi0wB5mZYZiZmZkOM+Plpb++c3ZyZ2NLdpw4Se2t9ftRI/t9rJK6W+lh2pQlS5aSM+8cNAWe9sa/sgUkirj18d74FwckSNpDaaxH/scLKSiRyo7N9sYfVxM0f2kj2iP/r15E84eFSm8APq8jia7dqV58f21Eyx/C3eXu+9+8R1DSEMyeObv+/QERSppCjsJcd/1Hx4DCnyRYHO6if3zBq/QnJWaPat2L/5EE4U8IZS8OcHf83bsu0p8UQp6DeBfssfsoxRJuEKQRpx5jY792fivKn30OwBH+6fU8OQzZXOGqw/5zSxsAUfwzV6VJJEpqsf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YEcWaMJMa8IGb3HLPjXAqxLTSwVJgOT/PYAFsNxTgGReDbDSuX5RxX3VVEvvRRXA3lLzp9zGDnn4ZfPoD0X1iIFf8sHLsCGAAzqAeYGXB38NAAvAArAALAALYOHk+ZBCLOKH1FK3SzlATElDoHzu+cmCsS5pZH7wXg+uf7ueiD367cFgox6cbSAlgOjfVU4ZfLxmW//UP9jw5HzEWM8AY+H4ThhjYVaeSdj7cPG4Plj/A3EvOMK4YYJwLJQm3rn8/diJb1UfxJhpWXgrlgWibVf1aMVHAKgvNIVphMSUf5UxpfBlCkBJAqlr3FpRikOuH4gI5TxLJkrPnVy9IQkS/8QtAbgv2XqTopzLPzHRNYR/GoxUWwGQV97B//btXHu1dlbfo+i+fMtHjQPgT2WkaJrl+lptoMb7UsoOGPy2UjIMMJpR8kE4fbLV2vJfEL1g9OIMGwR46vtDUglth1oDqG4j4h32iGAEAAuLf6jpYeqRwLSmTRckY3nt2ABAsZ9o+8HyZOsxaJFsXqYnZpsD4CtKMvO3EwPzDjUA5M9LTQGCpzzxnPdfTBuSLyFBAOYFrAuA5dc8sQG2D5i2FPUigsAWiusCyP1Zwt8+33YmyCH1Ctj2gnoAcnUbEE3rFaZtzSs3IhJPjmaxHkBp/idRBY18mGlf540RlbV7qpUmm7AY8rjYRgRwmTThjyse9t7C8Y9CXGh6DIt499J+36Th2MxXxpSCXpa7a99s591ThkJxBRdGyne9AQ6cjDImNRoDP1a/PBF2N4w6yYpouYHa+czDsbcIwB5hTGtrG0HHSN9HZb5fUwMsyorC9s2rEQdEqf5WTn0fVX87j90CXKz88v1hw+hORr3XAzt993r48PsvKxdliFyvj6gvfUj7p88Fnd+jIMtyykHiXqBqvnPgxwAaQhJN6UdTJMCB1BX9hQAsAAvAArAALIAnjt7p21mJ+V+RJUuWLFn6NxtcJJphfgpjAAAAAElFTkSuQmCC',
host: ['www.iciba.com'],
popup(text) {
popupCenter(`https://www.iciba.com/word?w=${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(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6nSzs6OfXT17t1OLhw2DGY0UOiAHPWxXKuzrrMkNBzPRcjRBqO9cXyFAgXos+QG6GhrPEOBAjhfChYQ+kJEQa6BHgoUwBkKFMDpCBEFtwY4uUKBAnZGKFDAvU4KFHCpk4IEsD1+MACOdlKggLsjFCSgu4MoSEAhEQkU8OwLSVJ9KWZrqEQBAowbB0QBAs6NT1JwAA7f1ogCA3C8o0gUFIDF9O0i+auso8UxCv1nt4iCAXShe0pyw61aAIuXrz/1DK9RQ126qdeLK+m+4i773vPxB6V9arRM9PHjx9FotFwtetSNSmVHUbtyufoKuzufzmRuJ0579/2/tTbTKCdEjikAAAAASUVORK5CYII=',
host: ['dict.cn', 'hanyu.dict.cn', 'abbr.dict.cn', 'ename.dict.cn'],
popup(text) {
popupCenter(`https://dict.cn/${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) { }
},
{
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+FFXVlTAAuzuI4UaNhpAyI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CoVNMKc7cW//YF6CQyiNqjqwDDbQAT/6bS6ugLDAFVvAvowLSACRPXB39J2+2Bs8AHijotqAWWtBwREgKwVAREQAX/b8UHM4Xb64Le98XHnYQELREAErA9Ix1ovunSItirNRyIAAAAASUVORK5CYII=',
host: ['dict.hjenglish.com'],
popup(text) {
popupCenter(`https://dict.hjenglish.com/w/${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) {
document.querySelectorAll('.word-details-button-expand').forEach(ele => {
ele.click();
});
}
},
{
name: 'Oxford Learner\'s Dictionaries',
id: 'oald',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAwFBMVEX////6+PPx7Mz00YDtxVPVsVfkrSOrrJvd3MzRmBzwuCfusRfdpBr6wi2scgMxNQf81TnT0a+8fQJiRwonJhe+hwmNag6xiy7NjgiioV6hZQHy75fv4OZoVxzdmwZ7YiGJbCuYezgQGQJeaS5yc12IVwNNTiY/Swno7IPJ0nS3xFSpuzSBmwPG00nc43LT3Vm3yC2XrSqSrQWlvAtsiAJ7jyxNZAFddwFCCRrhpL7VhqaSP13px9fFb5FuKUGvV3jbwFaYAAAAAXRSTlMAQObYZgAAEEJJREFUeAHsltGamzgMhZcA6liSDQMxOLQAyTRk9/1fcCUb0u3tkunVHAB939zon2OdiL++9Hp96UtZlp3yvCiKEsoiL7+9yR/+YHdpXhiDICKWal1V5vnpDyGcTnnJDBuAVACshaCGIj/9gfbvBph/A8BEUNSExWfbkOWladhI/w1gB8G6PZe1VCw+04VTaYz3uwPA2lkBUKqrqtKiyOafZUJWdq7xvQdIAKgEsUYEnQNLKCqy7HP6N87LHZ4OpMrSXm4DdbcT4GeYcLoE5703PvB/AXAH8GxjFj6JIDv5Pv77wWtj8zwCBYjy8kQPpBJS8VqC7N00ZVEakfccZyDEIRQWUAcQvNZ6kDQCotVBeGn/PjSXXPU91/YJQMQUnjOA0YNzEefgtQQ/xjB147ws176/FMxmA4gzYEyMoVEOsv2tE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gJus+zD45x1guD5518d4fTxdegPL5yLnqcrFjeeApJxyA3BXyMo/S+dIgHr2r2Sn/eNAL0XdXYdStIzTiOSQhCKdSIIZAcyAvPYT8dPvBHH3w+Xt4ZqmGFRxk6z1tyLOLdDqj2wEEIuA1r87OA3DDEBjPsZDtd8/VXbk+UsKLQHsrQNcQZkB3KOGa5X250vtGx/hf7hczv3uWedSRjXTUoaKUkFi3ho5NAAQwBBzW8/Q93UnTpfT+dz3X9Lud5158+7qiC5OCheBas4CEEB5hSG//yvaaU/9ywhRAQpbaLCpSmGCUjxlAK8TIMEC8H6Sf2Iwr27qqmZOgAKSFGcFXgHM3wPwH0tjqrGG9wmYC4oqSDADUATYQgRwpQzzBBywAMAM0DLYEsAJMQO4OQBVgdEYbQIbAkDp3kqo0xgAxi2AAW5OgE0nIEp5GJXoQBXUE6r8IYK0EUB2jQRozIOomJmDlQhjvAJItxFAFwDmagZOYI6AHGHMyXhbgg1L0AB8AWjnXwPYsoPU/i2AGhG0oBG0Em6XAGVtC3i3MQGLCRjl5kUNGyZA7dmBBcDtHgFsjsBlt6WkTQAaESideQXg3gAs7TYVGsBElSkmHxgWk8G2AVDJ4iQsYxAQQItRHgD031ZdhqvPWxAzDwC4g0+5AVsrR9ZeAczvAOaEcklbA1Ap/MpYTK0B+ByB7D5IYq46ldhHvAK4ye7DlGEVQGcArzLLafeB6hI8ALgFbpCPtQ+ELiVE/y2npXsfD5G6br37pz71qb8BRUHIGKi3vsoAAAAASUVORK5CYII=',
host: ['www.oxfordlearnersdictionaries.com'],
popup(text) {
popupCenter(`https://www.oxfordlearnersdictionaries.com/search/english/?q=${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) { }
},
{
name: 'Oxford Dictionaries',
id: 'ode',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABgFBMVEX////8/v/5/f/p+f7c9v3N8v247fyW5Pp93fhm2PdT0vZGz/Y3zPUwyfQpyPUtyfQ0y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414Ol+J1ug8Wj86f4a4ykSdJui+j1w61cAf6UcRVY2SDeio2OMSECp7SRZnswso/bwdUyDvs7vcMshMznkUH/jxktNKRG8VBtqsrPz8efK9itK1049xVYTQVrK4sxqoDz+pZTtX0P4MJup7Pa2p2JRO6ntmJG4ymiVWU+EJs6TLk8X5/tLv6Z8PDjD+QHkSublyJMqP/m9CfAEzoM7Az/eTVAAAAAElFTkSuQmCC',
host: ['ode.example.com'],
popup(text) {
popupCenter(`https://www.google.com/search?q=${encodeURIComponent(text)} meaning`, null, 1024, 800);
},
custom(text) { }
},
{
name: 'Merriam-Webster',
id: 'mwcd',
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+bZ4nCMqP4vzitOXr4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NflsD7g/w2fLk9PvZncwmA6HIvF4XJPflH4Hw4mEu5nR7/8Tv/s9bm1wUQbv+ITf/7zhPxvujQOwfSS6AAAAAElFTkSuQmCC',
host: ['www.merriam-webster.com'],
popup(text) {
popupCenter(`https://www.merriam-webster.com/dictionary/${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(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(text) {
openInNewTab('https://barrer.github.io/tools/pdfjs/web/viewer.html');
},
custom(text) { }
},
{
name: 'Google',
id: 'googleSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLA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jNegVswYGs2IbmiUFVx62gJtAokHU+KGg7RGEdRyNjQ6MOeH2q7590Z+1h0vpsRTZFq4HGo5HRq9U+1Wr6g2gMQVJe7MeBULoE7ZoVHuPyPejOAcSCKYkjAcZjrUGWvbB7OLzWoZJFFMSaTIssTPUCsmP2A/SCKZ4oauWAe1ovIQOkDSJQARZ6IcalXrV0yFuMUUtw3HG1CripXoCkn3ABhNMBMhqM/9iWMgyWBKMvXFYmyE+tB69IT4NQARQ/AQNkPT3CYsxSQIYAMQMRqroGmoDDkYAPEKU7xoAlYhDE1xP+EqdIB4jSle1gln4SVoivkAJ6EZxKtMSRWDcQM+9/CG8ZuYi93QAOJ1pqSibZGFVxCEJsmXWIjD0BmSakxJdU0xEWfjPnyUwF3/37EUp2EgJNWZko7aYXecgaswH0uwCs/gPfyAAMrwJV7GGizCDJyPI7AbRqMLGkDSyf8BDpOCJZsko8UAAAAASUVORK5CYII=',
host: ['www.google.com'],
popup(text) {
popupCenter(`https://www.google.com/search?q=${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) { }
},
{
name: 'Bing',
id: 'bingSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAFUUlEQVR4AWL4//8/WZhhWkcBoL17gLElieIwnrVt27Y3Wtu2bdu2Hay98bNt27Z5X+6c/YJe1KJnXt2ZudXnn+T3/KZrbn3prh50YSLG4TMcavx5WmR5J/8sWAh9cDPWLfYLpwA+gf2PBfi8uGcFBfAdrJb64BadFfwGkFmIz3GYXnifAeisoAB0VlAA+WeF9XxOhgLILMQXPs8KCiDUF7f6PSsogPCscLDPiVIAmTLu8zpZCgAoY1OvE6YAgHN9T5wCuEiTBwUgCkAUgCgAUQCiAEQBiAIQBSAKQBSAKABRAKIARAGIAhAFUGgKgD/fFi3QGy1xrZMvKVcA/Nk6GAILLMb3OA0rF3cyFcDusBzT8HYxv79AAewAq4PBeATbKoDirAH6wuqoBm1wTfrfrq4AboFFWIzvc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HsAyWAFNxWXh+6wAEESwF1oX7J7+o/x7egUQhnAxJsIS1huH5byvCiBng+bXErwszMPd2T29AogPYU+0giXgJ2yVjV0BVDaEi6r4sjAKp/zP+BVABTdlehWlKrqnfx5r5I9fARTtstAae2jS4wOIvSxMgDWgabgifvwKILXLQg0+xgaa6OoJINyRqyWsHvTBEZrgKg0gCOHCCl4W5uMerKzJTSCA4LLwSuRl4WdsHT8eBZDaZWE0TtVkJh5AEMIFtbgslPCC7umLFUB4WXgZJVigLfbUBBY0gCCE3fE9ZqALrtTEVc7vquRzBPZVAfAAAAAASUVORK5CYII=',
host: ['www.bing.com', 'cn.bing.com'],
popup(text) {
popupCenter(`https://www.bing.com/search?q=${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(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+h9AJvjV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IAYni9+q+fI7fJCSELsgKj/7j3K+WEjKDxGQhz0CU9wBSdxGx988vKr+20mrj4uGr6P349ZGIB6KImcSImYP5hoD404yIQSqInWCMFWBzaP9iCNX4ciw6AyNv3HEcV9mI0haIiiSIBQHgmNDKiHEGwxFMU7DEa4QBmLzoha6IZRWIUD2IoVmI2xGI7+6ISmqIE8iIlQjgiNNKiGQViGq5D/4Aw6I57/hiJVbJRCI3TBMIzBfGzEYVzFc7zGOWzAJAxAcYQy6QvdTCweWNuV8gAAAABJRU5ErkJggg==',
host: ['www.baidu.com'],
popup(text) {
popupCenter(`https://www.baidu.com/s?wd=${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) { }
},
{
name: 'Wikipedia',
id: 'wikipediaSearch',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAA3NCSVQICAjb4U/gAAAACXBIWXMAABISAAASEgEzbD8eAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAtxQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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niL+0SyQ2o03aSL+C7sJD0dUedxpCeDvgutBo4MB91cw0b1hcJCQkJCQkJCQkJCTH7H1QcxfIJysESAAAAAElFTkSuQmCC',
host: ['en.wikipedia.org'],
popup(text) {
popupCenter(`https://en.wikipedia.org/wiki/${encodeURIComponent(text)}`, null, 1024, 800);
},
custom(text) { }
},
{
name: 'Settings',
id: 'settings',
image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAQAAABpN6lAAAAGIUlEQVR42u2dW2xUVRSGv95VKAJVQGJUfBHUxAgNKqGUSzERLUrlFhAK8QH1pQoB9EEFb9EHETQqckm8tFQsYFtEKAKWAmJI6QUwSABNaLFgIiTaogXK+MCwZs90LudAZsJZ3f9+m1kr7f+3e+911l5rH4iEFPJ4jx0000Y7zdRSQiF96RLI4CVO4gszLlHJUO30p/B7WPKBUU4freRT+TAG+cujhTyN9DPZGkL0DNUUs4IK6ukI+uYCE7XRT2d70GwvZQypxvf9eI7jhkU7j+sSYJlBbj+DI4g0l3ax+pu79NAfxiUhVsZNUSyHc1ost5OkRYBdQmoTKTFsh9Am1s/ooD9eCB2lhwP76WJfr0OAKiFU4NCjRjxGep9+Fhf9ZGodz+kRIsAy7wtQIGTmO/ZJoknPJFgsAgx04fWp3+ci48jz2Mgl06TypVBJdSHAi46C5ut1nDL/2OUS4bvBZE8L4GNVVxdgZecp0NGFpkAL9wSoLJKPB7kQYLmeRXCCCLDAxTbY7Pep8/422FsCoTrHgVCupkDIDIWdpjl2i8cIDQIEYsFj9HRgP0Ps61CBZA4Kpc0xH4ezOSfW07XkA0YaCZF1dItimcOfYrlNT0IE3jJ2yXqyw9pkMD8oJXanppxgMt8GJUXXMpY04/v+vBB0YtDOY9rywt2N3eDyOEsNJaykksZOafECFCKVpY4CyT8Yg1pMoSUG/fXcimpkslDyPcGjg3KG0CWQzCjeYRtNtNJOE/soZobeQ1ELCwsLCwsLCwsLCwsLC4u44w7mUMoujvAXh6nhK56lf9egnswk9kcoxd9Lvq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O4aea9jzDQqjwfHfBwOtOI1aHkcTpauNB+noz4SdWeDkRDJQQ0G8I9x4f880sNaDTUmi4/FupKiTxivfPBxnOe5zfg2nbGUBSVF1+u7rWpip7R4A5WspIQazoZEjVtctfF7BnkOg/klek8J+8gr4yKNky6fGj2IbCpCXgTik2B5gb4ToUj/CTMpYR9NtNPKCbbxNrmRuxX/B4UnbV8qW1T4AAAAAElFTkSuQmCC',
host: ['example.com'],
popup(text) {
popupCenter('https://example.com', null, 1024, 800);
},
custom(text) {
settings();
}
}
];
const hostCustomMap = {};// {host: [method, ...]}
const customMadeIconArray = getCustomMadeIconArray(true);
// id、host 唯一性校验
const idMaps = {};
const hostMaps = {};
// 指定 id 在弹窗方法调用时不存储选中文字
const beforePopupDoNotSetValueMaps = { more: 'more' };
customMadeIconArray.forEach(({ id, host }) => {
if (id in idMaps) {
alert(`Duplicate Id: ${id}`);
} else {
idMaps[id] = id;
}
host.forEach(host => {
if (host in hostMaps) {
log(`Duplicate Host: ${host}`);
} else {
hostMaps[host] = host;
}
});
});
log('idMaps:', idMaps, 'hostMaps:', hostMaps);
// 初始化 hostCustomMap
customMadeIconArray.forEach(({ host, custom }) => {
host.forEach(host => { // 赋值DOM加载后的自定义方法Map
if (host in hostCustomMap) {
hostCustomMap[host].push(custom);
} else {
hostCustomMap[host] = [custom];
}
});
});
log('hostCustomMap:', hostCustomMap);
const icon = document.createElement('tr-icon');// 翻译图标
let selected;// 当前选中文本
let pageX;// 图标显示的 X 坐标
let pageY;// 图标显示的 Y 坐标
// 绑定图标拖动事件
const iconDrag = new Drag(icon);
const dragFluctuation = 16;// 当拖动多少像素以上时不触发查询
// 翻译引擎添加到图标
let isIconImgMore = false;
customMadeIconArray.forEach(({ image, name, popup, id }) => {
const img = document.createElement('img');
img.setAttribute('src', image);
img.setAttribute('alt', name);
img.setAttribute('title', name);
img.addEventListener('mouseup', () => {
if (!isDrag(dragFluctuation)) {
dataTransfer.beforePopup(popup, id);
}
});
if (isIconImgMore) {
img.setAttribute('is-more', 'true');
}
if (id == 'more') {
isIconImgMore = true;
}
icon.appendChild(img);
});
// 翻译图标添加到 DOM
const root = document.createElement('div');
document.documentElement.appendChild(root);
const shadow = root.attachShadow({
mode: 'closed'
});
// iframe 工具库加入 Shadow
shadow.appendChild(iframe);
iframeWin = iframe.contentWindow;
iframeDoc = iframe.contentDocument;
// 外部样式表
const 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';
}
// 重定向
const 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';
let a = document.createElement('a');
a.setAttribute('id', 'redirect_url');
a.setAttribute('rel', 'noreferrer noopener');
a.setAttribute('href', redirect_url);
a.appendChild(document.createTextNode(redirect_url));
document.body.appendChild(a);
gm.set(gm.REDIRECT_URL, '');
a.click();
return;
}
// 弹出后的新页面判断是否进行自动化处理
const 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', 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(...args) {
const debug = false;
if (!debug) {
return;
}
if (args) {
for (let i = 0; i < args.length; i++) {
console.log(args[i]);
}
}
}
/**是否非空*/
function isNotNull(obj) {
return (obj != undefined && obj != null) || false;
}
/**转 int*/
function myParseInt(str, myDefault) {
const 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) {
let 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+
let e = document.createEvent('HTMLEvents');
e.initEvent(type, true, true); // event.initEvent(type, bubbles, cancelable);
el.dispatchEvent(e);
} else { // IE 8
let e = document.createEventObject();
e.eventType = type;
el.fireEvent(`on${e.eventType}`, e);
}
}
/**弹出居中窗口*/
function popupCenter(url, title, w, h) {
const transfer = 'https://example.com';
title = isNotNull(title) ? title : '_blank';// 留空默认“_self”,会复用当前弹出窗口
w = w > screen.availWidth ? screen.availWidth : w;
h = h > screen.availHeight ? screen.availHeight : h;
let x = screen.availWidth / 2 - w / 2;
let y = screen.availHeight / 2 - h / 2;
x = x < 0 ? 0 : x;
y = y < 0 ? 0 : y;
let win;
try {
win = window.open('', title, `scrollbars=yes, width=${w}, height=${h}, top=${y}, left=${x}`);
win.opener = null;
let a = win.document.createElement('a');
a.setAttribute('id', 'redirect_url');
a.setAttribute('rel', 'noreferrer noopener');
a.setAttribute('href', url);
win.document.body.appendChild(a);
a.click();
} catch (e) {
try {
win.close();
} catch (ce) {
log(ce);
}
gm.set(gm.REDIRECT_URL, url);
win = window.open(transfer, title, `scrollbars=yes, width=${w}, height=${h}, top=${y}, left=${x}, noopener, noreferrer`);
log(e);
}
if (window.focus) {
win.focus();
}
return win;
}
/**打开新的标签页*/
function openInNewTab(url) {
const 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
const cssSheet = new CSSStyleSheet();
const styleArray = cssText.split('\n');
for (let i = 0; i < styleArray.length; i++) {
const 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.startDragTime = 0;
this.stopDragTime = 0;
this.mouseDownPositionX = 0;
this.mouseDownPositionY = 0;
this.elementOriginalLeft = parseInt(element.style.left);
this.elementOriginalTop = parseInt(element.style.top);
this.backAndForthLeftMax = 0;
this.backAndForthTopMax = 0;
const ref = this;
this.startDrag = e => {
e.preventDefault();
ref.dragging = true;
ref.startDragTime = new Date().getTime();
ref.mouseDownPositionX = e.clientX;
ref.mouseDownPositionY = e.clientY;
ref.elementOriginalLeft = parseInt(element.style.left);
ref.elementOriginalTop = parseInt(element.style.top);
ref.backAndForthLeftMax = 0;
ref.backAndForthTopMax = 0;
// set global mouse events
window.addEventListener('mousemove', ref.dragElement);
window.addEventListener('mouseup', ref.stopDrag);
log('startDrag');
};
this.unsetMouseMove = () => {
// unset global mouse events
window.removeEventListener('mousemove', ref.dragElement);
window.removeEventListener('mouseup', ref.stopDrag);
};
this.stopDrag = e => {
e.preventDefault();
ref.dragging = false;
ref.stopDragTime = new Date().getTime();
ref.unsetMouseMove();
log('stopDrag');
};
this.dragElement = 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`;
// get max move
let left = Math.abs(ref.elementOriginalLeft - parseInt(element.style.left));
let top = Math.abs(ref.elementOriginalTop - parseInt(element.style.top));
if (left > ref.backAndForthLeftMax) ref.backAndForthLeftMax = left;
if (top > ref.backAndForthTopMax) ref.backAndForthTopMax = top;
log('dragElement');
};
element.onmousedown = this.startDrag;
element.onmouseup = this.stopDrag;
}
/**
* 是否拖动图标
* @param fluctuate 位移波动允许范围
*/
function isDrag(fluctuate) {
return (iconDrag.elementOriginalLeft != parseInt(icon.style.left)
&& Math.abs(iconDrag.elementOriginalLeft - parseInt(icon.style.left)) >= fluctuate) ||
(iconDrag.elementOriginalTop != parseInt(icon.style.top)
&& Math.abs(iconDrag.elementOriginalTop - parseInt(icon.style.top)) >= fluctuate) ||
iconDrag.backAndForthLeftMax >= fluctuate ||
iconDrag.backAndForthTopMax >= fluctuate;
}
/**强制结束拖动*/
function forceStopDrag() {
// 强制设置鼠标拖动事件结束,防止由于网页本身的其它鼠标事件冲突而导致没有侦测到:mouseup
if (iconDrag) {
iconDrag.dragging = false;
iconDrag.unsetMouseMove();
}
}
/**显示 icon*/
function showIcon(e) {
log('showIcon event:', e);
let offsetX = 4; // 横坐标翻译图标偏移
let 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(ele => {
ele.style.display = 'none';
});
forceStopDrag();
}
/**设置*/
function settings() {
const hideConfig = gm.get(gm.HIDE, {});
const sortConfig = gm.get(gm.SORT, []);
log('hideConfig: ', hideConfig);
log('sortConfig: ', sortConfig);
const allSortedIconArray = getCustomMadeIconArray(false);
document.querySelectorAll('style,link,script').forEach(ele => {
ele.remove();
});
document.querySelectorAll('title').forEach(ele => {
ele.innerHTML = 'configuration page';
});
document.title = 'configuration page';
document.body.innerHTML = '';
document.body.style.padding = '20px';
const 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>';
const reset = document.createElement('button'); // 重置配置
reset.innerHTML = 'reset settings';
reset.addEventListener('click', () => {
const 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((obj, i) => {
const item = document.createElement('div');
const name = document.createElement('span');
const up = document.createElement('a');
const down = document.createElement('a');
const show = document.createElement('a');
const 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 () {
const index = myParseInt(this.getAttribute('index'));
const newIconArray = arrayMove(allSortedIconArray, index, index - 1);
const idArray = [];
newIconArray.forEach(({ id }) => {
idArray.push(id);
});
gm.set(gm.SORT, idArray);
settings();
});
down.innerHTML = 'down';
down.setAttribute('href', 'javascript:void(0)');
down.setAttribute('index', i);
down.addEventListener('click', function () {
const index = myParseInt(this.getAttribute('index'));
const newIconArray = arrayMove(allSortedIconArray, index, index + 1);
const idArray = [];
newIconArray.forEach(({ id }) => {
idArray.push(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) {
const hideConfig = gm.get(gm.HIDE, {});
const sortConfig = gm.get(gm.SORT, []);
log('hideConfig: ', hideConfig);
log('sortConfig: ', sortConfig);
const customMadeIconArray = [];
const tempArray = [];
// hide
iconArray.forEach(obj => {
if (hide && !isNotNull(hideConfig[obj.id])) {
tempArray.push(obj);
} else if (!hide) {
tempArray.push(obj);
}
});
// sort
const sorted = {};
sortConfig.forEach(id => {
tempArray.forEach(tObj => {
if (id == tObj.id) {
customMadeIconArray.push(tObj);
sorted[id] = true;
}
});
});
tempArray.forEach(tObj => {
if (!isNotNull(sorted[tObj.id])) {
customMadeIconArray.push(tObj);
}
});
log('customMadeIconArray: ', customMadeIconArray);
return customMadeIconArray;
}
})();