Skip to content

Commit 40aa43c

Browse files
committed
Update AppinnComment.user.js
1 parent e72f400 commit 40aa43c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Appinn Comment/AppinnComment.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// ==UserScript==
22
// @name Appinn comment
33
// @namespace hoothin
4-
// @version 2024-06-07
4+
// @version 2024-06-08
55
// @description 将小众软件论坛的评论内容显示在主站对应页面下部
66
// @author hoothin
77
// @match https://www.appinn.com/*
88
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
99
// @grant GM_xmlhttpRequest
1010
// @connect meta.appinn.net
11+
// @downloadURL https://update.greasyfork.org/scripts/497293/Appinn%20comment.user.js
12+
// @updateURL https://update.greasyfork.org/scripts/497293/Appinn%20comment.meta.js
1113
// ==/UserScript==
1214

1315
(function() {
@@ -27,12 +29,13 @@
2729
let posts = document.createElement("ul");
2830
posts.style.maxHeight = '100vh';
2931
posts.style.overflow = 'auto';
32+
posts.style.margin = '0';
3033
let title = document.createElement("h3");
3134
title.innerText = "评论内容";
3235
document.querySelector('article').appendChild(title);
3336
document.querySelector('article').appendChild(posts);
3437
dataPreloaded.forEach(item => {
35-
posts.innerHTML += `<li>${item.cooked}</li>`;
38+
posts.innerHTML += `<li style='border-top: 1px solid #313131;'><p style='font-weight: bold;'>${item.display_username || item.username}</p>${item.cooked}</li>`;
3639
});
3740
} catch (e) {
3841
}

0 commit comments

Comments
 (0)