@aiyiran/myclaw 1.0.100 → 1.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/myclaw-inject.js +0 -25
- package/package.json +1 -1
- package/patch-manifest.json +1 -1
package/assets/myclaw-inject.js
CHANGED
|
@@ -57,31 +57,6 @@
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
document.body.appendChild(bar);
|
|
60
|
-
|
|
61
|
-
// 额外测试按钮:哈哈
|
|
62
|
-
if (!document.querySelector("#myclaw-test-haha")) {
|
|
63
|
-
var hahaBtn = document.createElement("button");
|
|
64
|
-
hahaBtn.id = "myclaw-test-haha";
|
|
65
|
-
hahaBtn.textContent = "哈哈";
|
|
66
|
-
hahaBtn.style.cssText = [
|
|
67
|
-
"position: fixed",
|
|
68
|
-
"bottom: 8px",
|
|
69
|
-
"right: 80px", // 放在版本号左边
|
|
70
|
-
"padding: 2px 8px",
|
|
71
|
-
"background: #10a37f",
|
|
72
|
-
"color: white",
|
|
73
|
-
"border: none",
|
|
74
|
-
"border-radius: 4px",
|
|
75
|
-
"font-size: 10px",
|
|
76
|
-
"cursor: pointer",
|
|
77
|
-
"z-index: 99999",
|
|
78
|
-
].join(";");
|
|
79
|
-
hahaBtn.onclick = function (e) {
|
|
80
|
-
e.stopPropagation();
|
|
81
|
-
alert("测试更新机制:我是新加入的哈哈按钮!");
|
|
82
|
-
};
|
|
83
|
-
document.body.appendChild(hahaBtn);
|
|
84
|
-
}
|
|
85
60
|
}
|
|
86
61
|
|
|
87
62
|
// \u6D4B\u8BD5\u9EA6\u514B\u98CE\u51FD\u6570
|
package/package.json
CHANGED