GM_SelectToSearch

搜索选中文本

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/555706/1694621/GM_SelectToSearch.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
ssnangua
Version
0.0.1.20251113121238
Created
2025-11-13
Updated
2025-11-13
Size
2.79 KB
License
N/A
window.GM_SelectToSearch(
  [
    {
      // 按钮文本
      label: `<img src="https://www.voidtools.com/favicon.ico"> ES`,
      // 搜索链接,%s会被替换为选中文本
      url: "es:%s",
      // (可选)选中文本前面拼接
      prepend: "",
      // (可选)选中文本后面拼接
      append: "",
    },
  ],
  // (可选)搜索栏样式
  {
    background = "#edebdf",
    border = "1px solid #5c0d12",
  }
);