copy red dot
This commit is contained in:
@@ -1179,6 +1179,8 @@ class TianYanChaParser {
|
||||
// 复制源码按钮
|
||||
const copySourceButton = createButton("复制源码", () => {
|
||||
const html = document.documentElement.outerHTML;
|
||||
|
||||
//ToolUtils.copyToClipboard(html, "源码已复制到剪贴板");
|
||||
GM_setClipboard(html, 'text');
|
||||
ToolUtils.showAutoCloseMessage("源码已复制到剪贴板", "success")
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user