Greasy Fork

all-search

在各个引擎之间跳转的顶部菜单,借鉴自searchEngineJump

目前为 2020-03-25 提交的版本。查看 最新版本

// ==UserScript==
// @name         all-search
// @version      0.1.4b
// @description  在各个引擎之间跳转的顶部菜单,借鉴自searchEngineJump
// @author       endday
// @license      GPL-2.0
// @update       2020/3/25
// @include      *
// @homepageURL  https://github.com/endday/all-search

// @require      https://cdn.jsdelivr.net/npm/vue
// @run-at       document-body

// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_addStyle

// @namespace https://github.com/endday
// ==/UserScript==
/* eslint-disable */

!function(e) {
  "use strict";
  e = e && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  function n(e, n, t, r, s, a, o, i, l, c) {
    "boolean" != typeof o && (l = i, i = o, o = !1);
    const h = "function" == typeof t ? t.options : t;
    let m;
    if (e && e.render && (h.render = e.render, h.staticRenderFns = e.staticRenderFns,
      h._compiled = !0, s && (h.functional = !0)), r && (h._scopeId = r), a ? (m = function(e) {
      (e = e || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (e = __VUE_SSR_CONTEXT__),
      n && n.call(this, l(e)), e && e._registeredComponents && e._registeredComponents.add(a);
    }, h._ssrRegister = m) : n && (m = o ? function(e) {
      n.call(this, c(e, this.$root.$options.shadowRoot));
    } : function(e) {
      n.call(this, i(e));
    }), m) if (h.functional) {
      const e = h.render;
      h.render = function(n, t) {
        return m.call(t), e(n, t);
      };
    } else {
      const e = h.beforeCreate;
      h.beforeCreate = e ? [].concat(e, m) : [ m ];
    }
    return t;
  }
  const t = "undefined" != typeof navigator && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
  function r(e) {
    return (e, n) => function(e, n) {
      const r = t ? n.media || "default" : e, o = a[r] || (a[r] = {
        ids: new Set,
        styles: []
      });
      if (!o.ids.has(e)) {
        o.ids.add(e);
        let t = n.source;
        if (n.map && (t += "\n/*# sourceURL=" + n.map.sources[0] + " */", t += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(n.map)))) + " */"),
        o.element || (o.element = document.createElement("style"), o.element.type = "text/css",
        n.media && o.element.setAttribute("media", n.media), void 0 === s && (s = document.head || document.getElementsByTagName("head")[0]),
          s.appendChild(o.element)), "styleSheet" in o.element) o.styles.push(t), o.element.styleSheet.cssText = o.styles.filter(Boolean).join("\n"); else {
          const e = o.ids.size - 1, n = document.createTextNode(t), r = o.element.childNodes;
          r[e] && o.element.removeChild(r[e]), r.length ? o.element.insertBefore(n, r[e]) : o.element.appendChild(n);
        }
      }
    }(e, n);
  }
  let s;
  const a = {};
  const o = {
    name: "logo"
  };
  var i = function() {
    var e = this.$createElement;
    this._self._c;
    return this._m(0);
  };
  i._withStripped = !0;
  const l = n({
    render: i,
    staticRenderFns: [ function() {
      var e = this.$createElement, n = this._self._c || e;
      return n("a", {
        staticClass: "as-title",
        attrs: {
          href: "https://github.com/endday/all-search",
          target: "_blank"
        }
      }, [ n("p", {
        staticClass: "as-title-inner"
      }, [ this._v("\n    All Search\n  ") ]) ]);
    } ]
  }, (function(e) {
    e && e("data-v-5c453d41_0", {
      source: ".as-title {\n  text-decoration: none;\n}\n.as-title .as-title-inner {\n  font-size: 18px;\n  width: 120px;\n  height: 30px;\n  line-height: 30px;\n  font-weight: 600;\n  color: #1990fc;\n  margin: 0;\n  text-align: center;\n  cursor: pointer;\n}\n\n/*# sourceMappingURL=logo.vue.map */",
      map: {
        version: 3,
        sources: [ "E:\\project\\all-search\\src\\components\\logo.vue", "logo.vue" ],
        names: [],
        mappings: "AAoBA;EACA,qBAAA;ACnBA;ADqBA;EACA,eAAA;EACA,YAAA;EACA,YAAA;EACA,iBAAA;EACA,gBAAA;EACA,cAAA;EACA,SAAA;EACA,kBAAA;EACA,eAAA;ACnBA;;AAEA,mCAAmC",
        file: "logo.vue",
        sourcesContent: [ '<template>\r\n  <a class="as-title"\r\n     href="https://github.com/endday/all-search"\r\n     target="_blank"\r\n  >\r\n    <p class="as-title-inner">\r\n      All Search\r\n    </p>\r\n  </a>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n  name: \'logo\'\r\n}\r\n<\/script>\r\n\r\n<style lang="scss">\r\n  @import "../assets/common";\r\n\r\n  .as-title {\r\n    text-decoration: none;\r\n\r\n    .as-title-inner {\r\n      font-size: 18px;\r\n      width: 120px;\r\n      height: $height;\r\n      line-height: $height;\r\n      font-weight: 600;\r\n      color: #1990fc;\r\n      margin: 0;\r\n      text-align: center;\r\n      cursor: pointer;\r\n    }\r\n  }\r\n</style>\r\n', ".as-title {\n  text-decoration: none;\n}\n.as-title .as-title-inner {\n  font-size: 18px;\n  width: 120px;\n  height: 30px;\n  line-height: 30px;\n  font-weight: 600;\n  color: #1990fc;\n  margin: 0;\n  text-align: center;\n  cursor: pointer;\n}\n\n/*# sourceMappingURL=logo.vue.map */" ]
      },
      media: void 0
    });
  }), o, void 0, !1, void 0, !1, r, void 0, void 0);
  var c = [ {
    nameZh: "默认",
    name: "common",
    list: [ {
      name: "baidu",
      nameZh: "百度",
      url: "https://www.baidu.com/s?wd=%s&ie=utf-8"
    }, {
      name: "google",
      nameZh: "谷歌",
      url: "https://www.google.com/search?q=%s&ie=utf-8&oe=utf-8"
    }, {
      name: "bing",
      nameZh: "必应",
      url: "https://cn.bing.com/search?q=%s"
    }, {
      name: "baidu",
      nameZh: "百度翻译",
      url: "http://fanyi.baidu.com/#auto/zh/%s"
    }, {
      name: "zhihu",
      nameZh: "知乎",
      url: "http://www.zhihu.com/search?q=%s"
    }, {
      name: "stackoverflow",
      nameZh: "stackoverflow",
      url: "https://stackoverflow.com/search?q=%s"
    }, {
      name: "juejin",
      nameZh: "掘金",
      url: "https://juejin.im/search?query=%s&type=all"
    }, {
      name: "GitHub",
      nameZh: "GitHub",
      url: "https://github.com/search?utf8=✓&q=%s",
      blank: !0
    } ]
  }, {
    nameZh: "搜索",
    name: "search",
    list: [ {
      name: "baidu",
      nameZh: "百度",
      url: "https://www.baidu.com/s?wd=%s&ie=utf-8"
    }, {
      name: "google",
      nameZh: "谷歌",
      url: "https://www.google.com/search?q=%s&ie=utf-8&oe=utf-8"
    }, {
      name: "bing",
      nameZh: "必应",
      url: "https://cn.bing.com/search?q=%s"
    }, {
      name: "DDG",
      nameZh: "DDG",
      url: "https://duckduckgo.com/?q=%s",
      disable: !0
    }, {
      name: "360",
      nameZh: "360",
      url: "https://www.so.com/s?ie=utf-8&q=%s"
    }, {
      name: "yahoo",
      nameZh: "雅虎",
      url: "https://search.yahoo.com/search;?p=%s",
      disable: !0
    }, {
      name: "sogou",
      nameZh: "搜狗",
      url: "https://www.sogou.com/web?query=%s",
      disable: !1
    }, {
      name: "startpage",
      nameZh: "Startpage",
      url: "https://www.startpage.com/do/asearch$post$query",
      disable: !0
    }, {
      name: "mijisou",
      nameZh: "秘迹搜索",
      url: "https://mijisou.com/?q=%s&category_general=on&time_range=&language=zh-CN"
    }, {
      name: "Yandex",
      nameZh: "Yandex",
      url: "https://yandex.com/search/?text=%s",
      disabled: !0
    } ]
  }, {
    nameZh: "翻译",
    name: "translate",
    list: [ {
      name: "google",
      nameZh: "谷歌翻译",
      url: "https://translate.google.com/?q=%s"
    }, {
      name: "baidu",
      nameZh: "百度翻译",
      url: "http://fanyi.baidu.com/#auto/zh/%s"
    }, {
      name: "youdao",
      nameZh: "有道词典",
      url: "http://dict.youdao.com/search?q=%s",
      blank: !0
    }, {
      name: "bing",
      nameZh: "必应翻译",
      url: "http://cn.bing.com/dict/search?q=%s"
    }, {
      name: "forvo",
      nameZh: "Forvo发音",
      url: "https://zh.forvo.com/search/%s",
      blank: !0
    }, {
      name: "cnki",
      nameZh: "CNKI翻译",
      url: "http://dict.cnki.net/dict_result.aspx?searchword=%s",
      disable: !0
    }, {
      name: "zdic",
      nameZh: "汉典",
      url: "http://www.zdic.net/sousuo/?q=%s",
      disable: !0
    }, {
      name: "dict",
      nameZh: "海词",
      url: "http://dict.cn/%s"
    } ]
  }, {
    nameZh: "开发者",
    name: "developer",
    list: [ {
      name: "MDN",
      nameZh: "MDN",
      url: "https://developer.mozilla.org/zh-CN/search?q=%s"
    }, {
      name: "stackoverflow",
      nameZh: "stackoverflow",
      url: "https://stackoverflow.com/search?q=%s"
    }, {
      name: "juejin",
      nameZh: "掘金",
      url: "https://juejin.im/search?query=%s&type=all"
    }, {
      name: "Can I Use",
      nameZh: "Can I Use",
      url: "http://caniuse.com/#search=%s",
      blank: !0
    }, {
      name: "GitHub",
      nameZh: "GitHub",
      url: "https://github.com/search?utf8=✓&q=%s",
      blank: !0
    }, {
      name: "w3c",
      nameZh: "w3c",
      url: "http://www.runoob.com/?s=%s"
    }, {
      name: "GreasyFork",
      nameZh: "GreasyFork",
      url: "https://greasyfork.org/zh-CN/scripts?q=%s&utf8=✓",
      blank: !0
    } ]
  }, {
    nameZh: "音乐",
    name: "music",
    list: [ {
      name: "NetEase",
      nameZh: "网易音乐",
      url: "http://music.163.com/#/search/m/?s=%s"
    }, {
      name: "1ting",
      nameZh: "一听",
      url: "http://so.1ting.com/all.do?q=%s"
    }, {
      name: "xiami",
      nameZh: "虾米音乐",
      url: "http://www.xiami.com/search?key=%s"
    }, {
      name: "yinyuetai",
      nameZh: "音悦Tai",
      url: "http://so.yinyuetai.com/?keyword=%s"
    }, {
      name: "qq",
      nameZh: "QQ音乐",
      url: "https://y.qq.com/portal/search.html#page=1&searchid=1&remoteplace=txt.yqq.top&t=song&w=%s",
      blank: !0
    }, {
      name: "baidu",
      nameZh: "百度音乐",
      url: "http://music.baidu.com/search?ie=utf-8&oe=utf-8&key=%s"
    }, {
      name: "kuwo",
      nameZh: "酷我音乐",
      url: "http://sou.kuwo.cn/ws/NSearch?type=all&key=%s",
      blank: !0
    }, {
      name: "kugou",
      nameZh: "酷狗",
      url: "http://search.5sing.kugou.com/?keyword=%s",
      blank: !0
    } ]
  }, {
    nameZh: "新闻",
    name: "news",
    list: [ {
      name: "google",
      nameZh: "谷歌中文",
      url: "https://news.google.com/search?q=%s&hl=zh-CN&gl=CN&ceid=CN:zh-Hans",
      blank: !0
    }, {
      name: "baidu",
      nameZh: "百度新闻",
      url: "http://news.baidu.com/ns?word=%s&tn=news&from=news&cl=2&rn=20&ct=1",
      blank: !0
    }, {
      name: "163-baidu",
      nameZh: "网易-百度",
      url: "https://www.baidu.com/s?wd=%s%20site%3Anews.163.com",
      blank: !0
    }, {
      name: "163-google",
      nameZh: "网易-谷歌",
      url: "https://www.google.com.hk/search?q=site:news.163.com+%s",
      blank: !0
    }, {
      name: "qq",
      nameZh: "腾讯新闻",
      url: "https://www.sogou.com/sogou?site=news.qq.com&query=%s",
      blank: !0
    }, {
      name: "ifeng",
      nameZh: "凤凰新闻",
      url: "http://search.ifeng.com/sofeng/search.action?q=%s",
      blank: !0
    }, {
      name: "CNN",
      nameZh: "CNN",
      url: "https://edition.cnn.com/search/?q=%s",
      blank: !0
    }, {
      name: "BBC",
      nameZh: "BBC",
      url: "https://www.bbc.co.uk/search?q=%s",
      blank: !0
    }, {
      name: "Economis",
      nameZh: "Economis",
      url: "https://www.google.com/search?q=site:www.economist.com%20%s",
      blank: !0
    }, {
      name: "toutiao",
      nameZh: "今日头条",
      url: "https://www.toutiao.com/search/?keyword=%E4%B8%96%E7%95%8C%E6%9D%AF",
      blank: !0
    } ]
  }, {
    nameZh: "社交",
    name: "social",
    list: [ {
      name: "zhihu",
      nameZh: "知乎",
      url: "http://www.zhihu.com/search?q=%s"
    }, {
      name: "Twitter",
      nameZh: "推特",
      url: "https://twitter.com/search/%s"
    }, {
      name: "douban",
      nameZh: "豆瓣",
      url: "http://www.douban.com/search?source=suggest&q=%s"
    }, {
      name: "tieba",
      nameZh: "百度贴吧",
      url: "http://tieba.baidu.com/f?kw=%s&ie=utf-8",
      blank: !0
    }, {
      name: "qq",
      nameZh: "腾讯微博",
      url: "http://search.t.qq.com/index.php?k=%s"
    }, {
      name: "sina",
      nameZh: "新浪微博",
      url: "http://s.weibo.com/weibo/%s"
    }, {
      name: "Facebook",
      nameZh: "脸书",
      url: "https://www.facebook.com/search/results.php?q=%s"
    }, {
      name: "weixin",
      nameZh: "微信搜索",
      url: "http://weixin.sogou.com/weixin?ie=utf8&type=2&query=%s"
    } ]
  }, {
    nameZh: "百科",
    name: "knowledge",
    list: [ {
      name: "wiki",
      nameZh: "维基",
      url: "http://zh.wikipedia.org/wiki/%s"
    }, {
      name: "baike",
      nameZh: "百度百科",
      url: "http://baike.baidu.com/search/word?pic=1&sug=1&word=%s",
      disable: !1
    }, {
      name: "wenku",
      nameZh: "百度文库",
      url: "http://wenku.baidu.com/search?word=%s&ie=utf-8"
    }, {
      name: "docin",
      nameZh: "豆丁文档",
      url: "http://www.docin.com/search.do?searchcat=2&searchType_banner=p&nkey=%s",
      disable: !0
    }, {
      name: "iask",
      nameZh: "爱问知识",
      url: "http://iask.sina.com.cn/search?searchWord=%s",
      disable: !0
    }, {
      name: "moegirl",
      nameZh: "萌娘百科",
      url: "https://zh.moegirl.org/%s",
      blank: !0
    }, {
      name: "guokr",
      nameZh: "果壳",
      url: "http://www.guokr.com/search/all/?wd=%s",
      blank: !0
    }, {
      name: "Quora",
      nameZh: "Quora",
      url: "https://www.quora.com/search?q=%s"
    } ]
  } ];
  const h = {
    name: "category",
    props: {
      value: {
        type: String,
        default: ""
      }
    },
    data: () => ({
      engines: c,
      show: !1
    }),
    computed: {
      nameZh() {
        const e = this.engines.findIndex(e => e.name === this.value);
        return e > -1 ? this.engines[e].nameZh : this.engines[0].nameZh;
      }
    },
    methods: {
      handleChange(e) {
        this.$emit("change", e);
      },
      openValue() {
        this.show = !this.show;
      },
      selectCategory(e, n) {
        this.handleChange(n.name), this.show = !1;
      }
    }
  };
  var m = function() {
    var e = this, n = e.$createElement, t = e._self._c || n;
    return t("div", {
      staticClass: "as-select"
    }, [ t("div", {
      staticClass: "as-select-content",
      on: {
        click: e.openValue
      }
    }, [ t("span", {
      domProps: {
        textContent: e._s(e.nameZh)
      }
    }) ]), e._v(" "), t("ul", {
      directives: [ {
        name: "show",
        rawName: "v-show",
        value: e.show,
        expression: "show"
      } ],
      staticClass: "as-select-list",
      class: {
        fadeInDown: e.show
      }
    }, e._l(e.engines, (function(n, r) {
      return t("li", {
        key: n.index,
        domProps: {
          textContent: e._s(n.nameZh)
        },
        on: {
          click: function(t) {
            return e.selectCategory(r, n);
          }
        }
      });
    })), 0), e._v(" "), t("div", {
      directives: [ {
        name: "show",
        rawName: "v-show",
        value: e.show,
        expression: "show"
      } ],
      staticClass: "as-select-mask",
      on: {
        click: function(n) {
          e.show = !1;
        }
      }
    }) ]);
  };
  m._withStripped = !0;
  const u = n({
    render: m,
    staticRenderFns: []
  }, (function(e) {
    e && e("data-v-4c707c2f_0", {
      source: '@charset "UTF-8";\n.as-select {\n  position: relative;\n}\n.as-select ul li {\n  list-style: none;\n}\n.as-select-content {\n  width: 100px;\n  height: 30px;\n  line-height: 30px;\n  font-size: 14px;\n  cursor: pointer;\n  padding-left: 10px;\n  position: relative;\n}\n.as-select-content::after {\n  content: " ▾";\n  position: absolute;\n  right: 12px;\n  font-size: 24px;\n  color: #999;\n}\n.as-select-list {\n  padding: 4px 0;\n  min-width: 100px;\n  border: 1px solid #e4e7ed;\n  border-radius: 4px;\n  background-color: #fff;\n  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);\n  box-sizing: border-box;\n  margin: 5px 0;\n  position: absolute;\n  z-index: 99;\n}\n.as-select-list li {\n  font-size: 14px;\n  padding: 0 20px;\n  position: relative;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  color: #606266;\n  height: 34px;\n  line-height: 34px;\n  box-sizing: border-box;\n  cursor: pointer;\n}\n.as-select-list li:hover {\n  background-color: #f5f7fa;\n}\n.as-select-mask {\n  position: fixed;\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n}\n\n/*# sourceMappingURL=category.vue.map */',
      map: {
        version: 3,
        sources: [ "category.vue", "E:\\project\\all-search\\src\\components\\category.vue" ],
        names: [],
        mappings: "AAAA,gBAAgB;ACoEhB;EACA,kBAAA;ADlEA;ACmEA;EACA,gBAAA;ADjEA;ACqEA;EACA,YAAA;EACA,YAAA;EACA,iBAAA;EACA,eAAA;EACA,eAAA;EACA,kBAAA;EACA,kBAAA;ADlEA;ACmEA;EACA,aAAA;EACA,kBAAA;EACA,WAAA;EACA,eAAA;EACA,WAAA;ADjEA;ACqEA;EACA,cAAA;EACA,gBAAA;EACA,yBAAA;EACA,kBAAA;EACA,sBAAA;EACA,2CAAA;EACA,sBAAA;EACA,aAAA;EACA,kBAAA;EACA,WAAA;ADlEA;ACmEA;EACA,eAAA;EACA,eAAA;EACA,kBAAA;EACA,mBAAA;EACA,gBAAA;EACA,uBAAA;EACA,cAAA;EACA,YAAA;EACA,iBAAA;EACA,sBAAA;EACA,eAAA;ADjEA;ACkEA;EACA,yBAAA;ADhEA;ACqEA;EACA,eAAA;EACA,MAAA;EACA,SAAA;EACA,QAAA;EACA,OAAA;ADlEA;;AAEA,uCAAuC",
        file: "category.vue",
        sourcesContent: [ '@charset "UTF-8";\n.as-select {\n  position: relative;\n}\n.as-select ul li {\n  list-style: none;\n}\n\n.as-select-content {\n  width: 100px;\n  height: 30px;\n  line-height: 30px;\n  font-size: 14px;\n  cursor: pointer;\n  padding-left: 10px;\n  position: relative;\n}\n.as-select-content::after {\n  content: " ▾";\n  position: absolute;\n  right: 12px;\n  font-size: 24px;\n  color: #999;\n}\n\n.as-select-list {\n  padding: 4px 0;\n  min-width: 100px;\n  border: 1px solid #e4e7ed;\n  border-radius: 4px;\n  background-color: #fff;\n  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);\n  box-sizing: border-box;\n  margin: 5px 0;\n  position: absolute;\n  z-index: 99;\n}\n.as-select-list li {\n  font-size: 14px;\n  padding: 0 20px;\n  position: relative;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  color: #606266;\n  height: 34px;\n  line-height: 34px;\n  box-sizing: border-box;\n  cursor: pointer;\n}\n.as-select-list li:hover {\n  background-color: #f5f7fa;\n}\n\n.as-select-mask {\n  position: fixed;\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n}\n\n/*# sourceMappingURL=category.vue.map */', '<template>\r\n  <div class="as-select">\r\n    <div class="as-select-content"\r\n         @click="openValue">\r\n      <span v-text="nameZh"></span>\r\n    </div>\r\n    <ul class="as-select-list"\r\n        :class="{ fadeInDown: show }"\r\n        v-show="show">\r\n      <li\r\n        v-for="(item,index) in engines"\r\n        :key="item.index"\r\n        v-text="item.nameZh"\r\n        @click="selectCategory(index,item)">\r\n      </li>\r\n    </ul>\r\n    <div class="as-select-mask"\r\n         @click="show = false"\r\n         v-show="show">\r\n    </div>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport engines from \'../config/engines\'\r\n\r\nexport default {\r\n  name: \'category\',\r\n  props: {\r\n    value: {\r\n      type: String,\r\n      default: \'\'\r\n    }\r\n  },\r\n  data () {\r\n    return {\r\n      engines,\r\n      show: false\r\n    }\r\n  },\r\n  computed: {\r\n    nameZh () {\r\n      const i = this.engines.findIndex(item => item.name === this.value)\r\n      if (i > -1) {\r\n        return this.engines[i].nameZh\r\n      } else {\r\n        return this.engines[0].nameZh\r\n      }\r\n    }\r\n  },\r\n  methods: {\r\n    handleChange (val) {\r\n      this.$emit(\'change\', val)\r\n    },\r\n    openValue () {\r\n      this.show = !this.show\r\n    },\r\n    selectCategory (index, item) {\r\n      this.handleChange(item.name)\r\n      this.show = false\r\n    }\r\n  }\r\n}\r\n<\/script>\r\n\r\n<style lang="scss">\r\n  @import "../assets/common";\r\n\r\n  .as-select {\r\n    position: relative;\r\n    ul li {\r\n      list-style: none;\r\n    }\r\n  }\r\n\r\n  .as-select-content {\r\n    width: 100px;\r\n    height: $height;\r\n    line-height: $height;\r\n    font-size: 14px;\r\n    cursor: pointer;\r\n    padding-left: 10px;\r\n    position: relative;\r\n    &::after {\r\n      content: \' ▾\';\r\n      position: absolute;\r\n      right: 12px;\r\n      font-size: 24px;\r\n      color: #999;\r\n    }\r\n  }\r\n\r\n  .as-select-list {\r\n    padding: 4px 0;\r\n    min-width: 100px;\r\n    border: 1px solid #e4e7ed;\r\n    border-radius: 4px;\r\n    background-color: #fff;\r\n    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);\r\n    box-sizing: border-box;\r\n    margin: 5px 0;\r\n    position: absolute;\r\n    z-index: 99;\r\n    li {\r\n      font-size: 14px;\r\n      padding: 0 20px;\r\n      position: relative;\r\n      white-space: nowrap;\r\n      overflow: hidden;\r\n      text-overflow: ellipsis;\r\n      color: #606266;\r\n      height: 34px;\r\n      line-height: 34px;\r\n      box-sizing: border-box;\r\n      cursor: pointer;\r\n      &:hover {\r\n        background-color: #f5f7fa;\r\n      }\r\n    }\r\n  }\r\n\r\n  .as-select-mask {\r\n    position: fixed;\r\n    top: 0;\r\n    bottom: 0;\r\n    right: 0;\r\n    left: 0;\r\n  }\r\n</style>\r\n' ]
      },
      media: void 0
    });
  }), h, void 0, !1, void 0, !1, r, void 0, void 0);
  const p = document.createElement("a");
  function d(e) {
    let n = e;
    if (n = n.toLowerCase(), n.indexOf("//") < 0) n = `//${n}`; else {
      if (!(n.indexOf("//") > -1)) return p;
      n.startsWith("http://") || n.startsWith("https://") || n.startsWith("ftp://") || n.startsWith("files://") || (n = n.replace(/.*\/\//, "//"));
    }
    return p.href = n, {
      href: p.href,
      origin: p.origin,
      protocol: p.protocol,
      host: p.host,
      hostname: p.hostname,
      port: p.port,
      pathname: p.pathname,
      search: p.search,
      hash: p.hash
    };
  }
  const A = {
    name: "site-menu",
    props: {
      menus: {
        type: Array,
        default: () => []
      }
    },
    data: () => ({}),
    methods: {
      getKeyword() {
        return this.$root.currentSite.keyword ? this.$root.currentSite.keyword() : function() {
          const e = document.querySelector("input[type='search'],input[type='text'][autocomplete='off'],input[autocomplete='off']:not([type])") || document.querySelector("input[type='text'][name][value],input[name][value]:not([type])");
          return e ? "INPUT" === e.nodeName || "textarea" === e.localName ? e.value : e.textContent : "";
        }();
      },
      handleClick(e) {
        this.$emit("click", e);
        const n = this.getKeyword();
        window.location.href = e.url.replace("%s", n);
      },
      handleMouseWheelClick(e, n) {
        if (1 === e.button) {
          const e = this.getKeyword();
          window.open(n.url.replace("%s", e));
        }
      }
    }
  };
  var g = function() {
    var e = this, n = e.$createElement, t = e._self._c || n;
    return t("div", {
      staticClass: "as-menu-container"
    }, [ t("ul", {
      staticClass: "as-menu"
    }, e._l(e.menus, (function(n, r) {
      return t("li", {
        key: r,
        staticClass: "as-submenu",
        on: {
          click: function(t) {
            return e.handleClick(n);
          },
          mousedown: function(t) {
            return e.handleMouseWheelClick(t, n);
          }
        }
      }, [ t("div", {
        staticClass: "as-submenu-title",
        domProps: {
          textContent: e._s(n.nameZh)
        }
      }) ]);
    })), 0) ]);
  };
  g._withStripped = !0;
  const b = {
    name: "all-search",
    components: {
      logo: l,
      category: u,
      siteMenu: n({
        render: g,
        staticRenderFns: []
      }, (function(e) {
        e && e("data-v-0a706ed9_0", {
          source: ".as-menu-container {\n  display: flex;\n}\n.as-menu {\n  line-height: 30px;\n  width: 100%;\n  height: 100%;\n  padding: 0;\n  margin-top: -1px;\n  margin-bottom: 0;\n  white-space: nowrap;\n  border: 0;\n  box-shadow: none;\n  background-color: #fff;\n}\n.as-submenu {\n  position: relative;\n  top: 1px;\n  display: inline-block;\n  vertical-align: bottom;\n}\n.as-submenu:hover {\n  color: #1890ff;\n  /*border-bottom: 2px solid #1890ff;*/\n}\n.as-submenu-title {\n  position: relative;\n  display: block;\n  margin: 0;\n  padding: 0 20px;\n  white-space: nowrap;\n  cursor: pointer;\n  font-size: 14px;\n}\n\n/*# sourceMappingURL=menu.vue.map */",
          map: {
            version: 3,
            sources: [ "E:\\project\\all-search\\src\\components\\menu.vue", "menu.vue" ],
            names: [],
            mappings: "AA2DA;EACA,aAAA;AC1DA;AD6DA;EACA,iBAAA;EACA,WAAA;EACA,YAAA;EACA,UAAA;EACA,gBAAA;EACA,gBAAA;EACA,mBAAA;EACA,SAAA;EACA,gBAAA;EACA,sBAAA;AC1DA;AD6DA;EACA,kBAAA;EACA,QAAA;EACA,qBAAA;EACA,sBAAA;AC1DA;AD2DA;EACA,cAAA;EACA,oCAAA;ACzDA;AD6DA;EACA,kBAAA;EACA,cAAA;EACA,SAAA;EACA,eAAA;EACA,mBAAA;EACA,eAAA;EACA,eAAA;AC1DA;;AAEA,mCAAmC",
            file: "menu.vue",
            sourcesContent: [ '<template>\r\n  <div class="as-menu-container">\r\n    <ul class="as-menu">\r\n      <li class="as-submenu"\r\n          v-for="(item, i) in menus"\r\n          :key="i"\r\n          @click="handleClick(item)"\r\n          @mousedown="handleMouseWheelClick($event, item)">\r\n        <div class="as-submenu-title"\r\n             v-text="item.nameZh">\r\n        </div>\r\n      </li>\r\n    </ul>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport { getKeyword } from \'../util\'\r\n\r\nexport default {\r\n  name: \'site-menu\',\r\n  props: {\r\n    menus: {\r\n      type: Array,\r\n      default () {\r\n        return []\r\n      }\r\n    }\r\n  },\r\n  data () {\r\n    return {}\r\n  },\r\n  methods: {\r\n    getKeyword () {\r\n      if (this.$root.currentSite.keyword) {\r\n        return this.$root.currentSite.keyword()\r\n      } else {\r\n        return getKeyword()\r\n      }\r\n    },\r\n    handleClick (item) {\r\n      this.$emit(\'click\', item)\r\n      const keyword = this.getKeyword()\r\n      window.location.href = item.url.replace(\'%s\', keyword)\r\n    },\r\n    handleMouseWheelClick (event, item) {\r\n      const btnNum = event.button\r\n      if (btnNum === 1) {\r\n        const keyword = this.getKeyword()\r\n        window.open(item.url.replace(\'%s\', keyword))\r\n      }\r\n    }\r\n  }\r\n}\r\n<\/script>\r\n\r\n<style lang="scss">\r\n  @import "../assets/common";\r\n\r\n  .as-menu-container {\r\n    display: flex;\r\n  }\r\n\r\n  .as-menu {\r\n    line-height: $height;\r\n    width: 100%;\r\n    height: 100%;\r\n    padding: 0;\r\n    margin-top: -1px;\r\n    margin-bottom: 0;\r\n    white-space: nowrap;\r\n    border: 0;\r\n    box-shadow: none;\r\n    background-color: #fff;\r\n  }\r\n\r\n  .as-submenu {\r\n    position: relative;\r\n    top: 1px;\r\n    display: inline-block;\r\n    vertical-align: bottom;\r\n    &:hover {\r\n      color: #1890ff;\r\n      /*border-bottom: 2px solid #1890ff;*/\r\n    }\r\n  }\r\n\r\n  .as-submenu-title {\r\n    position: relative;\r\n    display: block;\r\n    margin: 0;\r\n    padding: 0 20px;\r\n    white-space: nowrap;\r\n    cursor: pointer;\r\n    font-size: 14px;\r\n  }\r\n</style>\r\n', ".as-menu-container {\n  display: flex;\n}\n\n.as-menu {\n  line-height: 30px;\n  width: 100%;\n  height: 100%;\n  padding: 0;\n  margin-top: -1px;\n  margin-bottom: 0;\n  white-space: nowrap;\n  border: 0;\n  box-shadow: none;\n  background-color: #fff;\n}\n\n.as-submenu {\n  position: relative;\n  top: 1px;\n  display: inline-block;\n  vertical-align: bottom;\n}\n.as-submenu:hover {\n  color: #1890ff;\n  /*border-bottom: 2px solid #1890ff;*/\n}\n\n.as-submenu-title {\n  position: relative;\n  display: block;\n  margin: 0;\n  padding: 0 20px;\n  white-space: nowrap;\n  cursor: pointer;\n  font-size: 14px;\n}\n\n/*# sourceMappingURL=menu.vue.map */" ]
          },
          media: void 0
        });
      }), A, void 0, !1, void 0, !1, r, void 0, void 0)
    },
    data: () => ({
      engines: c,
      categoryName: "search"
    }),
    computed: {
      menus() {
        const e = this.engines.findIndex(e => e.name === this.categoryName);
        return e > -1 ? this.engines[e].list : this.engines[0].list;
      }
    },
    created() {
      this.categoryName = function(e) {
        if (window.GM_getValue) return window.GM_getValue(e);
        const n = window.localStorage.getItem(e);
        return n ? JSON.parse(n) : null;
      }("__allSearch__categoryName") || this.categoryName;
    },
    methods: {
      handleClick(e) {
        this.$emit("menu-click", e);
      },
      changeCategory(e) {
        !function(e, n) {
          if (window.GM_setValue) window.GM_setValue(e, n); else {
            const t = JSON.stringify(n);
            t && window.localStorage.setItem(e, t);
          }
        }("__allSearch__categoryName", e), this.categoryName = e;
      }
    }
  };
  var w = function() {
    var e = this.$createElement, n = this._self._c || e;
    return n("header", {
      attrs: {
        id: "all-search"
      }
    }, [ n("logo"), this._v(" "), n("category", {
      attrs: {
        value: this.categoryName
      },
      on: {
        change: this.changeCategory
      }
    }), this._v(" "), n("site-menu", {
      attrs: {
        menus: this.menus
      }
    }) ], 1);
  };
  w._withStripped = !0;
  const y = n({
    render: w,
    staticRenderFns: []
  }, (function(e) {
    e && e("data-v-5316ad40_0", {
      source: 'body {\n  margin-top: 30px;\n}\n#all-search {\n  height: 30px;\n  width: 100%;\n  position: fixed;\n  top: 0;\n  z-index: 999999;\n  display: flex;\n  border-bottom: 1px #e8e8e8 solid;\n  background-color: #fff;\n  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n.el-tabs .el-tabs__header {\n  margin-bottom: 0;\n}\n.el-tabs .el-tabs__nav-wrap::after {\n  height: 0;\n}\n.el-tabs .el-tabs__nav {\n  margin: 0 20px;\n}\n.el-tabs .el-tabs__item {\n  height: 30px;\n  line-height: 30px;\n}\n\n/*# sourceMappingURL=App.vue.map */',
      map: {
        version: 3,
        sources: [ "E:\\project\\all-search\\src\\App.vue", "App.vue" ],
        names: [],
        mappings: "AAwDA;EACA,gBAAA;ACvDA;AD0DA;EACA,YAAA;EACA,WAAA;EACA,eAAA;EACA,MAAA;EACA,eAAA;EACA,aAAA;EACA,gCAAA;EACA,sBAAA;EACA,kMAAA;ACvDA;AD2DA;EACA,gBAAA;ACxDA;AD2DA;EACA,SAAA;ACzDA;AD4DA;EACA,cAAA;AC1DA;AD4DA;EACA,YAAA;EACA,iBAAA;AC1DA;;AAEA,kCAAkC",
        file: "App.vue",
        sourcesContent: [ "<template>\r\n  <header id=\"all-search\">\r\n    <logo/>\r\n    <category :value=\"categoryName\"\r\n              @change=\"changeCategory\"/>\r\n    <site-menu :menus=\"menus\"/>\r\n  </header>\r\n</template>\r\n\r\n<script>\r\nimport logo from './components/logo.vue'\r\nimport category from './components/category.vue'\r\nimport siteMenu from './components/menu.vue'\r\nimport engines from './config/engines/index.js'\r\nimport { getSession, setSession } from './util'\r\n\r\nexport default {\r\n  name: 'all-search',\r\n  components: {\r\n    logo,\r\n    category,\r\n    siteMenu\r\n  },\r\n  data () {\r\n    return {\r\n      engines,\r\n      categoryName: 'search'\r\n    }\r\n  },\r\n  computed: {\r\n    menus () {\r\n      const i = this.engines.findIndex(item => item.name === this.categoryName)\r\n      if (i > -1) {\r\n        return this.engines[i].list\r\n      }\r\n      return this.engines[0].list\r\n    }\r\n  },\r\n  created () {\r\n    this.categoryName = getSession('__allSearch__categoryName') || this.categoryName\r\n  },\r\n  methods: {\r\n    handleClick (tab) {\r\n      this.$emit('menu-click', tab)\r\n    },\r\n    changeCategory (name) {\r\n      setSession('__allSearch__categoryName', name)\r\n      this.categoryName = name\r\n    }\r\n  }\r\n}\r\n<\/script>\r\n\r\n<style lang=\"scss\">\r\n  @import \"./assets/common\";\r\n\r\n  body {\r\n    margin-top: $height;\r\n  }\r\n\r\n  #all-search {\r\n    height: $height;\r\n    width: 100%;\r\n    position: fixed;\r\n    top: 0;\r\n    z-index: 999999;\r\n    display: flex;\r\n    border-bottom: 1px #e8e8e8 solid;\r\n    background-color: #fff;\r\n    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\r\n  }\r\n\r\n  .el-tabs {\r\n    .el-tabs__header {\r\n      margin-bottom: 0;\r\n    }\r\n\r\n    .el-tabs__nav-wrap::after {\r\n      height: 0;\r\n    }\r\n\r\n    .el-tabs__nav {\r\n      margin: 0 20px;\r\n    }\r\n    .el-tabs__item {\r\n      height: $height;\r\n      line-height: $height;\r\n    }\r\n  }\r\n</style>\r\n", 'body {\n  margin-top: 30px;\n}\n\n#all-search {\n  height: 30px;\n  width: 100%;\n  position: fixed;\n  top: 0;\n  z-index: 999999;\n  display: flex;\n  border-bottom: 1px #e8e8e8 solid;\n  background-color: #fff;\n  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n}\n\n.el-tabs .el-tabs__header {\n  margin-bottom: 0;\n}\n.el-tabs .el-tabs__nav-wrap::after {\n  height: 0;\n}\n.el-tabs .el-tabs__nav {\n  margin: 0 20px;\n}\n.el-tabs .el-tabs__item {\n  height: 30px;\n  line-height: 30px;\n}\n\n/*# sourceMappingURL=App.vue.map */' ]
      },
      media: void 0
    });
  }), b, void 0, !1, void 0, !1, r, void 0, void 0), f = [ "endday.github.io", "endday.gitee.io", "localhost" ];
  const x = {
    url: "",
    enabled: !1,
    style: ""
  }, C = [ {
    url: /^https?:\/\/www\.google(?:\.[A-z]{2,3}){1,2}\/[^?]+\?(?!tbm=)(?:&?q=|(?:[^#](?!&tbm=))+?&q=)(?:.(?!&tbm=))*$/,
    enabled: !0,
    style: ".srp #searchform:not(.minidiv){top: 56px !important;} .srp .minidiv{top: 36px !important;}"
  }, {
    url: /^https?:\/\/www\.google(?:\.[A-z]{2,3}){1,2}\/[^#]*#(?:&?q=|.+?&q=).+/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.baidu\.com\/(?:s|baidu)/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/[^.]*\.bing\.com\/search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/duckduckgo\.com\/*/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/search\.yahoo\.com\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/tw\.search\.yahoo\.com\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/searx\.me\/\?q/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.sogou\.com\/(?:web|s)/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/yandex\.com\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.startpage\.com\/do\/asearch/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/mijisou.com\/\?q/i,
    enabled: !0,
    style: ".search-page{top: 36px} .searx-navbar{top: 48px!important;}"
  }, {
    url: /^https?:\/\/google\.infinitynewtab\.com\/\?q/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.dogedoge\.com\/results\?q/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/baike\.baidu\.com\/item/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/baike\.baidu\.com\/search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/wenku\.baidu\.com\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/zhidao\.baidu\.com\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/\D{2,5}\.wikipedia\.org\/wiki/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.zhihu\.com\/search\?/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.so\.com\/s/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/so\.baike\.com\/doc/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.baike\.com\/wiki/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.docin\.com\/search\.do/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/zhihu\.sogou\.com\/zhihu/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/weixin\.sogou\.com\/weixin\?/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.quora\.com\/search\?/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/stackoverflow\.com\/search\?/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.soku\.com\/search_video\//,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.soku\.com\/t\/nisearch\//,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/search\.bilibili\.com\/all/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.acfun\.cn\/search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.youtube\.com\/results/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.nicovideo\.jp\/search\//,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/so\.iqiyi\.com\/so\/q/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/v\.qq\.com\/x\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/music\.baidu\.com\/search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/so\.1ting\.com\/all\.do/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.xiami\.com\/search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/s\.music\.qq\.com/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/music\.163\.com\/.*?#\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/so\.yinyuetai\.com\/\?keyword/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/image\.baidu\.com\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/\w{2,10}\.google(?:\.\D{1,3}){1,2}\/[^?]+\?.*&tbm=isch/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/.*\.bing\.com\/images\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.flickr\.com\/search\//,
    enabled: !0,
    style: ""
  }, {
    url: /^http:\/\/www\.pixiv\.net\/search\.php/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/huaban\.com\/search\/\?/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.pinterest\.com\/search\//,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/thepiratebay\.org\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/share\.dmhy\.org\/topics\/list\?keyword=/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.ed2000\.com\/filelist\.asp/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.zimuzu\.tv\/search\//,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/so\.cqp\.cc\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/subhd\.com\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/translate\.google(?:\.\D{1,4}){1,2}/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/fanyi\.baidu\.com/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/.*\.bing\.com\/dict\/search\?q=/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/dict\.youdao\.com\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/dict\.youdao\.com\/w/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/dict\.cn\/./,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/s\.taobao\.com\/search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/list\.tmall\.com\/search_product\.htm.*from=chaoshi/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/list\.tmall\.com\/search_product\.htm/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/search\.jd\.com\/Search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/search\.suning\.com/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/search\.yhd\.com\/c0-0\/k/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/search\.smzdm\.com\/\?/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/s\.weibo\.com\/weibo\//i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/tieba\.baidu\.com\/f\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/(movie|music|book)\.douban\.com\/subject_search?/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.douban\.com\/search/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/xueshu\.baidu\.com\/(?:s|baidu)/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/scholar\.google(?:\.\D{1,3}){1,2}\/scholar\?/,
    enabled: !0,
    style: ""
  }, {
    url: /^http:\/\/search\.cnki\.net\/search\.aspx/i,
    enabled: !0,
    style: ""
  }, {
    url: /^http:\/\/epub\.cnki\.net\/kns\/brief\/default_result\.aspx/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/s\.g\.wanfangdata\.com\.cn\/Paper\.aspx/i,
    enabled: !0,
    style: ""
  }, {
    url: /^http:\/\/.*?ebscohost\.com\/.*?results/i,
    enabled: !0,
    style: ""
  }, {
    url: /^http:\/\/link\.springer\.com\/search\?query=/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:.*?jstor.org\/action\/doAdvancedSearch/i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:.*?runoob\.com\//i,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/github\.com\/search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/developer\.mozilla\.org\/.{2,5}\/search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/google\.infinitynewtab\.com\/\?q/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/www\.startpage\.com\/do\/search/,
    enabled: !0,
    style: ""
  }, {
    url: /^https?:\/\/127\.0\.0\.1:8090\/./,
    enabled: !0,
    style: ""
  } ].find(e => e.url.test(window.location.href));
  C && (x.url = C.url, x.enabled = C.enabled, x.style = C.style), e.config.productionTip = !1;
  const v = function() {
    let e = null;
    for (const n of c) e || (e = n.list.find(e => {
      const n = d(e.url);
      return window.location.href.includes(n.hostname + n.pathname);
    }));
    return e;
  }();
  if (x.enabled || f.findIndex(e => e === window.location.hostname) > -1) {
    const n = document.createElement("div");
    n.id = "all-search";
    const t = new e({
      data: () => ({
        currentSite: v
      }),
      render: e => e(y)
    });
    (function() {
      let e = 0;
      return new Promise((n, t) => {
        if (document.body) n(); else {
          const r = setInterval((function() {
            e += 1, document.body && (clearInterval(r), n()), 20 === e && (clearInterval(r),
              t(new Error("timeOut")));
          }), 100);
        }
      });
    })().then(() => {
      const e = document.body.parentElement.insertBefore(n, document.body);
      var r;
      t.$mount(e), x.style && (r = x.style, window.GM_addStyle && window.GM_addStyle(r));
    });
  }
}(Vue);