copy red dot

This commit is contained in:
manchuwork
2025-12-12 04:26:16 +08:00
parent 580c411142
commit e401643d91
2 changed files with 127 additions and 0 deletions

View File

@@ -1179,6 +1179,8 @@ class TianYanChaParser {
// 复制源码按钮
const copySourceButton = createButton("复制源码", () => {
const html = document.documentElement.outerHTML;
//ToolUtils.copyToClipboard(html, "源码已复制到剪贴板");
GM_setClipboard(html, 'text');
ToolUtils.showAutoCloseMessage("源码已复制到剪贴板", "success")
});