table-copier

适用于任意网站,快速复制表格为纯文本、HTML、图片

Від 29.06.2023. Дивіться остання версія.

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.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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!)

Автор
JoyofFire
Рейтинги
0 0 0
Версія
0.5
Створено
27.06.2023
Оновлено
29.06.2023
Size
8,7 кБ
Ліцензія
GPL-3.0-only
Відноситься до
Всі сайти

快速复制表格

使用须知

  • 在任何页面自动启用
  • 对检测到的表格会加上【复制表格】按钮,点击后会复制表格为纯文本、HTML、图片到剪贴板
  • 复制需要约 1.5 秒,复制期间请勿离开浏览器,否则会导致复制失败

常见问题

  • 脚本仅会在页面加载完成时执行一次,所以对于 动态加载 表格的无效,建议做成 书签脚本 以规避此问题。

  • 腾讯文档等 使用 canvas 技术绘制的表格无效

  • iframe (嵌套在网页中的子网页) 无效,请直接复制代码,在 iframe 上下文中执行

可用API

  • async copy_table(table, ret_val=false)
    • 参数 table: HTMLTableElement:表格元素
    • 参数 ret_val: boolean:是否返回 TSV 格式字符串而不是复制到剪贴板
    • 返回值 Promise<string>:TSV 格式字符串