File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ( ) {
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 }
You can’t perform that action at this time.
0 commit comments