Skip to content

Commit

Permalink
v2.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gui-ying233 committed May 26, 2024
1 parent 43cf53e commit 3241348
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions main.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name JustMoeComments
// @namespace https://github.com/gui-ying233/JustMoeComments
// @version 2.13.0
// @version 2.13.1
// @description 萌娘百科看Lih的镜像站的评论,同时集成了作品讨论的评论
// @author 鬼影233
// @license MIT
Expand Down Expand Up @@ -145,17 +145,13 @@
postContent.className = "post-content";
postContent.appendChild(containerTop);
postContent.appendChild(container);
switch (mw.config.get("skin")) {
case "vector":
document.getElementById("footer").appendChild(postContent);
break;
case "moeskin":
default:
document
.getElementById("moe-global-footer")
.appendChild(postContent);
break;
}
document
.getElementById(
mw.config.get("skin") === "vector"
? "footer"
: "moe-global-footer"
)
.appendChild(postContent);
fetch(
`https://moegirl.uk/api.php?${new URLSearchParams({
action: "query",
Expand Down

0 comments on commit 3241348

Please sign in to comment.