快捷搜索-开发者搜索:掘金、react、google API、vscode插件市场、菜鸟搜索、docker、淘宝、华为云镜像官网、npmjs、mdn、antd、bilib、github等开发者常用网址

google translate、mobile.ant.mobile、掘金、npmjs、bilibibli、bootstracpCDN、splunk、google API 快捷搜索,更多快捷搜索

安裝腳本?
作者推薦腳本

您可能也會喜歡 juejin掘金小帮手

安裝腳本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
zzall
今日安裝
0
安裝總數
950
評價
2 0 0
版本
3.32.0
建立日期
2022-05-28
更新日期
2025-02-15
尺寸
15.9 KB
授權條款
MIT
腳本執行於

temperMonkey脚本 快捷搜索

该脚本旨在使用一些常用网页时快捷定位到搜索框

使用方法

google translate

  • mac:cmd + g
  • windows: ctrl + g 聚焦到谷歌翻译源文件textarea

  • mac:cmd + f

  • windows: ctrl + f 切换谷歌翻译

    • 从中文切换到英文
    • 再次触发从英文切换到中文
    • 循环从英文到中文的转换

npmjs.com的搜索框定位

  • mac:cmd + g
  • windows: ctrl + g

www.bootcdn.cn的搜索框定位

  • mac:cmd + g
  • windows: ctrl + g

splunk.ali.plt.babytree-inc.com的搜索框定位

  • mac:cmd + g
  • windows: ctrl + g

bilibili首页的搜索框定位

  • mac:cmd + g
  • windows: ctrl + g

    bilibili搜索页的搜索框定位

  • mac:cmd + g

  • windows: ctrl + g

更多搜索

  • github搜索个人仓库
  • prettier.io
  • eslint docs
  • npmjs docs
  • react docs
  • hellogithub
  • gitlab
  • MDN
  • ant.mobile.design
  • 掘金
  • google API
  • vscode插件市场搜索搜索
  • docker hub
  • jenkins
  • 淘宝镜像官网
  • 华为云镜像官网
  • jenkins
  • 菜鸟搜索
  • confluence搜索
  • gitool搜索
  • baobaoshu npm搜索
  • 知乎搜索
  • greasyfork 搜索
  • swiper 搜索
  • csdn 搜索
  • huaweicloud 搜索 ...

入口

github源地址

给贡献者

如果想要提供贡献,请依据最新的方式提供配置

/**
 * config是一个基础对象
 * key 为 要匹配的url
 * value 为 针对已匹配的url所触发的键盘监听事件等一系列配置
 *  value {string | object | array[string|array|object]}
 *    为string时
 *      默认赋值给searchSelectorStr,其他options使用默认值
 *      例如:'www.baidu.com':'input'等同于'www.baidu.com':{searchSelectorStr:'input'}
 *    为object时
 *      keyCode {number} 监听键盘的keycode
 *      metaKey {boolean} 是否按下command或windows按键
 *      searchSelectorStr {string|array} 搜索框的css选择器,最终选择效果由document.querySelector(searchSelectorStr)来决定
 *        为string时,在触发指定键盘按键事件之后自动调用该选择器所选择元素的focus事件,也就是自动聚焦
 *        为array时,允许设置多个选择器字符串,这些字符串之间的关系是`||`,位于数组更前方的选择器优先级更大
 *      isESCblur {boolean} 是否在键入`ESC`按键之后取消聚焦状态
 *      cb {function} 触发指定键盘事件之后的回调函数
 *      escCb {function} 触发`ESC`之后的回调函数
 *    为array时
 *      允许配置多个键盘监听事件
 *        array item为string时,参考value为string的情况
 *        array item为array时,参考searchSelectorStr为array的情况
 *        array item为object时,参考value为object的情况
 *          
 * 
 * value的默认值为
 * 
 * const defaultOpts = {
    metaKey: true,
    isESCblur: true,
    keyCode: 71,
    isPreventDefault: true,
    searchSelectorStr: '',
    cb: () => { },
    escCb: () => { }
  }
  * 常用keyCode
    71 g
    70 f
    13 回车
    27 esc
  */

// 例如
const config = {
  'csdn.net': 'input', // csdn 搜索
  'www.runoob.com': '#s', // 菜鸟搜索
  'cn.vuejs.org': '#search-query-nav', // vue官方文档 搜索
  'react': '#algolia-doc-search', // react 官网搜索
  'www.npmjs.com': {
    keyCode: 71,
    metaKey: true,
    searchSelectorStr: 'input[type=\'search\']',
    isESCblur: true,
    cb: () => {

    }
  }
}

脚本将基于该config生成指定监听事件