Skip to content

Commit

Permalink
兼容轻量工具箱+1功能
Browse files Browse the repository at this point in the history
  • Loading branch information
xh321 committed Feb 15, 2024
1 parent cac00ba commit 6debfa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "防撤回",
"slug": "anti_recall",
"description": "防止QQNT撤回消息",
"version": "0.2.35",
"version": "0.2.36",
"icon": "./icon.png",
"authors": [
{
Expand All @@ -16,7 +16,7 @@
"repo": "xh321/LiteLoaderQQNT-Anti-Recall",
"branch": "master",
"release": {
"tag": "0.2.35",
"tag": "0.2.36",
"file": "qq-anti-recall.zip"
}
},
Expand Down
7 changes: 3 additions & 4 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ async function patchCss() {
var sHtml = `.message-content-recalled-parent {
border-radius: 10px;
position: relative;
${nowConfig.enableTip == true ? "margin-bottom: 15px;" : ""}
overflow: unset !important;`;
if (nowConfig.enableShadow == true) {
sHtml += ` margin-top:3px;
Expand All @@ -426,7 +425,7 @@ async function patchCss() {
.message-content-recalled {
position: absolute;
top: calc(100% + 6px);
top: calc(100% + 8px);
font-size: 12px;
white-space: nowrap;
color: var(--text-color);
Expand Down Expand Up @@ -480,7 +479,7 @@ async function onLoad() {
await appendRecalledTag(oldElement);
} else if (newElement != null) {
if (newElement.classList.contains("gray-tip-message")) return;
await appendRecalledTag(newElement.parentElement);
await appendRecalledTag(newElement);
} else if (unixElement != null) {
if (unixElement.classList.contains("gray-tip-message")) return;
await appendRecalledTag(unixElement.parentElement);
Expand Down Expand Up @@ -586,7 +585,7 @@ async function onLoad() {
} else if (newElement != null) {
if (newElement.classList.contains("gray-tip-message"))
continue;
await appendRecalledTag(newElement.parentElement);
await appendRecalledTag(newElement);
} else if (unixElement != null) {
if (unixElement.classList.contains("gray-tip-message"))
continue;
Expand Down

0 comments on commit 6debfa2

Please sign in to comment.