Onestep Search - 一键快搜,纵享丝滑搜索体验

任意网页【快速按2次Ctrl键】均可开启资源搜索,并且可自由切换搜索平台,搜索关键词会自动填充(关键词来源:1、鼠标选中的词;2、已经搜索使用的词),避免关键词重复输入。👉时间就是金钱,快速搜索,一步直达👈 。脚本现在已内置常用搜索平台,包括:常见搜索引擎、视频网站、音乐网站、购物网站、知识搜索等,更多快捷功能请查看详情~

// ==UserScript==
// @name        Onestep Search - 一键快搜,纵享丝滑搜索体验
// @version     1.0.2
// @author      Xanthella
// @namespace   Xanthella_Onestep_Search
// @description 任意网页【快速按2次Ctrl键】均可开启资源搜索,并且可自由切换搜索平台,搜索关键词会自动填充(关键词来源:1、鼠标选中的词;2、已经搜索使用的词),避免关键词重复输入。👉时间就是金钱,快速搜索,一步直达👈 。脚本现在已内置常用搜索平台,包括:常见搜索引擎、视频网站、音乐网站、购物网站、知识搜索等,更多快捷功能请查看详情~
// @icon        data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABK9JREFUWEfVl01PXFUYx//n3JdhLsMwMGRABQbFGLQaTLeaFDfGdGFcGD+DibUpL4OpC8NGW6AgNjVx08SFrmviRlfWb0DjpgsSgdIWOh2GIeVeZubce8xzZg7MC/MCG+JJmHtn7rnn+Z3/83ZgOOfBztk+/n8AVyd3frZMc6IQiP6QYaEghCkhRbSj42/Ltm/OzYXvn0bVthRYnPMmtl3vdwZEaHHHsuBY9pEdr1hEAAm65kXxMBKy79640XOlHZCWAFOp9H2TGZe6HQcmGFj5Da5vAARSHtmiu8e5HCzD2FhajI+0gmgKMJ16vsYYH734Vhe2NgJYnIEzoNK4NkAQgQSK9AHALRSx67ni9nLCagbREICMh6zQ6OUPwxge4bj3i4DBGCxeWs4kEgAikPAlqQCQaQIpBseqPDtw924t9PQ0gjgRQO/8k8tRJEc4fvvVh82hAMwygM0ZPLJcMfJ+CUaDkRq7rotiEDR0x4kAV6eeyc8+7sV7lwzc+U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j+dMIJdAAAAAElFTkSuQmCC
// @match       *://*/*
// @grant       GM_openInTab
// @grant       GM_setClipboard
// @grant       GM_getValue
// @grant       GM_setValue
// @grant       GM_xmlhttpRequest
// @grant       GM_addElement
// @grant       GM_addStyle
// @grant       GM_registerMenuCommand
// @run-at      document-end
// @connect     baidu.com
// @unsafeWindow
// @license     GPL-3.0-only
// @noframes
// ==/UserScript==

(function () {
    'use strict';

    //=========================定义网站数据=======================================
    function SiteInfo(_name, _url, _homepage, _icon) {
        this.name = _name;
        this.url = _url;
        this.home = _homepage;
        this.icon = _icon;

        this.callSiteInformation = function (_enable = true) {
            return {
                name: _name,
                url: _url,
                home: _homepage,
                icon: _icon,
                enable: _enable,
            };
        };
    };

	const defaultIcons ={
		default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAdFJREFUWEftVkFugzAQxOQVQflL6cvSvCzJXyLyCnA1yIMmy2JMWymqBBdksHdnx+NZh+rNT3hz/moH8D8ZOJ1O7TAMbYzxI4Rwp466rvvaqqliBpC07/tzCKFdSXLZAqQIQNM0qOzMxDHG2+FwuHAsbCi4IiCrAGzyrutma47H45XMAJywtAoiC8AkR8UTC1VVjcGTHq4cgxW7LrcliwAkcFXX9efj8bhRfASC70g4DMOVc7gtCsL+Uw0tAhBaZzRq1SnY2UtiY6TxXRlxAWj13p4nmqNW4s2zccgKdPJ8Pkf2XABC36KImqYZAWgw73gyFhniOgLOAsjtHQLDiFhJzhvABP6Lj0yFuQC4dzkApY7nGNgLqy8AMBlq/wsANjHNC/HdU6D7njy+3cKAQ7MlydXTxACrhjiIPre/mnBUs/QIrXaNzRmAZKVTh9MywIxNxpOAN/qDUlxynF80YH3fExoAMhneTEj96JqS47zohFv83DMYXb9kZotGVOrntjdgHYSL9iyNK9sRt7bjKZh3R3AuK79rxx4TFJ32/PQN17PpQlJ6hFcZMCAw1DvBTKdrvcEuKAbgqBuNiMfyXtf1zbpciV3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zYuOSA2MTQgNzA2LjQgNjE0Yy0zMC40IDAtNTUuMSAyNC43LTU1LjEgNTUuMiIgZmlsbD0iI0Y4QjYxNiIgcC1pZD0iNjkxNyI+PC9wYXRoPjxwYXRoIGQ9Ik0xNDYuOCA2NTcuOGMwIDMwLjUgMjQuNyA1NS4yIDU1LjIgNTUuMiAzMC41IDAgNTUuMi0yNC43IDU1LjItNTUuMiAwLTMwLjUtMjQuNy01NS4yLTU1LjItNTUuMi0zMC41IDAtNTUuMiAyNC43LTU1LjIgNTUuMiIgZmlsbD0iIzI4OTM0OSIgcC1pZD0iNjkxOCI+PC9wYXRoPjxwYXRoIGQ9Ik0xNTIuNSA2NjkuMmMwIDMwLjUgMjQuNyA1NS4yIDU1LjIgNTUuMiAzMC41IDAgNTUuMi0yNC43IDU1LjItNTUuMlMyMzguMiA2MTQgMjA3LjcgNjE0Yy0zMC41IDAtNTUuMiAyNC43LTU1LjIgNTUuMk04NTAuNiA4MTMuNGMwIDE5LjcgMTAuNSAzNy45IDI3LjYgNDcuOCAxNy4xIDkuOSAzOC4xIDkuOSA1NS4yIDBzMjcuNi0yOC4xIDI3LjYtNDcuOC0xMC41LTM3LjktMjcuNi00Ny44YTU1LjAxIDU1LjAxIDAgMCAwLTU1LjIgMGMtMTcgOS45LTI3LjYgMjguMS0yNy42IDQ3LjgiIGZpbGw9IiNGOEI2MTYiIHAtaWQ9IjY5MTkiPjwvcGF0aD48L3N2Zz4=',
	};
	
    // 百度系列
    const Baidu = new SiteInfo('百度', 'https://www.baidu.com/s?wd=%s&ie=utf-8', 'https://www.baidu.com/', 'baidu');
    const Baidufanyi = new SiteInfo('百度翻译', 'https://fanyi.baidu.com/#auto/zh/%s', 'https://fanyi.baidu.com/', 'baidu_fanyi');
    const Baiduwangpan = new SiteInfo('百度网盘', 'https://pan.baidu.com/disk/home?#/search?key=%s', 'https://pan.baidu.com/', 'baidu_wangpan');
    const Baidubaike = new SiteInfo('百度百科', 'https://baike.baidu.com/search/word?pic=1&sug=1&word=%s', 'https://baike.baidu.com/', 'baidu_baike');
    const Baiduzhidao = new SiteInfo('百度知道', 'https://zhidao.baidu.com/search?word=%s', 'https://zhidao.baidu.com/', 'baidu_zhidao');
    const Baiduxinwen = new SiteInfo('百度新闻', 'https://www.baidu.com/s?rtt=1&bsst=1&cl=2&tn=news&rsv_dl=ns_pc&word=%s', 'http://news.baidu.com/', Baidu.icon);
    const Baiduwenku = new SiteInfo('百度文库', 'https://wenku.baidu.com/search?word=%s', 'https://wenku.baidu.com/', 'baidu_wenku');
    const Baidumap = new SiteInfo('百度地图', 'https://map.baidu.com/search?querytype=s&wd=%s', 'https://map.baidu.com/', 'baidu_map');
    const Baidutupian = new SiteInfo('百度图片', 'https://image.baidu.com/search/index?tn=baiduimage&ie=utf-8&word=%s', 'https://image.baidu.com/', Baidu.icon);
    const Baiduxueshu = new SiteInfo('百度学术', 'http://xueshu.baidu.com/s?wd=%s', 'http://xueshu.baidu.com/', Baidu.icon);
    const Baidutieba = new SiteInfo('贴吧', 'https://tieba.baidu.com/f?kw=%s&ie=utf-8', 'https://tieba.baidu.com/', 'baidu_tieba');

    // 谷歌系列
    const Google = new SiteInfo('谷歌', 'https://www.google.com/search?q=%s&ie=utf-8&oe=utf-8', 'https://www.google.com/', 'google');
    const Googlefanyi = new SiteInfo('谷歌翻译', 'https://translate.google.com/?q=%s', '',  'google_translate');
    const Googlemap = new SiteInfo('谷歌地图', 'https://www.google.com/maps/search/%s', 'https://www.google.com/maps/', 'google_map');
    const Googleearth = new SiteInfo('谷歌地球', 'https://earth.google.com/web/search/%s', 'https://earth.google.com/web/', 'google_earth');
    const Googlexueshu = new SiteInfo('谷歌学术', 'https://scholar.google.com/scholar?hl=zh-CN&q=%s', '', Google.icon);
    const Googlepic = new SiteInfo('谷歌图片', 'https://www.google.com/search?q=%s&tbm=isch', 'https://www.google.com/imghp?hl=zh-CN', Google.icon);
    const Googlenews = new SiteInfo('谷歌新闻', 'https://news.google.com/search?q=%s&hl=zh-CN&gl=CN&ceid=CN:zh-Hans', 'https://news.google.com/topstories?hl=zh-CN&gl=CN&ceid=CN:zh-Hans', 'google_news');

    const StackOverflow = new SiteInfo('StackOverflow', 'https://stackoverflow.com/search?q=%s', '', 'stackoverflow');
    const Zhihu = new SiteInfo('知乎', 'https://www.zhihu.com/search?q=%s', 'https://www.zhihu.com/', 'zhihu');
    const Bing = new SiteInfo('必应', 'https://cn.bing.com/search?q=%s', 'https://cn.bing.com/', 'bing');
    const Bilibili = new SiteInfo('哔哩哔哩', 'https://search.bilibili.com/all?keyword=%s', 'https://www.bilibili.com/', 'bilibili');
    const Taobao = new SiteInfo('淘宝', 'https://s.taobao.com/search?q=%s', 'https://www.taobao.com/', 'taobao');
    const Jingdong = new SiteInfo('京东', 'https://search.jd.com/Search?keyword=%s&enc=utf-8', 'https://www.jd.com/', 'jd');
    const Tianmao = new SiteInfo('天猫', 'https://list.tmall.com/search_product.htm?q=%s', 'https://www.tmall.com/', 'tmall');
    const Maimai = new SiteInfo('脉脉', 'https://maimai.cn/web/search_center?type=gossip&query=%s&highlight=true', 'https://maimai.cn/feed_list', 'maimai');
    const Weibo = new SiteInfo('微博', 'https://s.weibo.com/weibo/%s', 'https://weibo.com/', 'weibo');
    const GitHub = new SiteInfo('GitHub', 'https://github.com/search?q=%s', 'https://github.com/' , 'github');
	
	//短视频
	const Douyin = new SiteInfo('抖音', 'https://www.douyin.com/search/%s', 'https://www.douyin.com/' , 'douyin');
	const Kuaishou = new SiteInfo('快手', 'https://www.kuaishou.com/search/video?searchKey=%s', 'https://www.kuaishou.com/' , 'kuaishou');
	
	const Sogou = new SiteInfo('搜狗', 'https://www.sogou.com/web?query=%s', 'https://www.sogou.com/', 'sogou');
	const So360 = new SiteInfo('360', 'https://www.so.com/s?ie=utf-8&q=%s', 'https://www.so.com/', 'so360');
    
	const Bookmarkearth = new SiteInfo('书签搜索', 'https://www.bookmarkearth.cn/s/search?q=%s', 'https://www.bookmarkearth.cn', 'bookmarkearth');
	//=========================定义网站数据=======================================

    const defaultConf = {
        showToolbar: false,              // 显示划词工具条
        showFrequentEngines: true,      // 显示常用搜索引擎
        showClassifiedEngines: true,    // 显示分类搜索引擎
        showPlaceholder: true,          // 显示使用方式提示信息(如搜索框placeholder)
        enableOnInput: false,           // 是否在input/textarea上启用划词和快捷键
        autoCopyToClipboard: false,     // 划词时自动复制到剪贴板(内容为文本格式)

        //
        // 搜索框默认搜索引擎
        // 属性:
        //   - name 搜索引擎名称
        //   - url 搜索引擎搜索url
        //   - home 搜索引擎主页url
        //
        defaultEngine: {
            name: Baidu.name,
            url: Baidu.url,
            home: Baidu.home,
			icon: Baidu.icon
        },
        //
        // 绑定快捷键的搜索引擎列表
        // 属性:
        //   - name 搜索引擎名称
        //   - url 搜索引擎搜索url
        //   - home 搜索引擎主页url
        //   - hotkeys 快捷键列表, 仅支持配置单字符按键的code值, 实际起作用的是Alt+单字符键, S/D/F/L键已被脚本征用
        //   - enable 是否启用
        //
        hotkeyEngines: [
            {
                name: '百度百科',
                url: 'https://baike.baidu.com/search/word?pic=1&sug=1&word=%s',
                home: 'https://baike.baidu.com/',
                hotkeys: ['KeyW'],
                enable: true,
            },
            {
                name: '百度翻译',
                url: 'https://fanyi.baidu.com/#auto/zh/%s',
                home: 'https://fanyi.baidu.com/',
                hotkeys: ['KeyE'],
                enable: true,
            },
            {
                name: '百度',
                url: Baidu.url,
                home: Baidu.home,
                hotkeys: ['KeyB'],
                enable: true,
            },
            {
                name: 'Google',
                url: Google.url,
                home: Google.home,
                hotkeys: ['KeyG'],
                enable: true,
            },
        ],
        //
        // 常用搜索引擎列表
        // 属性:
        //   - name 搜索引擎名称
        //   - url 搜索引擎搜索url
        //   - home 搜索引擎主页url
        //   - icon 搜索引擎图标, base64编码
        //   - enable 是否启用
        //
        frequentEngines: [
            Baidu.callSiteInformation(),
            Baidubaike.callSiteInformation(),
            Zhihu.callSiteInformation(),
            Bilibili.callSiteInformation(),
			Douyin.callSiteInformation(),
			{
			    name: '公众号',
			    url: 'https://weixin.sogou.com/weixin?ie=utf8&type=2&query=%s',
			    icon: 'gongzhonghao',
			    enable: true
			},
			Bookmarkearth.callSiteInformation()
        ],
        //
        // 分类搜索引擎列表, 二维数组, 默认认为该配置包含了所有已配置搜索引擎
        // 一级分类属性:
        //   - name 分类名称
        //   - enable 该分类是否启用
        //   - engines 该分类下的搜索引擎列表
        // 二级搜索引擎属性:
        //   - name 搜索引擎名称
        //   - url 搜索引擎搜索url
        //   - home 搜索引擎主页url
        //   - icon 搜索引擎图标, base64编码
        //   - enable 搜索引擎是否启用
        //
        classifiedEngines: [
            {
                name: '搜索',
				ident:'search-engines',
                enable: true,
                engines: [
                    Baidu.callSiteInformation(),
                    Google.callSiteInformation(),
                    Bing.callSiteInformation(),
					Sogou.callSiteInformation(),
					So360.callSiteInformation()
                ]
            },
			{
				name:'视频',
				ident:'video',
				enable: true,
				engines:[
					{
					    name: '腾讯视频',
					    url: 'https://v.qq.com/x/search/?q=%s',
					    home: 'https://v.qq.com/',
					    icon: 'tengxunshipin',
						enable: true
					},
					{
					    name: '爱奇艺',
					    url: 'https://www.iqiyi.com/search/%s.html',
					    home: 'https://www.iqiyi.com/',
					    icon: 'iqiyi',
						enable: true
					},
					{
					    name: '优酷',
					    url: 'https://so.youku.com/search_video/q_%s',
					    home: 'https://www.youku.com/',
					    icon: 'youku',
						enable: true
					},
					{
					    name: '芒果TV',
					    url: 'https://so.mgtv.com/so?k=%s&lastp=so_result',
					    home: 'https://www.mgtv.com/',
					    icon: 'mgtv',
						enable: true
					},
					Bilibili.callSiteInformation(),
					Douyin.callSiteInformation(),
					Kuaishou.callSiteInformation()
				]
			},
			{
			    name: '音乐',
				ident:'music',
			    enable: true,
			    engines: [
			        {
			            name: '网易云音乐',
			            url: 'https://music.163.com/#/search/m/?s=%s',
			            icon: "music163",
			            enable: true
			        },
			        {
			            name: 'QQ音乐',
			            url: 'https://y.qq.com/portal/search.html#page=1&searchid=1&remoteplace=txt.yqq.top&t=song&w=%s',
			            icon: "qqyinyue",
			            enable: true
			        },
			        {
			            name: '酷我音乐',
			            url: 'http://www.kuwo.cn/search/list?type=all&key=%s',
			            icon: 'kuwoyinyue',
			            enable: true
			        },
			        {
			            name: '咪咕音乐',
			            url: 'https://music.migu.cn/v3',
			            icon: 'migu',
			            enable: true
			        },
			        {
			            name: '酷狗音乐',
			            url: 'https://www.kugou.com/yy/html/search.html#searchType=song&searchKeyWord=%s',
			            home: 'https://www.kugou.com/',
			            icon: 'kugou',
			            enable: true
			        }
			    ]
			},
			{
			    name: '购物',
				ident:'shopping',
			    enable: true,
			    engines: [
			        Taobao.callSiteInformation(),
			        Jingdong.callSiteInformation(),
			        Tianmao.callSiteInformation(),
					{
						name: '1688',
						url: 'https://s.1688.com/selloffer/offer_search.htm?keywords=%s',
						home: 'http://www.1688.com/',
						icon: '1688',
						enable: true
					},
			        {
			            name: '当当',
			            url: 'http://search.dangdang.com/?key=%s&act=input',
			            home: 'http://www.dangdang.com/',
			            icon: 'dangdang',
			            enable: true
			        },
			        {
			            name: '苏宁',
			            url: 'https://search.suning.com/%s/',
			            home: 'https://www.suning.com/',
			            icon: 'suning',
			            enable: true
			        },
			        {
			            name: '唯品会',
			            url: 'https://category.vip.com/suggest.php?keyword=%s',
			            icon: 'vip',
			            enable: true
			        }
			    ]
			},
            {
                name: '知识',
				ident: 'knowledge',
                enable: true,
                engines: [
                    Zhihu.callSiteInformation(),
                    Maimai.callSiteInformation(),
					Baiduzhidao.callSiteInformation(),
					Baidubaike.callSiteInformation(),
                    {
                        name: 'Quora',
                        url: 'https://www.quora.com/search?q=%s',
                        icon: 'quora',
						enable: true
                    },
                    {
                        name: '维基百科',
                        url: 'https://zh.wikipedia.org/wiki/%s',
                        icon: 'wikipedia',
                        enable: true
                    },
                    {
                        name: '萌娘百科',
                        url: 'https://zh.moegirl.org/%s',
                        icon: 'moegirl',
						enable: true
                    },
                    {
                        name: '果壳',
                        url: 'https://www.guokr.com/search/all/?wd=%s',
                        icon: 'guokr',
                        enable: true
                    }
                ]
            },
			{
			    name: '社交',
				ident:'social-interaction',
			    enable: true,
			    engines: [
			        Weibo.callSiteInformation(),
			        Baidutieba.callSiteInformation(),
			        Zhihu.callSiteInformation(),
			        {
			            name: '豆瓣',
			            url: 'https://www.douban.com/search?q=%s',
			            home: 'https://www.douban.com/',
			            icon: 'douban',
			            enable: true
			        },
			        {
			            name: 'Twitter',
			            url: 'https://twitter.com/search?q=%s',
			            icon: 'twitter',
			            enable: false
			        },
			        {
			            name: 'Facebook',
			            url: 'https://www.facebook.com/search/results.php?q=%s',
			            icon: 'facebook',
			            enable: false
			        }
			    ]
			},
            {
                name: '翻译',
				ident:'translate',
                enable: true,
                engines: [
                    Baidufanyi.callSiteInformation(),
                    Googlefanyi.callSiteInformation(),
                    {
                        name: '有道词典',
                        url: 'https://youdao.com/w/%s',
                        icon: 'youdao',
                        enable: true
                    },
                    {
                        name: '必应翻译',
                        url: 'https://cn.bing.com/dict/search?q=%s',
                        home: 'https://www.bing.com/dict',
                        icon: Bing.icon,
                        enable: true
                    },
                    {
                        name: '海词词典',
                        url: 'http://dict.cn/%s',
                        icon: 'haidii',
                        enable: true
                    },
                    {
                        name: 'CNKI翻译',
                        url: 'http://dict.cnki.net/dict_result.aspx?scw=%s',
                        icon: 'cnki',
                        enable: false
                    },
                    {
                        name: 'deepL',
                        url: 'https://www.deepl.com/translator#en/zh/%s',
                        icon: 'deepl',
                        enable: true
                    },
                ]
            },
            {
                name: '地图',
				ident:'map',
                enable: true,
                engines: [
                    Baidumap.callSiteInformation(),
                    {
                        name: '高德地图',
                        url: 'https://www.amap.com/search?query=%s',
                        icon: "gaodemap",
                        enable: true
                    },
                    Googlemap.callSiteInformation(),
                    Googleearth.callSiteInformation()

                ]
            },
            {
                name: '图片',
				ident:'picture',
                enable: true,
                engines: [
					{
						name: '阿里矢量图',
						url: 'https://www.iconfont.cn/search/index?searchType=icon&q=%s',
						home: 'https://www.iconfont.cn/',
						icon: "iconfont",
						enable: true
					},
					{
					    name: 'pixiv',
					    url: 'https://www.pixiv.net/tags/%s',
						home: 'https://www.pixiv.net/',
					    icon: "pixiv",
					    enable: true
					},
					{
					    name: 'flickr',
					    url: 'https://www.flickr.com/search/?q=%s',
						home: 'https://www.flickr.com/',
					    icon: "flickr",
					    enable: true
					},
					{
					    name: '花瓣',
					    url: 'https://huaban.com/search/?q=%s',
						home: 'https://huaban.com/',
					    icon: "huaban",
					    enable: true
					},
                    Baidutupian.callSiteInformation(),
                    {
                        name: '搜狗图片',
                        url: 'https://pic.sogou.com/pics?query=%s',
						home: 'https://pic.sogou.com/',
                        icon: "sogou",
                        enable: true
                    },
                    {
                        name: '必应图片',
                        url: 'https://www.bing.com/images/search?q=%s',
                        home: 'https://www.bing.com/images/trending',
                        icon: "bing",
                        enable: true
                    },
					Googlepic.callSiteInformation()
                ]
            },
            {
                name: '学术',
				ident:'academic',
                enable: true,
                engines: [
                    Googlexueshu.callSiteInformation(),
                    Baiduxueshu.callSiteInformation(),
                    {
                        name: '知网',
                        url: 'http://epub.cnki.net/kns/brief/default_result.aspx?txt_1_value1=%s&dbPrefix=SCDB&db_opt=CJFQ%2CCJFN%2CCDFD%2CCMFD%2CCPFD%2CIPFD%2CCCND%2CCCJD%2CHBRD&singleDB=SCDB&action=scdbsearch',
                        icon: 'cnki',
                        enable: true
                    },
                    {
                        name: '万方',
                        url: 'http://www.wanfangdata.com.cn/search/searchList.do?searchType=all&searchWord=%s',
                        icon: 'wanfangdata',
                        enable: true
                    },
                    {
                        name: 'WOS',
                        url: 'http://apps.webofknowledge.com/UA_GeneralSearch.do?fieldCount=3&action=search&product=UA&search_mode=GeneralSearch&max_field_count=25&max_field_notice=Notice%3A+You+cannot+add+another+field.&input_invalid_notice=Search+Error%3A+Please+enter+a+search+term.&input_invalid_notice_limits=+%3Cbr%2F%3ENote%3A+Fields+displayed+in+scrolling+boxes+must+be+combined+with+at+least+one+other+search+field.&sa_img_alt=Select+terms+from+the+index&value(input1)=%s&value%28select1%29=TI&value%28hidInput1%29=initVoid&value%28hidShowIcon1%29=0&value%28bool_1_2%29=AND&value%28input2%29=&value%28select2%29=AU&value%28hidInput2%29=initAuthor&value%28hidShowIcon2%29=1&value%28bool_2_3%29=AND&value%28input3%29=&value%28select3%29=SO&value%28hidInput3%29=initSource&value%28hidShowIcon3%29=1&limitStatus=collapsed&expand_alt=Expand+these+settings&expand_title=Expand+these+settings&collapse_alt=Collapse+these+settings&collapse_title=Collapse+these+settings&SinceLastVisit_UTC=&SinceLastVisit_DATE=×panStatus=display%3A+block&timeSpanCollapsedListStatus=display%3A+none&period=Range+Selection&range=ALL&ssStatus=display%3Anone&ss_lemmatization=On&ss_query_language=&rsStatus=display%3Anone&rs_rec_per_page=10&rs_sort_by=PY.D%3BLD.D%3BVL.D%3BSO.A%3BPG.A%3BAU.A&rs_refinePanel=visibility%3Ashow',
                        icon: 'webofknowledge',
						enable: true
                    },
                    {
                        name: 'Springer',
                        url: 'http://rd.springer.com/search?query=%s',
                        icon: 'springer',
						enable: true
                    },
                    {
                        name: 'Letpub',
                        url: 'https://www.letpub.com.cn/index.php?page=journalapp&view=search&searchsort=relevance&searchname=%s',
                        home: 'https://www.letpub.com.cn/',
                        icon: '',
                        enable: true
                    },
                    {
                        name: '科研通',
                        url: 'https://www.ablesci.com/journal/index?keywords=%s',
                        home: 'https://www.ablesci.com/',
                        icon: 'ablesci',
                        enable: true
                    }
                ]
            },
			{
			    name: '开发',
				ident:'development',
			    enable: true,
			    engines: [
			        StackOverflow.callSiteInformation(),
			        {
			            name: 'Apache Issues',
			            url: 'https://issues.apache.org/jira/secure/QuickSearch.jspa?searchString=%s',
			            home: 'https://issues.apache.org/jira/',
			            icon: 'apache',
						enable: true
			        },
			        GitHub.callSiteInformation(),
			        {
			            name: 'Maven',
			            url: 'https://mvnrepository.com/search?q=%s',
			            icon: 'maven',
						enable: true
			        }
			    ]
			}
        ],
    };

    ///////////////////////////////////////////////////////////////////
    // css样式
    ///////////////////////////////////////////////////////////////////

    const defaultSheet = `
        /*
           注意: 为了避免网页style对该工具的影响, 所有样式均进行初始化并加入!important,
           js中设置style时也要注意将其设置为important, 否则不能生效.
        */
        /* 划词工具条 */
        .qs-toolbar {
            /* 初始化所有style, 避免被网页本身的style影响 */
            all: initial !important;
            position: absolute !important;
            display: block !important;
            height: 26px !important;
            padding: 2px !important;
            white-space: nowrap !important;
            border: 1px solid #F5F5F5 !important;
            box-shadow: 0px 0px 2px #BBB !important;
            background-color: #FFF !important;
            z-index: 10000 !important;
        }
        .qs-toolbar-icon {
            all: initial !important;
            display: inline-block !important;
            margin: 0px !important;
            padding: 2px !important;
            width: 20px !important;
            height: 20px !important;
            border: 1px solid #FFF !important;
            cursor: pointer !important;
        }
        .qs-toolbar-icon:hover {
            border: 1px solid #CCC !important;
        }

        /* 快搜主窗口背景层 */
        .qs-r025kcjix9vmk1dx2vdxcq45-main-background-layer {
            all: initial !important;
            position: fixed !important;
            display: block !important;
            top: 0px !important;
            left: 0px !important;
            width: 100% !important;
            height: 100% !important;
            border: 0px !important;
            background-color: rgba(144,144,144,0.3) !important;
            /* 使背景层背后的所有元素虚化 */
            backdrop-filter: blur(5px) !important;
            z-index: 2147483646 !important;
        }
		.qs-r025kcjix9vmk1dx2vdxcq45-main-background-mascot{
			all: initial !important;
			width:160px!important;
			position: fixed !important;
			right:20px!important;
			bottom:20px!important;
			text-align:center!important;
		}
		.qs-r025kcjix9vmk1dx2vdxcq45-main-background-mascot >img{
			width:150px!important;
		}
		.qs-r025kcjix9vmk1dx2vdxcq45-main-background-mascot >span{
			font-size:12px!important;
			color:#5e5e5e!important;
			font-weight:bold!important;
			display:inline-block!important;
		}
        /* 快搜主窗口 */
        .qs-mainbox {
            all: initial !important;
            position: fixed !important;
            display: block !important;
            text-align: center !important;
            overflow: auto !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            /* 宽度优先展示 */
            width: max-content !important;
            min-width: 500px !important;
            max-width: 1400px !important;
            min-height: 75px !important;
            max-height: 650px !important;
            padding: 10px !important;
            border: 1px solid #F5F5F5 !important;
            box-shadow: 0px 0px 3px #BBB !important;
            border-radius: 5px !important;
            background-color: #FFF !important;
            opacity: 1 !important;
            z-index: 2147483647 !important;
        }
		 /* 快搜主窗口搜索框 */
		.qs-r025kcjix9vmk1dx2vdxcq45-main-search-outer-box{
			position:relative !important;
			width: 80% !important;
			min-width: 400px !important;
			max-width: 800px !important;
			margin: 5px auto !important;
		}
        /* 快搜主窗口搜索框:input */
        .qs-r025kcjix9vmk1dx2vdxcq45-main-search-box {
			all: initial !important;
            text-align: center !important;
            width: 100% !important;
			height:50px !important;
			padding:0px 15px 0px 15px !important;
            border: 0px !important;
			display:flex !important;
			flex-direction: row!important;
			align-items: center!important;
			border: 1px solid #C4C7CE !important;
			border-radius: 10px !important;
        }
		.qs-r025kcjix9vmk1dx2vdxcq45-main-search-box:hover{
			border-color:#4E71F2 !important;
		}
		.qs-r025kcjix9vmk1dx2vdxcq45-main-search-box-platform-icon{
			width: 24px !important;
			height: 24px !important;
			overflow: hidden !important;
			cursor: pointer !important;
			background-size: 24px 24px;
			background-repeat: no-repeat !important;
			display: block !important;
		}
        .qs-r025kcjix9vmk1dx2vdxcq45-main-search-input {
            all: initial !important;
            text-align: left !important;
            height: 40px !important;
            padding: 0px 13px !important;
            font: 17px/20px arial !important;
            outline: none !important;
			flex:1!important;
        }
		.qs-r025kcjix9vmk1dx2vdxcq45-main-search-box-clear-btn{
			width: 30px!important;
			height: 30px!important;
			line-height:30px!important;
			text-align:center !important;
			overflow: hidden!important;
			cursor: pointer!important;
			background: transparent!important;
			border: none!important;
			color: #D5D5D5!important;
			font-size:30px !important;
			font-weight:700!important;
			display:none!important;
		}
        .qs-r025kcjix9vmk1dx2vdxcq45-main-search-input::selection {
            color: #FFF !important;
            background-color: #425d78 !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-search-input::placeholder {
            color: #DDD !important;
            opacity: 1 !important;
        }
		/* 选择默认搜索弹窗 */
		.qs-r025kcjix9vmk1dx2vdxcq45-main-switch-search-engines-box{
			all: initial !important;
			position: absolute!important;
			top: 65px!important;
			left: 0px !important;
			width: 400px !important;
			background: #FFF !important;
			border-radius: 4px !important;
			box-shadow: 0 5px 10px 0 #d8d7d7 !important;
			box-shadow: 0 4px 10px rgba(0, 0, 0, .5) !important;
			transition: all 0.3s !important;
			-moz-transition: all 0.3s !important;
			-webkit-transition: all 0.3s !important;
			-o-transition: all 0.3s !important;
			z-index: 999 !important;
		}
		.qs-r025kcjix9vmk1dx2vdxcq45-main-switch-search-engines-box::before {
			all: initial !important;
			content: '' !important;
			width: 0px !important;
			height: 0px !important;
			position: absolute !important;
			top: -18px !important;
			border-top: 10px solid transparent !important;
			border-right: 10px solid transparent !important;
			border-bottom: 10px solid #fff !important;
			border-left: 10px solid transparent !important;
			left: 10px !important;
		}
		.qs-r025kcjix9vmk1dx2vdxcq45-main-switch-search-engines-items{
			all: initial !important;
			display: flex !important;
			flex-direction: row !important;
			flex-wrap: wrap !important;
		}
		.qs-r025kcjix9vmk1dx2vdxcq45-main-switch-search-engines-items >li{
			all: initial !important;
		    width: calc(25% - 20px) !important;
		    line-height: 24px !important;
		    font-size: 12px !important;
		    padding: 5px 5px 5px 5px !important;
		    margin: 5px !important;
		    background-color: #e6e6e6 !important;
		    color: #333333 !important;
		    cursor: pointer !important;
		    white-space: nowrap !important;
		    overflow: hidden !important;
			display: block !important;
			text-align: left !important;
			vertical-align: middle !important;
			border-radius: 3px !important;
		}
		.qs-r025kcjix9vmk1dx2vdxcq45-main-switch-search-engines-items >li:hover{
			background-color: #dfdfdf !important;
		}
		.qs-r025kcjix9vmk1dx2vdxcq45-main-switch-search-engines-items >li >img{
			all: initial !important;
			display: inline-block !important;
			vertical-align: middle !important;
			width: 16px !important;
			height: 16px !important;
			margin: 0px 2px 0px 2px !important;
			border: 0px !important;
			cursor: pointer !important;
		}
		.qs-r025kcjix9vmk1dx2vdxcq45-main-switch-search-engines-items >li >span{
			all: initial !important;
			display: inline-block !important;
			vertical-align: middle !important;
			margin-right: 2px !important;
			font-size: 13px !important;
			font-weight:bold!important;
			color: #000 !important;
			border: 0px !important;
			cursor: pointer !important;
		}
        /* 快搜主窗口常用搜索引擎列表 */
        .qs-r025kcjix9vmk1dx2vdxcq45-main-frequent-box {
            all: initial !important;
            display: block !important;
            text-align: center !important;
            width: 100% !important;
            height: 38px !important;
            margin: 15px 0px 5px 0px !important;
            white-space: nowrap !important;
            border: 0px !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-frequent-icon {
            all: initial !important;
            display: inline-block !important;
            width: 28px !important;
            height: 28px !important;
            margin: 0px 6px !important;
            padding: 3px !important;
            border: 2px solid #FFF !important;
            cursor: pointer !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-frequent-icon:hover {
            border: 2px solid #CCC !important;
        }
        /* 快搜主窗口分类搜索引擎列表 */
        .qs-r025kcjix9vmk1dx2vdxcq45-main-classified-box {
            all: initial !important;
            display: block !important;
            text-align: center !important;
            width: 100% !important;
            margin-top: 15px !important;
            padding-top: 5px !important;
            border: 0px !important;
            border-top: 1px solid #DDD !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-box {
            all: initial !important;
            display: inline-block !important;
            text-align: left !important;
            vertical-align: top !important;
            min-width: 50px !important;
            max-width: 150px !important;
            height: 100% !important;
            margin: 5px 3px !important;
            border: 0px !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-title {
            all: initial !important;
            display: block !important;
            text-align: left !important;
            margin: 5px 4px !important;
            font-size: 18px !important;
            font-weight: 300 !important;
            color: #777 !important;
            border: 0px !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine {
            all: initial !important;
            display: block !important;
            text-align: left !important;
            vertical-align: middle !important;
            height: 26px !important;
            border: 2px solid #FFF !important;
            cursor: pointer !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine:hover {
            border: 2px solid #CCC !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine-icon {
            all: initial !important;
            display: inline-block !important;
            vertical-align: middle !important;
            width: 16px !important;
            height: 16px !important;
            margin: 0px 3px 0px 2px !important;
            border: 0px !important;
            cursor: pointer !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine-name {
            all: initial !important;
            display: inline-block !important;
            vertical-align: middle !important;
            margin-right: 2px !important;
            font-size: 13px !important;
            font-weight: 400 !important;
            color: #5F5F5F !important;
            border: 0px !important;
            cursor: pointer !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-help-info-box {
            all: initial !important;
            display: block !important;
            text-align: center !important;
            width: 100% !important;
            border: 0px !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-help-info-item {
            all: initial !important;
            margin: 0px 10px !important;
            font-size: 9px !important;
            color: #888 !important;
            cursor: pointer !important;
            text-decoration: none !important;
        }
        .qs-r025kcjix9vmk1dx2vdxcq45-main-help-info-item:hover {
            color: #4E71F2 !important;
        }

        /* 设置窗口 */
        .qs-setting-box {
            all: initial !important;
            position: fixed !important;
            display: block !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            width: fit-content !important;
            height: fit-content !important;
            padding: 10px !important;
            border: 1px solid #F5F5F5 !important;
            box-shadow: 0px 0px 6px #BBB !important;
            border-radius: 10px !important;
            background-color: #FFF !important;
            opacity: 1 !important;
            z-index: 40000 !important;
        }
        .qs-setting-config-textarea {
            all: initial !important;
            display: block !important;
            width: 800px !important;
            height: 650px !important;
            padding: 5px !important;
            white-space: pre !important;
            overflow-wrap: normal !important;
            font: 400 13.3333px Arial !important;
            border: 1px solid #CCC !important;
            border-radius: 5px !important;
        }
        .qs-setting-config-textarea:focus {
            border-color: #4E71F2 !important;
        }
        .qs-setting-button-bar {
            all: initial !important;
            display: block !important;
            width: 100% !important;
            text-align: right !important;
            border: 0px !important;
        }
        .qs-setting-button {
            all: initial !important;
            display: inline-block !important;
            width: 60px !important;
            margin: 10px 0px 5px 20px !important;
            font-size: 13px !important;
            color: #555 !important;
            border: 0px !important;
            cursor: pointer !important;
        }
        .qs-setting-button:hover {
            color: #4E71F2 !important;
        }

        /* 信息提示浮层 */
        .qs-info-tips-layer {
            all: initial !important;
            position: fixed !important;
            display: block !important;
            overflow: hidden !important;
            bottom: 30px !important;
            right: 30px !important;
            width: fit-content !important;
            height: fit-content !important;
            padding: 10px !important;
            font-size: 13px !important;
            color: #FFF !important;
            border: 0px !important;
            border-radius: 3px !important;
            background-color: rgba(0,0,0,0.7) !important;
            z-index: 2147483647 !important;
        }

        /* 搜索建议浮层 */
        .qs-suggestions-layer {
            all: initial !important;
            position: fixed !important;
            display: block !important;
            overflow: hidden !important;
            height: fit-content !important;
            border: 1px solid #F5F5F5 !important;
            z-index: 2147483647 !important;
			box-shadow: 0 4px 8px rgba(0, 0, 0, .2)!important;
        }
        .qs-suggestion-item, .qs-suggestion-item-selected {
            all: initial !important;
            display: block !important;
            text-align: left !important;
            vertical-align: middle !important;
            width: 100% !important;
            height: 33px !important;
            line-height: 33px !important;
            padding-left: 13px !important;
            font-size: 15px !important;
            font-weight: 400 !important;
            color: #555 !important;
            border: 0px !important;
            background-color: rgba(255,255,255) !important;
        }
        .qs-suggestion-item-selected {
            background-color: rgba(230,230,230) !important;
        }
        .qs-suggestion-item:hover {
            cursor: pointer !important;
            background-color: rgba(230,230,230) !important;
        }
    `;

    ///////////////////////////////////////////////////////////////////
    // 全局变量
    ///////////////////////////////////////////////////////////////////
	const STORAGE_KEY = {
		conf: 'qs-conf',
		tipsShowMark: 'qs-tips-mark',
		tipsDelay: 'qs-tips-delay',
		introduce: 'qs-introduce',
		usedDays: 'qs-script-used-days'
	}

    var conf = GM_getValue(STORAGE_KEY.conf, defaultConf);
    var hotkey2Engine = {};             // 自定义快捷键搜索的hotkey到engine的映射表
    var qsPageLock = false;             // 是否在当前页面锁定快搜所有功能, 锁定之后仅响应解锁快捷键

    ///////////////////////////////////////////////////////////////////
    // 功能函数
    ///////////////////////////////////////////////////////////////////
	
	function loadingIcon(icon){
		if(!icon){
			return defaultIcons.default;
		}
		if(icon.indexOf("base64:")!=-1){
			return icon;
		}
		const localIcon = defaultIcons[icon];
		return localIcon ? localIcon : "https://static.staticj.top/img/pics/svg/" + icon + ".svg"
	}
	
	function CommonTools(){
		// 获取元素style属性, 包括css中的
		this.getStyleByElement = function(e, styleProp) {
		    if (window.getComputedStyle) {
		        return document.defaultView.getComputedStyle(e, null).getPropertyValue(styleProp);
		    } else if (e.currentStyle) {
		        return e.currentStyle[styleProp];
		    }
		};
		
		// 计算元素在文档(页面)中的绝对位置
		this.getElementPosition = function(e){
		    return {
		        top: e.getBoundingClientRect().top + window.scrollY,        // 元素顶部相对于文档顶部距离
		        bottom: e.getBoundingClientRect().bottom + window.scrollY,  // 元素底部相对于文档顶部距离
		        left: e.getBoundingClientRect().left + window.scrollX,      // 元素左边相对于文档左侧距离
		        right: e.getBoundingClientRect().right + window.scrollX     // 元素右边相对于文档左侧距离
		    };
		};
		
		// 获取可视窗口在文档(页面)中的绝对位置
		this.getWindowPosition = function(){
		    return {
		        top: window.scrollY,
		        bottom: window.scrollY + window.innerHeight,
		        left: window.scrollX,
		        right: window.scrollX + window.innerWidth
		    };
		};
		
		// 判断元素在文档(页面)中是否可见
		this.isVisualOnPage = function(ele){
		    if (this.getStyleByElement(ele, 'display') == 'none'
		        || this.getStyleByElement(ele, 'visibility') == 'hidden'
		        || this.getStyleByElement(ele, 'opacity') == '0') {
		        return false;
		    }
		    if (this.getStyleByElement(ele, 'position') != 'fixed'
		        && ele.offsetParent == null) {
		        return false;
		    }
		    var elePos = this.getElementPosition(ele);
		    if (elePos.bottom - elePos.top == 0 || elePos.right - elePos.left == 0
		        || elePos.bottom <= 0 || elePos.right <= 0) {
		        return false;
		    }
		    return true;
		};
		
		// 获取选中文本
		this.getSelection = function(){
			return window.getSelection().toString().trim();
		};
		
		this.loadSheet = function(sheet, id){
			if(!id){
				id = "default-"+Math.ceil(Math.random()*100000000);
			}
			const css = document.createElement('style');
			css.type = "text/css";
			css.id = id;
			css.textContent = sheet;
			const heads = document.getElementsByTagName('head');
			if(heads && heads.length>0){
				document.getElementsByTagName('head')[0].appendChild(css);
			}else{
				document.body.insertAdjacentHTML('beforeend', html);
			}
		};
		
		this.getPlatform = function(){
			const userAgent = navigator.userAgent.toLocaleLowerCase();
			let platform = "unknown";
			if(userAgent.indexOf("mac")!=-1){
				platform = "mac";
			}else{
				platform = "win";
			}
			return platform;
		};
		
		/**
		 * @param {Object} time
		 * @param {Object} format
		 * 时间格式化
		 * DateFormat(new Date(dateCreated), "yyyy-MM-dd hh:mm:ss")
		 */
		this.dateFormat = function(time, format) {
			if(!time){time=new Date();}
			var o = {
				"M+": time.getMonth() + 1, //月份 
				"d+": time.getDate(), //日 
				"h+": time.getHours(), //小时 
				"m+": time.getMinutes(), //分 
				"s+": time.getSeconds(), //秒 
				"q+": Math.floor((time.getMonth() + 3) / 3), //季度 
				"S": time.getMilliseconds() //毫秒 
			};
			if(/(y+)/.test(format)){
				format = format.replace(RegExp.$1, (time.getFullYear() + "").substr(4 - RegExp.$1.length));
			}
			for(var k in o){
				if(new RegExp("(" + k + ")").test(format)){
					format = format.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
				}
			}
			return format;
		};
	}
	
	/**
	 * 
	 * @param {*} conf 
	 * 设置相关方法
	 */
	function Setting(commonTools, conf){
		this.qsSettingBox = null;
		this.qsConfigTextarea = null;
		this.conf = conf;
		
		this.createSettingBox=function(){
		    // 设置窗口container
		    var settingBox = document.createElement('div');
		    settingBox.id = 'qs-setting-box';
		    settingBox.className = 'qs-setting-box';
		    settingBox.style.setProperty('display', 'none', 'important');
		    document.body.appendChild(settingBox);
		    // 配置文本框
		    var configTextarea = document.createElement('textarea');
		    configTextarea.id = 'qs-setting-config-textarea';
		    configTextarea.className = 'qs-setting-config-textarea';
		    settingBox.appendChild(configTextarea);
		    // 底部按钮container
		    var buttonBar = document.createElement('div');
		    buttonBar.id = 'qs-setting-button-bar';
		    buttonBar.className = 'qs-setting-button-bar';
		    settingBox.appendChild(buttonBar);
		    // 重置按钮
		    var resetButton = document.createElement('button');
		    resetButton.id = 'qs-setting-button-reset';
		    resetButton.className = 'qs-setting-button';
		    resetButton.type = 'button';
		    resetButton.textContent = '重置';
		    resetButton.onclick = (e)=> {
		        configTextarea.value = JSON.stringify(defaultConf, null, 4);
		    }
		    buttonBar.appendChild(resetButton);
		    // 关闭按钮
		    var closeButton = document.createElement('button');
		    closeButton.id = 'qs-setting-button-close';
		    closeButton.className = 'qs-setting-button';
		    closeButton.type = 'button';
		    closeButton.textContent = '取消';
		    closeButton.onclick = (e)=> {
		        this.hideSettingBox();
		    }
		    buttonBar.appendChild(closeButton);
		    // 保存按钮
		    var saveButton = document.createElement('button');
		    saveButton.id = 'qs-setting-button-save';
		    saveButton.className = 'qs-setting-button';
		    saveButton.type = 'button';
		    saveButton.textContent = '保存';
		    saveButton.onclick = (e)=> {
		        var newConf = JSON.parse(configTextarea.value);
		        GM_setValue(STORAGE_KEY.conf, newConf);
		        this.hideSettingBox();
		        // 需用户手动刷新页面重新加载配置使其生效
		        alert('设置已保存, 刷新页面后生效.');
		    }
		    buttonBar.appendChild(saveButton);
		
		    this.qsSettingBox = settingBox;
		    this.qsConfigTextarea = configTextarea;
		};
		
		// 设置窗口是否处于显示状态
		this.isSettingBoxVisual = function(){
			return this.qsSettingBox.style.display == 'block';
		};
		
		// 显示设置窗口
		this.showSettingBox = function(){
		    ensureQuickSearchAlive();
		
		    if (this.isSettingBoxVisual()) {
		        return;
		    }
		
		    var confStr = JSON.stringify(conf, null, 4);
		    this.qsConfigTextarea.value = confStr;
		    this.qsSettingBox.style.setProperty('display', 'block', 'important');
		};
		
		// 隐藏设置窗口
		this.hideSettingBox = function() {
		    this.qsSettingBox.style.setProperty('display', 'none', 'important');
		};
	}

	/**
	 * 快搜
	 */
	function QuickSearch(commonTools, conf){
		//
		// 主窗口参数,
		//
		this.qsBackgroundLayer = null;
		this.qsMainBox = null;
		this.qsSearchInput = null;
		this.qsInputClearBtn = null;
		
		//
		// 搜索建议
		//
		this.qsSuggestionsLayer = null;
		this.rawInputQuery = null;           // 输入框中的原始查询
		this.multiEngineSuggestions = [];    // 多个搜索引擎的建议, 每个一个子数组
		this.suggestionCount = 0;            // 多个搜索引擎的实际建议的总数
		this.selectedSuggestionIndex = -1;   // 用户选中的搜索建议项对应的index
		this.maxSuggestionCount = 5;         // 最多建议个数
		this.qsSuggestionItems = [];         // 快搜搜索建议所有item元素(不一定都显示)
		
		// 快搜主窗口背景层
		//
		// 随快搜主窗口一同显示/隐藏, 铺满整个可视窗口. 其作用主要是:
		// 1. 想要实现点击快搜主窗口外面就隐藏快搜主窗口, 但如果点击target是页面中的cross-domain iframe的话,
		//    当前window就不能捕获到该iframe的click事件, 所以覆盖一层作为以便捕获点击事件.
		// 2. 也可以做背景虚化/遮罩效果.
		this.createMainBox=function(){
			
			const self = this;
			
		    const backgroundLayer = document.createElement('div');
		    backgroundLayer.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-background-layer';
		    backgroundLayer.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-background-layer';
		    backgroundLayer.style.setProperty('display', 'none', 'important');
			
			const backgroundMascot = document.createElement('div');
			backgroundMascot.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-background-mascot';
			
			const mascot = document.createElement('img');
			mascot.src='data:image/gif;base64,R0lGODlhaAFoAfd8AGlpaU1NTe3t7ejo6EVFRUlJSVlZWVJSUmVlZeTk5FVVVeDg4F1dXd7e3j09PUFBQdzc3Nra2ubm5uLi4tDQ0MrKytbW1sjIyM3NzTU1NcTExNjY2DAwMM7Ozra2tsbGxrS0tCkpKbi4uC0tLSUlJcDAwDk5OdLS0rq6usLCwiEhIdTU1LGxsY6OjhwcHBgYGKCgoBUVFaysrJ6enqioq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nDCAAOAHoxkqSIX4dMWEARfWlcYLnSwginMQAsrLSAugBBmGACr7vA6XArPJisX/dAZEIJHCxr2cKZsFOQcGsAar9KnwlHPmG3AlAHoGCQSrVAZCIJEBwLvxC21qAAXp2wRQALqMJAEmWl6y27/QZgOJmAQAsFj3i64/kLIKjLkyQLk+p0/fJJ32lroVzGjESKq0mXBjlwUs+sFmZgFuu1umelE0FmvUhsJm9gbgyEkvwASQuE/7OAe4JMNmxsALqkhxVZqU6MNd9r2h6l2ohbAlYMRMBgcmeGA9CV6BWZJOfGIeIL2xBgM8mIUFd8UK9r8FGVA5PFxueYJgXF1kAAQNGKoaEIkJUIBOlcbvJwQNvISzuHmxBgB8xIZqULrbS8cFVVw3GQAP64wIC08v/0ACI/BcjmxPVMBjFHC5PlwGpaigIcCeC2kGAGmA8JQBTICaH7wCRKDF9gYE7CuSAuFPGujJMfAE/2m+FiCfrVxeMGAGqlwQYGABMtACAHAAD8ABKuACL1DMxaygk6QEKMC5SJUAFZADM1AD0iwERyCGm1hbbWADAVDLTZB51ZvLZogGAjDO5Nx7NoBHAQCWwMQBqLQCblC2CdAAK/YBNwAERKAECuAAdhVduLtWAyAC4/RLI9BN4BwSZwAClAtjKpABpWQCwhxatRyAa5ucFRAEUOAAm2qQWSACaVDQoGgDCe3JngxyDEYE6cxafgUC3+XRLoEBQ6AAIxDR5DWERb+4BUXQAjgdBDbABGQGsAwQojDmAMPE0jpRBhuwAwDgAMcYTzZJAgzNZwagBUMAAyxQAQ2AnghBiHMQBSAFeROlAgUwBBRA1EYhzvEsAX+MEV9AUjVHaqYcAw6wBDhwAmhA1nqBltN7wtDUAKTao2Vs13TBAtEIdJUZSVUA2IPhAQa5kbl0BhXABIm4BIg9GAMQggttAiZAfIY92Yehx9GlAjbA2YhBgKzFAS3QZqKNGBMwBUrN1C7wUikwBnAUEAA7';
			const letTip = document.createElement("span");
			letTip.textContent = commonTools.getPlatform()=="mac" ? '快速敲击2次Control键 - 唤起' : "快速敲击2次Ctrl键 - 唤起";
			
			backgroundMascot.appendChild(mascot);
			backgroundMascot.appendChild(letTip);
			
			backgroundLayer.appendChild(backgroundMascot);
		    document.body.appendChild(backgroundLayer);
		
		    //快搜主窗口container
		    const mainBox = document.createElement('div');
		    mainBox.id = 'qs-mainbox';
		    mainBox.className = 'qs-mainbox';
		    mainBox.style.setProperty('display', 'none', 'important');
		    document.body.appendChild(mainBox);
		
		    //整个搜索顶部搜索区域
			const searchOuterBox = document.createElement('div');
			searchOuterBox.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-search-outer-box';
			searchOuterBox.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-search-outer-box';
			
			const searchBox = document.createElement('div');
			searchBox.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-search-box';
			searchBox.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-search-box';
			
			const platformIcon = document.createElement('div');
			platformIcon.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-search-box-platform-icon';
			platformIcon.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-search-box-platform-icon';
			platformIcon.style.opacity = 1;
			if(conf.defaultEngine){
				platformIcon.style.backgroundImage='url('+loadingIcon(conf.defaultEngine.icon)+')';
			}
			
			const switchSearchEngines = document.createElement('div');
			switchSearchEngines.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-switch-search-engines-box';
			switchSearchEngines.style.setProperty('display', 'none', 'important');
			const searchEngineItems = document.createElement('ul');
			searchEngineItems.className='qs-r025kcjix9vmk1dx2vdxcq45-main-switch-search-engines-items';
			switchSearchEngines.appendChild(searchEngineItems);
			
			const searchInput = document.createElement('input');
			searchInput.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-search-input';
			searchInput.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-search-input';
			searchInput.autocomplete = "off";
			if (conf.showPlaceholder) {
			    searchInput.placeholder = `输入关键词,回车开始搜索...`;
			}
			
			const inputClearBtn = document.createElement('div');
			inputClearBtn.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-search-box-clear-btn';
			inputClearBtn.title = 'Clear input content';
			const clearImage = document.createElement('img');
			clearImage.src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAf9JREFUWEe1lzGvgjAQx+ng0OTpzhsYX2Qy0be7uvA19DPJJ2H1A0DihHF00F1fwsDAyzWUFGiv14osGtre/e7fu/ZggcNzuVzmTdOEypJ5+/8Fv1VV/cHver2+U80yysSiKL4556pj67Kqqh4UEBTAx/GQzAZiBCjL8icIAimxNWLLhFccx1fdnBGAss9TOe/8Msauy+VS5It8RgBlWW7eDRdZP1KiBzCx7CaOHkQHMEXCUZVTE7MD+LD0I7Y4jnN4KQCw6M/n8+Z2ux1ns1kehmG6Wq3EQtMj58N4FEUH03ypggDAoj+dTvvn87mXDjGjqnMbAIyDCoyy91mWHeu67qpDBzF0DortdrsDphaUJQkAjGAQPs5bsBdzKT0dBBiCHJGRUiJXVHED0CmhSuzoHJYKAOeTb6gEWPJwLti9AIZ7Tsl4UzI65QAY0TmnlKgBwC0HdNkOhm0lipQiHQArNco5oYOA05C19z80H6Tj1ZRwPhACwHYUuxwyQ4gkSX6xwMRRDBMolxG11FSIxWKRbrfb1CQ/NK2k6xiMcs5zk7GhAwmBXVy969imAiajz5i2IWlzYcpO2MSmb8nkbJfLySd6Kb1ca2rL0bL0cSwuHsYe1rb8Q0rQP0zU6Cjdkk0N70+zd0Fsjo05gEUEisA45/yrndf7PId3un3GbP4D4KyAlD6sT3UAAAAASUVORK5CYII=';
			clearImage.style.width='100%';
			inputClearBtn.appendChild(clearImage);
			
			
			searchBox.appendChild(platformIcon);
			searchBox.appendChild(searchInput);
			searchBox.appendChild(inputClearBtn);
			
			searchOuterBox.appendChild(searchBox);
			searchOuterBox.appendChild(switchSearchEngines);
			
			mainBox.appendChild(searchOuterBox);
			
			//生成默认搜索引擎选择项
			if (conf.classifiedEngines) {
				conf.classifiedEngines.find((obj) => obj.ident=='search-engines').engines.forEach((engine, index) => {
					const li = document.createElement('li');
					const icon = document.createElement('img');
					icon.src = loadingIcon(engine.icon);
					const span = document.createElement('span');
					span.textContent = engine.name
					li.appendChild(icon);
					li.appendChild(span);
					li.addEventListener('click',(e)=>{
						platformIcon.style.backgroundImage='url('+loadingIcon(engine.icon)+')';
						conf.defaultEngine = engine;
						GM_setValue(STORAGE_KEY.conf, conf);
					}, false);
					searchEngineItems.appendChild(li);
				});
			}
		
			//切换默认搜索引擎
			const showOrHideSwitchSearchEngines=()=>{
				if(switchSearchEngines.style.display.indexOf('none')!=-1){
					switchSearchEngines.style.setProperty('display', 'block', 'important');
				}else{
					switchSearchEngines.style.setProperty('display', 'none', 'important');
				}
			}
			platformIcon.addEventListener('click', (e)=>{
				showOrHideSwitchSearchEngines();
			});
			
			//搜索框事件监听
			searchInput.addEventListener('keydown', (e)=> {
			    if (e.keyCode == 13) {  // 回车键
			        openEngineOnClickMainBox(conf.defaultEngine, e);
			    }
			},false);
			searchInput.addEventListener('focus',(e)=>{
			  searchBox.style.setProperty('border-color', '#4E71F2', 'important');
			});
			searchInput.addEventListener('blur', (e)=>{
			  searchBox.style.setProperty('border-color', '#C4C7CE', 'important');
			});
			
			//清除input内容按钮
			inputClearBtn.addEventListener('click',()=>{
				searchInput.value='';
				this.hideInputClearBtn();
			});
		
		    // 常用搜索引擎
		    if (conf.showFrequentEngines) {
		        var frequentBox = document.createElement('div');
		        frequentBox.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-frequent-box';
		        frequentBox.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-frequent-box';
		        mainBox.appendChild(frequentBox);
		        conf.frequentEngines.forEach((engine, index) => {
		            if (!engine.enable) return; // 此处return搭配forEach, 请勿改为其他形式循环
		            var icon = document.createElement('img');
		            icon.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-frequent-icon-' + index;
		            icon.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-frequent-icon';
		            icon.src = loadingIcon(engine.icon);
		            icon.addEventListener('click', (e)=>{
		                openEngineOnClickMainBox(engine, e);
		            }, false);
		            frequentBox.appendChild(icon);
		        });
		    }
			
			//点击外部影藏默认搜索引擎选择项框
			mainBox.addEventListener("click",(e)=>{
				if(!event.target.closest('#qs-r025kcjix9vmk1dx2vdxcq45-main-search-box-platform-icon')) {
					switchSearchEngines.style.setProperty('display', 'none', 'important');
				}
			});
		
		    // 分类搜索引擎
		    if (conf.showClassifiedEngines) {
		        var classifiedBox = document.createElement('div');
		        classifiedBox.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-box';
		        classifiedBox.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-box';
		        mainBox.appendChild(classifiedBox);
		        conf.classifiedEngines.forEach((family, fIndex) => {
		            if (!family.enable) return; // 此处return搭配forEach, 请勿改为其他形式循环
		            // 一个分类一列
		            var familyBox = document.createElement('div');
		            familyBox.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-box-' + fIndex;
		            familyBox.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-box';
		            classifiedBox.appendChild(familyBox);
		            // 分类标题
		            var familyTitle = document.createElement('div');
		            familyTitle.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-title-' + fIndex;
		            familyTitle.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-title';
		            familyTitle.textContent = family.name;
		            familyBox.appendChild(familyTitle);
		            family.engines.forEach((engine, eIndex) => {
		                if (!engine.enable) return; // 此处return搭配forEach, 请勿改为其他形式循环
		                // 搜索引擎
		                var engineBox = document.createElement('div');
		                engineBox.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine-' + fIndex + '-' + eIndex;
		                engineBox.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine';
		                engineBox.addEventListener('click', (e)=> {
		                    openEngineOnClickMainBox(engine, e);
		                }, false);
		                familyBox.appendChild(engineBox);
		                // 搜索引擎icon
		                var engineIcon = document.createElement('img');
		                engineIcon.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine-icon-' + fIndex + '-' + eIndex;
		                engineIcon.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine-icon';
		                engineIcon.src = loadingIcon(engine.icon);
		                engineBox.appendChild(engineIcon);
						
		                // 搜索引擎name
		                var engineName = document.createElement('span');
		                engineName.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine-name-' + fIndex + '-' + eIndex;
		                engineName.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-classified-family-engine-name';
		                engineName.textContent = engine.name;
		                engineBox.appendChild(engineName);
		            });
		        });
		    }
		
		    // 帮助信息
		    var helpInfoBox = document.createElement('div');
		    helpInfoBox.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-help-info-box';
		    helpInfoBox.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-help-info-box';
		    mainBox.appendChild(helpInfoBox);
			
		    // 主页
		    var homeLink = document.createElement('a');
		    homeLink.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-help-info-home';
		    homeLink.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-help-info-item';
		    homeLink.textContent = '主页';
		    homeLink.href = 'https://github.com/Xanthella/OnestepSearch';
		    homeLink.target = '_blank';
		    helpInfoBox.appendChild(homeLink);
			
		    // 帮助
		    var helpLink = document.createElement('a');
		    helpLink.id = 'qs-r025kcjix9vmk1dx2vdxcq45-main-help-info-help';
		    helpLink.className = 'qs-r025kcjix9vmk1dx2vdxcq45-main-help-info-item';
		    helpLink.textContent = '帮助';
		    helpLink.href = 'https://github.com/Xanthella/OnestepSearch/blob/main/README.md';
		    helpLink.target = '_blank';
		    helpInfoBox.appendChild(helpLink);
								
		    this.qsBackgroundLayer = backgroundLayer;
		    this.qsMainBox = mainBox;
		    this.qsSearchInput = searchInput;
			this.qsInputClearBtn = inputClearBtn;
		};
		
		// 快搜主窗口是否处于显示状态
		this.isMainBoxVisual=function(){
			return this.qsMainBox.style.display == 'block';
		};
		
		// 显示快搜主窗口.
		// 可选输入text为没有经过URI编码的明文文本, 该参数一般在iframe发来消息时使用.
		// 快搜主窗口中搜索框的文本优先级: 参数指定文本 > 网页选中文本 > 搜索框已有文本 > 当前页面搜索词
		this.showMainBox = function(text){
		
		    ensureQuickSearchAlive();
		
		    // 快搜主窗口在iframe中不显示
		    if (this.isMainBoxVisual() || window.self != window.top) {
		        return;
		    }
			const {qsSearchInput, qsBackgroundLayer, qsMainBox} = this;
		
		    // 设置搜索框内容
		    var query = text;
		    if (!query) {
		        query = commonTools.getSelection();
		    }
		    if (!query) {
		        query = qsSearchInput.value.trim();
		    }
		    if (!query) {
		        query = getUrlQuery();
		    }
			
		    qsSearchInput.value = query;
		    qsBackgroundLayer.style.setProperty('display', 'block', 'important');
		    qsMainBox.style.setProperty('display', 'block', 'important');
					
			if(query){
				this.showInputClearBtn();
				//初始化不执行输入提示词
				//this.triggerSuggestions(query);
			}
			
		    // 隐藏划词工具条
		    if (selectionToolbar.isToolbarVisual()) {
		        selectionToolbar.hideToolbar();
		    }
			
			// 选中搜索框文本
			qsSearchInput.select();
			//延迟处理这样能更加准确的获得焦点
			setTimeout(()=>{
				qsSearchInput.focus();
			},599);
		};
		
		// 隐藏快搜主窗口
		this.hideMainBox=function(){
			this.destroySuggestions();
			this.qsBackgroundLayer.style.setProperty('display', 'none', 'important');
			this.qsMainBox.style.setProperty('display', 'none', 'important');
		};
		
		this.showInputClearBtn=function(){
			this.qsInputClearBtn.style.setProperty('display','block', 'important');
		};
		
		this.hideInputClearBtn=function(){
			this.qsInputClearBtn.style.setProperty('display','none', 'important');
		};
		
		
		/**
		 * 以下是搜索建议功能
		 */
				
	    // 创建搜索建议浮层
	    this.createSuggestionsLayer=function() {
	        if (this.maxSuggestionCount == 0) {
	            return;
	        }
			
			const self = this;
			const {qsSearchInput, qsInputClearBtn} = this;
	
	        // 搜索建议浮层
	        var suggestionsLayer = document.createElement('div');
	        suggestionsLayer.id = 'qs-suggestions-layer';
	        suggestionsLayer.className = 'qs-suggestions-layer';
	        suggestionsLayer.style.setProperty('display', 'none', 'important');
	        document.body.appendChild(suggestionsLayer);
	
	        // 搜索建议条目
	        for (var i = 0; i < this.maxSuggestionCount; i++) {
	            var suggestionItem = document.createElement('div');
	            suggestionItem.id = 'qs-suggestion-item-' + i;
	            suggestionItem.className = 'qs-suggestion-item';
	            suggestionItem.addEventListener('click', function (e) {
	                qsSearchInput.value = this.textContent;
	                openEngineOnClickMainBox(conf.defaultEngine, e);
	            }, true);
	            suggestionsLayer.appendChild(suggestionItem);
	            this.qsSuggestionItems.push(suggestionItem);
	        }
	
	        // 向搜索框添加响应函数
	        qsSearchInput.addEventListener('input', function (e) {
	            var query = qsSearchInput.value.trim();
	            if (query) {
	                self.triggerSuggestions(query);
					self.showInputClearBtn();
	            } else {
	                self.destroySuggestions();
					self.hideInputClearBtn();
	            }
	        }, true);
	        qsSearchInput.addEventListener('mousedown', function (e) {
	            var query = qsSearchInput.value.trim();
	            if (query) {
	                self.triggerSuggestions(query);
	            }
	        }, true);
	        qsSearchInput.addEventListener('keydown', function (e) {
	            if (e.code == 'ArrowDown' && self.isSuggestionsLayerVisual()) {
	                e.preventDefault();
	                self.selectSuggestionItem(self.selectedSuggestionIndex + 1);
	                return;
	            }
	            if (e.code == 'ArrowUp' && self.isSuggestionsLayerVisual()) {
	                e.preventDefault();
	                self.selectSuggestionItem(self.selectedSuggestionIndex - 1);
	                return;
	            }
	            if (e.code == 'Tab' && self.isSuggestionsLayerVisual()) {
	                e.preventDefault();
	                if (e.shiftKey) {
	                    self.selectSuggestionItem(self.selectedSuggestionIndex - 1);
	                } else {
	                    self.selectSuggestionItem(self.selectedSuggestionIndex + 1);
	                }
	                return;
	            }
	        }, true);
	        this.qsSuggestionsLayer = suggestionsLayer;
	    };
		
	    // 判断搜索建议浮层是否显示
	    this.isSuggestionsLayerVisual=function() {
	        return this.qsSuggestionsLayer && this.qsSuggestionsLayer.style.display == 'block';
	    }
	
	    // 显示搜索建议浮层
	    this._showSuggestionsLayer=function() {
	        if (!this.qsSuggestionsLayer || this.isSuggestionsLayerVisual()) {
	            return;
	        }
	        var inputPos = this.qsSearchInput.parentNode.getBoundingClientRect();
	        var top = inputPos.bottom + 'px';
	        var left = inputPos.left + 'px';
	        var width = (inputPos.right - inputPos.left) + 'px';
	        this.qsSuggestionsLayer.style.setProperty('top', top, 'important');
	        this.qsSuggestionsLayer.style.setProperty('left', left, 'important');
	        this.qsSuggestionsLayer.style.setProperty('width', width, 'important');
			this.qsSuggestionsLayer.style.setProperty('opacity', 1, 'important');
	        this.qsSuggestionsLayer.style.setProperty('display', 'block', 'important');
	    };
	
	    // 隐藏搜索建议浮层
	    this._hideSuggestionsLayer=function() {
	        if (this.qsSuggestionsLayer) {
	            this.qsSuggestionsLayer.style.setProperty('display', 'none', 'important');
	        }
	    };
		
	    //
	    // 请求百度搜索建议
		// 油猴脚本的GM_xmlhttpRequest可以直接跨域请求, 不受同源策略限制, 这样就不用通过jQuery来发送jsonp请求了.
	    //
	    this.requestBaiduSuggestions=function(query, index, count) {
			const self = this;
			const baiduSuggestionUrl = {
			    'http:': 'http://suggestion.baidu.com/su?wd=%s&cb=',
			    'https:': 'https://suggestion.baidu.com/su?wd=%s&cb=',
			}[window.location.protocol];
	        var url = baiduSuggestionUrl.replace('%s', encodeURIComponent(query));
			
	        GM_xmlhttpRequest({
	            method: 'GET',
	            url: url,
	            timeout: 3000,
	            onload: response => {
	                if (response.status == 200) {
	                    let responseText = response.responseText;
						responseText = responseText.slice(1, -2);
						responseText = responseText.replace(/([\w]+)\s*:/g, '"$1":');
						self.multiEngineSuggestions[index] = JSON.parse(responseText).s.slice(0, count);
						self.loadSuggestions();
	                } else {
	                    console.log(`Quick Search: Baidu Suggestions: code ${response.status}`);
	                }
	            }
	        });
	    };
		
		
		// 选中搜索建议项
		this.selectSuggestionItem=function(newSelectedIndex) {
			const {qsSearchInput, rawInputQuery, qsSuggestionItems, suggestionCount} = this;
			
			if (qsSuggestionItems[this.selectedSuggestionIndex]) {
				qsSuggestionItems[this.selectedSuggestionIndex].className = 'qs-suggestion-item';
			}
			this.selectedSuggestionIndex = newSelectedIndex;
			this.selectedSuggestionIndex = this.selectedSuggestionIndex < -1 ? suggestionCount - 1 : this.selectedSuggestionIndex;
			this.selectedSuggestionIndex = this.selectedSuggestionIndex >= suggestionCount ? -1 : this.selectedSuggestionIndex;
			if (this.selectedSuggestionIndex == -1) {
				qsSearchInput.value = rawInputQuery;
			} else {
				qsSearchInput.value = qsSuggestionItems[this.selectedSuggestionIndex].textContent;
				qsSuggestionItems[this.selectedSuggestionIndex].className = 'qs-suggestion-item-selected';
			}
		};
		
	    // 触发搜索建议
	    this.triggerSuggestions=function(query) {
	        this.rawInputQuery = query;
	        if (this.selectedSuggestionIndex != -1) {
	            this.selectSuggestionItem(-1);
	        }
			this.requestBaiduSuggestions(query, 0, 5);
	    };
		
	    // 装载搜索建议
	    this.loadSuggestions=function(){
	        // 由于装载是异步延迟的, 若用户已经删光了输入框内容, 则不显示搜索建议
			const {qsSearchInput, multiEngineSuggestions, qsSuggestionItems} = this;
	        if (!qsSearchInput.value.trim()) {
	            this.destroySuggestions();
	            return;
	        }
			
	        // 多个搜索引擎的建议合并并去重
	        var allSuggestions = multiEngineSuggestions.flat(1).filter((x, i, a) => a.indexOf(x) == i);
	        this.suggestionCount = allSuggestions.length;
	        allSuggestions.forEach((suggestion, i) => {
	            qsSuggestionItems[i].textContent = suggestion;
	            qsSuggestionItems[i].style.setProperty('display', 'block', 'important');
	        });
	        for (var i = allSuggestions.length; i < qsSuggestionItems.length; i++) {
	            qsSuggestionItems[i].style.setProperty('display', 'none', 'important');
	        }
	        if (!this.isSuggestionsLayerVisual()) {
	            this._showSuggestionsLayer();
	        }
	    };
		
		// 销毁搜索建议
		this.destroySuggestions=function() {
			this._hideSuggestionsLayer();
			this.rawInputQuery = null;
			this.multiEngineSuggestions = [];
			this.suggestionCount = 0;
			this.selectedSuggestionIndex = -1;
		}
	}

	
	/**
	 * 划词工具条对象
	 * @param {*} conf 
	 */
	function SelectionToolbar(commonTools, conf){
		this.toolbar = null;
		
		this.createToolbar = function(){
			
		    // 工具条container
		    var toolbar = document.createElement('div');
		    toolbar.id = 'qs-toolbar';
		    toolbar.className = 'qs-toolbar';
		    toolbar.style.setProperty('display', 'none', 'important');
		    document.body.appendChild(toolbar);
		
		    // 常用搜索引擎按钮
		    conf.frequentEngines.forEach((engine, index) => {
		        if (!engine.enable) return; // 此处return搭配forEach, 请勿改为其他形式循环
		        var icon = document.createElement('img');
		        icon.id = 'qs-toolbar-icon-' + index;
		        icon.className = 'qs-toolbar-icon';
		        icon.src = loadingIcon(engine.icon);
		        icon.addEventListener('click', function (e) {
		            openEngineOnClickToolbar(engine, e);
		        }, false);
		        toolbar.appendChild(icon);
		    });
		
		    // 直达网址按钮
		    var icon = document.createElement('img');
		    icon.id = 'qs-toolbar-icon-url';
		    icon.className = 'qs-toolbar-icon';
		    icon.src = 'data:image/x-icon;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFxcXABcXFwAXFxcAFxcXE1cXFzIXFxc81xcXN1cXFx0XFxcCVxcXABcXFwAXFxcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABcXFwAXFxcAFxcXABcXFxXXFxc51xcXMpcXFyLXFxcsVxcXPFcXFyHXFxcCFxcXABcXFwAXFxcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXFxcAFxcXABcXFwAXFxcWFxcXOxcXFytXFxcGlxcXABcXFwIX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{
		        openUrl(getUrl().url, e);
		    }, false);
		    toolbar.appendChild(icon);
		
		    // 更多按钮
		    var icon = document.createElement('img');
		    icon.id = 'qs-toolbar-icon-more';
		    icon.className = 'qs-toolbar-icon';
		    icon.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAABYmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgIHRpZmY6T3JpZW50YXRpb249IjYiLz4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz7UGE7IAAACClBMVEX///9VYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBVYIBzg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79zg79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iEgaCRKqjbLtXLgAQGhlw0sJH8Zz6DPIP+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==';
		    icon.addEventListener('click', function (e) {
		        quickSearch.showMainBox();
		        selectionToolbar.hideToolbar();
		    }, false);
		    toolbar.appendChild(icon);
			this.toolbar = toolbar;
		};
		// 划词工具条是否处于显示状态
		this.isToolbarVisual = function(){
		    return this.toolbar && this.toolbar.style.display == 'block';
		};
		
		this.showToolbar = function(event){
			
			ensureQuickSearchAlive();
		
			if (this.isToolbarVisual()) {
				return;
			}
			const toolbar = this.toolbar;
		
			toolbar.style.setProperty('top', '-10000px', 'important');
			toolbar.style.setProperty('left', '-10000px', 'important');
			toolbar.style.setProperty('display', 'block', 'important');
		
			var toolbarClientRect = toolbar.getBoundingClientRect();
			var toolbarWidth = toolbarClientRect.right - toolbarClientRect.left;
			var toolbarHeight = toolbarClientRect.bottom - toolbarClientRect.top;
		
			var toolbarNewTop = event.pageY + 15;
			var toolbarNewLeft = event.pageX - (toolbarWidth / 2);
			var windowPos = commonTools.getWindowPosition();
			if (toolbarNewTop + toolbarHeight > windowPos.bottom) {
				toolbarNewTop = event.pageY - toolbarHeight - 15;
			}
			if (toolbarNewLeft < windowPos.left) {
				toolbarNewLeft = windowPos.left;
			} else if (toolbarNewLeft + toolbarWidth > windowPos.right) {
				toolbarNewLeft = windowPos.right - toolbarWidth;
			}
		
			toolbar.style.setProperty('top', toolbarNewTop + 'px', 'important');
			toolbar.style.setProperty('left', toolbarNewLeft + 'px', 'important');
		};
		
		// 隐藏划词工具条
		this.hideToolbar = function(){
			if (this.toolbar) {
			    this.toolbar.style.setProperty('display', 'none', 'important');
			}
		}
	}
	
	
	/**
	 * @param {*} commonTools 
	 * 右下提示tips
	 */
	function InfoTips(commonTools){
		this.qsInfoTipsLayer = null;
		this.idOfSettimeout = null;
		
		// 创建信息提示浮层
		this.createInfoTipsLayer = function(){
			var infoTipsLayer = document.createElement('div');
			infoTipsLayer.id = 'qs-info-tips-layer';
			infoTipsLayer.className = 'qs-info-tips-layer';
			infoTipsLayer.style.setProperty('display', 'none', 'important');
			document.body.appendChild(infoTipsLayer);
			
			this.qsInfoTipsLayer = infoTipsLayer;
		};
		
		// 显示信息提示浮层
		this.showInfoTipsLayer = function(info, delay=2000){
			this.qsInfoTipsLayer.textContent = 'Onestep: ' + info;
			this.qsInfoTipsLayer.style.setProperty('display', 'block', 'important');
			if (this.idOfSettimeout) {
				clearTimeout(this.idOfSettimeout);
			}
			this.idOfSettimeout = setTimeout(()=>{
				this.qsInfoTipsLayer.style.setProperty('display', 'none', 'important');
			}, delay);
			
		}
	}
	
	// 初始化需要的对象 ps:只初始化一次
	const commonTools = new CommonTools(conf);
	const infoTips = new InfoTips(commonTools);
	const selectionToolbar = new SelectionToolbar(commonTools, conf);
	const setting = new Setting(commonTools, conf);
	const quickSearch = new QuickSearch(commonTools, conf);
	
    // 获取当前页面匹配的 搜索引擎 及 其在同类别的搜索引擎列表中的索引 及 同类别的搜索引擎列表.
    //
    // TODO 目前只是简单地匹配域名, 待完善.
    function getMatchedEngineInfo() {
        var hostname = window.location.hostname;
        hostname = hostname.replace(/^(www\.)/, '');

        // 因为想要在循环中返回最终结果, 因此不能使用forEach语法
        for (var classEngines of conf.classifiedEngines) {
            for (var i = 0; i < classEngines.engines.length; i++) {
                var engine = classEngines.engines[i];
                var engineHostname = new URL(engine.url).hostname;
                engineHostname = engineHostname.replace(/^(www\.)/, '');
                if (hostname == engineHostname) {
                    return {
                        engine: engine,
                        index: i,
                        classEngines: classEngines
                    };
                }
            }
        }
        return null;
    }

    // 获取搜索引擎url中query的key
    function getUrlQueryKey(engine) {
        var params = new URL(engine.url).searchParams;
        for (var param of params) {
            if (param[1].includes('%s')) {
                return param[0];
            }
        }
        return null;
    }

    // 移除url中的domain(protocol+host)
    function removeUrlDomain(url) {
        var u = new URL(url);
        var domain = `${u.protocol}//${u.host}`;
        return url.substring(domain.length);
    }

    // 获取当前页面url中的搜索词.
    // 返回值为经过URI解码的明文文本.
    //
    // 如果当前页面在配置的搜索引擎列表中, 尝试从url中解析参数, 分为engine.url中含有问号(?)和不含问号(?)两种情况.
    // 如果没有解析到或者当前页面不在配置的搜索引擎列表中, 尝试获取文本(纯数字除外)在url中完整出现的input/textarea的值.
    // 如果还是没有, 则认为当前页面url中没有搜索词.
    function getUrlQuery() {
        var urlTail = removeUrlDomain(window.location.href);
        var engineInfo = getMatchedEngineInfo();
        var engine = engineInfo ? engineInfo.engine : null;

        // 尝试利用配置的搜索引擎信息从url中获取搜索词
        if (engine && engine.url.includes('%s')) {
            if (engine.url.includes('?')) {    // engine.url中含有问号(?)
                var queryKey = getUrlQueryKey(engine);
                var params = new URLSearchParams(window.location.search);
                var query = params.get(queryKey);
                if (query) {
                    console.log(`Quick Search: get query by URL-KV, engine is ${engine.url}`);
                    return query;   // URLSearchParams已经decode过了
                }
            } else {    // engine.url中没有问号(?)
                var parts = removeUrlDomain(engine.url).split('%s');
                if (parts.length == 2 && urlTail.startsWith(parts[0]) && urlTail.endsWith(parts[1])) {
                    var query = urlTail.substring(parts[0].length, urlTail.length - parts[1].length);
                    var index = query.search(/[\/\?\=\&\#]/);   // 是否含有 / ? = & #
                    if (index != -1) {
                        query = query.substring(0, index);
                    }
                    if (query) {
                        console.log(`Quick Search: get query by URL-PART, engine is ${engine.url}`);
                        return decodeURIComponent(query);
                    }
                }
            }
        }

        // 尝试获取文本(纯数字除外)在url中完整出现的input/textarea的值
        var eles = document.querySelectorAll('input, textarea');
        for (var ele of eles) {
            if (commonTools.isVisualOnPage(ele) && !quickSearch.qsMainBox.contains(ele) && !setting.qsSettingBox.contains(ele)) {
                var eleValue = ele.value.trim();
                if (eleValue && !/^\d+$/.test(eleValue)) {
                    var encodedEleValue = encodeURIComponent(eleValue);
                    var index = urlTail.indexOf(encodedEleValue);
                    if (index != -1) {
                        var leftChar = urlTail[index - 1];
                        var rightChar = urlTail[index + encodedEleValue.length];
                        if ((!leftChar || /[\/\=\#]/.test(leftChar))
                            && (!rightChar || /[\/\?\&\#]/.test(rightChar))) {
                            console.log(`Quick Search: get query by ${ele.tagName}[id='${ele.id}'], engine is ${engine ? engine.url : 'NULL'}`);
                            return eleValue;
                        }
                    }
                }
            }
        }

        console.log(`Quick Search: query is NULL, engine is ${engine ? engine.url : 'NULL'}`);
        return null;
    }

    // 判断是否允许工具条
    function isAllowToolbar(event) {
        var target = event.target;
        if (!conf.showToolbar || qsPageLock) {
            return false;
        }
        if (!conf.enableOnInput && (target.tagName == 'INPUT' || target.tagName == 'TEXTAREA')) {
            return false;
        }
        if (quickSearch.qsMainBox && quickSearch.qsMainBox.contains(target)
            || setting.qsSettingBox && setting.qsSettingBox.contains(target)) {
            return false;
        }
        return true;
    }

    // 判断是否允许响应当前按键
    // 默认只响应: 单字符的Escape / Alt+单字符 / Cmd/Ctrl+Alt+单字符
    function isAllowHotkey(event) {
        var target = event.target;
        if (!qsPageLock && event.code == 'Escape') {
            return true;
        }
        if (!event.altKey) {
            return false;
        }
        if (event.shiftKey) {
            return false;
        }
        if (qsPageLock && event.code != 'KeyL') {
            return false;
        }
        if ((target.tagName == 'INPUT' || target.tagName == 'TEXTAREA') && !conf.enableOnInput) {
            return false;
        }
        if (setting.qsSettingBox && setting.qsSettingBox.contains(target)) {
            return false;
        }
        return true;
    }

    // 获取搜索引擎主页url
    function getEngineHome(engine) {
        if (engine.home) {
            return engine.home;
        } else {
            var url = new URL(engine.url);
            return `${url.protocol}//${url.hostname}/`;
        }
    }

    // 获取直达的网址. 网址优先级: 搜索框已有网址(若快搜主窗口可见) > 网页中选中网址
    // 返回 网址 及 网址来源
    function getUrl() {
        var url, source;

        if (quickSearch.isMainBoxVisual()) {
            url = quickSearch.qsSearchInput.value.trim();
            source = 'mainbox';
        } else {
            url = commonTools.getSelection();
            source = 'selection';
        }

        // 补全网址
        if (url && !url.includes('://')) {
            var dotCount = (url.match(/\./g) || []).length;
            if (dotCount == 0) {
                url = 'www.' + url + '.com';
            } else if (dotCount == 1) {
                url = 'www.' + url;
            }
            url = 'http://' + url;
        }

        if (!url) {
            source = null;
        }
        return {
            url: url,
            source: source
        };
    }

    // 获取搜索词. 文本优先级: 搜索框已有文本(若快搜主窗口可见) > 网页中选中文本 > 当前页面搜索词
    // 返回 搜索词 及 搜索词来源
    function getQuery() {
        var query, source;

        if (quickSearch.isMainBoxVisual()) {
            query = quickSearch.qsSearchInput.value.trim();
            source = 'mainbox';
        } else {
            query = commonTools.getSelection();
            source = 'selection';
            if (!query) {
                query = getUrlQuery();
                source = 'url';
            }
        }

        if (!query) {
            source = null;
        }
        return {
            query: query,
            source: source
        };
    }

    // 打开url.
    // 当按下Cmd(Mac系统)/Ctrl(Windows/Linux系统), 则后台打开url.
    function openUrl(url, event) {
        // console.log(`Quick Search: open url, url is ${url}`);
        if (!url) return;
        if (event.metaKey || event.ctrlKey) {
            GM_openInTab(url, true);
        } else {
            GM_openInTab(url, false);
        }
    }

    // 打开engine搜索结果或engine主页.
    function openEngine(engine, query, event) {
        // console.log(`Quick Search: open engine, engine is ${engine.url}, query is ${query}`);
        if (!engine) return;
        if (query) {
            var url = engine.url.replace('%s', encodeURIComponent(query));
            openUrl(url, event);
        } else {
            openUrl(getEngineHome(engine), event);
        }
    }

    // 快捷键搜索.
    // 同样, 当query为空时打开引擎主页, 否则正常搜索.
    function openEngineOnKey(engine, query, event) {
        openEngine(engine, query, event);
    }

    // 点击搜索引擎.
    // 当按下Alt, 则忽略查询词打开引擎主页, 否则正常搜索.
    function openEngineOnClick(engine, query, event) {
        if (event.altKey) {
            openEngine(engine, null, event);
        } else {
            openEngine(engine, query, event);
        }
    }

    // 点击划词工具条搜索引擎.
    function openEngineOnClickToolbar(engine, event) {
        var query = commonTools.getSelection();
        openEngineOnClick(engine, query, event);
    }

    // 点击快搜主窗口搜索引擎.
    function openEngineOnClickMainBox(engine, event) {
        var query = quickSearch.qsSearchInput.value.trim();
        openEngineOnClick(engine, query, event);
    }

    // 切换快搜page lock状态
    function toggleQuickSearchPageLock() {
        qsPageLock = qsPageLock ? false : true;
        if (qsPageLock) {
            selectionToolbar.hideToolbar();
            quickSearch.hideMainBox();
            infoTips.showInfoTipsLayer('已禁用(🔒)');
        } else {
            infoTips.showInfoTipsLayer('已启用(🚀)');
        }
    }

    ///////////////////////////////////////////////////////////////////
    // 元素创建 与 元素事件响应
    ///////////////////////////////////////////////////////////////////

    // 初始化热键映射表
    function initHotkeyEngineMapping() {
        conf.hotkeyEngines.forEach(engine => {
            if (!engine.enable) return; // 此处return搭配forEach, 请勿改为其他形式循环
            engine.hotkeys.forEach(key => {
                hotkey2Engine[key] = engine;
            });
        });
    }

    //
    // 创建以上所有东东
    //

    function initQuickSearch() {
        commonTools.loadSheet(defaultSheet,"qs-css");
        initHotkeyEngineMapping();
        if (conf.showToolbar) {
            selectionToolbar.createToolbar();
        }
		
        quickSearch.createMainBox();
        setting.createSettingBox();
        infoTips.createInfoTipsLayer();
		quickSearch.createSuggestionsLayer();
    }

    // 百度等网页会在不刷新页面的情况下改变网页内容, 导致quick search除了js脚本之外的东东全部没了.
    // 此函数用于确保quick search处于可用状态, 需在toolbar或mainbox等窗口每次显示时调用.
    function ensureQuickSearchAlive() {
        var css = document.querySelector("#qs-css");
        var mainbox = document.querySelector("#qs-mainbox");
        if (!css || !mainbox) {
            initQuickSearch();
        }
    }

    initQuickSearch();

    ///////////////////////////////////////////////////////////////////
    // 全局事件响应
    //
    // 我们将全局事件绑定在捕获阶段执行, 避免事件响应被网页自带的脚本拦截掉.
    ///////////////////////////////////////////////////////////////////

    //
    // top window和iframe共用的事件处理逻辑
    //

    window.addEventListener('mousedown', function (e) {
        var target = e.target;
        // 隐藏工具条
        if (selectionToolbar.isToolbarVisual() && !selectionToolbar.toolbar.contains(target)) {
            selectionToolbar.hideToolbar();
        }
    }, true);

    window.addEventListener('mouseup', function (e) {
        var target = e.target;
        // 显示/隐藏工具条
        if (isAllowToolbar(e)) {
            var selection = commonTools.getSelection();
            if (selection && !selectionToolbar.isToolbarVisual()) {
                selectionToolbar.showToolbar(e);
            }
            if (!selection && selectionToolbar.isToolbarVisual()) {
                selectionToolbar.hideToolbar();
            }
        }

        // 划词时自动复制文本到剪贴板
        if (conf.autoCopyToClipboard
            && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA'
            && !quickSearch.qsMainBox.contains(target) && !setting.qsSettingBox.contains(target)) {
            var selection = commonTools.getSelection();
            if (selection) {
                GM_setClipboard(selection, 'text/plain');
            }
        }
    }, true);

    // 有时候selectionchange发生在mouseup之后, 导致没有selection时toolbar依然显示.
    // 故再添加selectionchange事件以隐藏toolbar.
    // 由于在鼠标划词拖动过程中会不停触发selectionchange事件, 所以最好不要以此事件来显示/调整toolbar位置.
    document.addEventListener('selectionchange', function (e) {
        var selection = commonTools.getSelection();
        if (!selection && selectionToolbar.isToolbarVisual()) {
            selectionToolbar.hideToolbar();
        }
    }, true);

    //
    // 只在top window中使用的事件处理逻辑
	// 只在顶层窗口执行该方法
    //
    if (window.self == window.top) {
		//隐藏窗口
        window.addEventListener('mousedown', function (e) {
            var target = e.target;
            // 隐藏快搜主窗口
            if (quickSearch.isMainBoxVisual()
                && !setting.isSettingBoxVisual()
                && !quickSearch.qsMainBox.contains(target)
                && !quickSearch.qsSuggestionsLayer.contains(target)) {
                quickSearch.hideMainBox();
            }

            // 隐藏搜索建议浮层
            if (quickSearch.isSuggestionsLayerVisual()
                && !quickSearch.qsSuggestionsLayer.contains(target)
                && !quickSearch.qsSearchInput.contains(target)) {
                quickSearch.destroySuggestions();
            }
        }, true);

		function showOrHideMainBox(){
			if (!quickSearch.isMainBoxVisual()) {
			    quickSearch.showMainBox();
			} else {
			    quickSearch.hideMainBox();
			}
		}
		
		// 双击触发
		let altPressedCount = 0;
		let timeoutId=null;
		let qsKeyComplete = false;
		window.addEventListener('keydown', function (event) {
			if(!qsPageLock && (
					(event.code==='AltLeft' || event.code==='AltRight') ||
					(event.code==='ControlLeft' || event.code==='ControlRight')
			)){
				altPressedCount ++;
				if (altPressedCount === 1) {
					timeoutId = setTimeout(() => { // 第一次按下,设置超时检测第二次按下
						altPressedCount = 0;
					}, 500);
				} else if (altPressedCount === 2) {
					if(timeoutId != null){
						clearTimeout(timeoutId);
						timeoutId = null;
					}
					altPressedCount = 0;
					event.preventDefault();
					showOrHideMainBox();
				}
			}else{
				altPressedCount = 0;
				if(timeoutId != null){
					clearTimeout(timeoutId);
					timeoutId = null;
				}
			}
		}, true);
		
		//油猴菜单触发
		GM_registerMenuCommand("打开快搜窗口",function(){
			showOrHideMainBox();
		});
	
		//组合键触发
        window.addEventListener('keydown', function (e) {
            if (!isAllowHotkey(e)) {
                return;
            }
			
			// Esc键, 隐藏快搜主窗口
            if (e.code == 'Escape') {
                if (quickSearch.isMainBoxVisual() && !setting.isSettingBoxVisual()) {
                    quickSearch.hideMainBox();
                }
                return;
            }
			
			// Alt+L键, 锁定/解锁快搜所有功能.
            if (e.code == 'KeyL') {
                e.preventDefault();
                toggleQuickSearchPageLock();
                return;
            }
			
			if (e.code == 'KeyF') {
			    e.preventDefault();
			    showOrHideMainBox();
			    return;
			}
			
			// Alt+D键, 网址直达. 网址优先级: 搜索框已有网址(若快搜主窗口可见) > 网页中选中网址
			if (e.code == 'KeyD') {
			    e.preventDefault();
			    openUrl(getUrl().url, e);
			    return;
			}
			
			// Alt+自定义快捷键搜索. 文本优先级: 搜索框已有文本(若快搜主窗口可见) > 网页中选中文本 > 当前页面搜索词
			if (hotkey2Engine[e.code]) {
			    e.preventDefault();
			    var engine = hotkey2Engine[e.code];
			    var query = getQuery();
			    openEngineOnKey(engine, query.query, e);
			    return;
			}
        }, true);
    }
	
	/**
	 * 提醒10天,每天提醒20次
	 * @param {*} commonTools 
	 */
	function OneStapRemind(commonTools){
		this.isShow=function(){
			const usedDays = GM_getValue(STORAGE_KEY.usedDays, 0);
			const tipsShowMark = GM_getValue(STORAGE_KEY.tipsShowMark, null);
			const tipsDelay = GM_getValue(STORAGE_KEY.tipsDelay, null);
			const currentDay = commonTools.dateFormat(null, "yyyy-MM-dd");
			const currentMs = (new Date()).getTime();
			
			const timesMax = 20;
			const usedDaysMax = 10;
			
			let isShow = false, day = currentDay, times=1;
			if(tipsDelay && (currentMs-tipsDelay)<1*60*1000){ //间隔时间太短不显示
				isShow = false;
			}else{
				if(usedDays >= usedDaysMax){ //提示超过10天了不显示
					isShow = false;
				}else{
					if(tipsShowMark){ //以下为正常判断
						const marks = tipsShowMark.split("@");
						day = marks[0];
						times = parseInt(marks[1]);
						if(currentDay != day){
							isShow = true;
							times = 1;
							day = currentDay;
							GM_setValue(STORAGE_KEY.usedDays, usedDaysMax+1);
						}else{
							if(times >= timesMax){
								isShow = false;
							}else{
								times += 1;
								isShow = true;
							}
						}
					}else{
						isShow = true;
					}
				}
			}
			if(isShow){
				GM_setValue(STORAGE_KEY.tipsShowMark, day+"@"+times);
				GM_setValue(STORAGE_KEY.tipsDelay, currentMs);
			}
			return isShow;
		};
		
		this.show=function(){
			if(this.isShow()){
				if(commonTools.getPlatform() == "mac"){
					infoTips.showInfoTipsLayer("【快速敲击2次Control键】可唤起快搜窗口!", 5000);
				}else{
					infoTips.showInfoTipsLayer("【快速敲击2次Ctrl键】可唤起快搜窗口!", 5000);
				}
			}
		};
	}
	
	(new OneStapRemind(commonTools)).show();
})();