diff --git a/files/setting.html b/files/setting.html index 502727b..df8710a 100644 --- a/files/setting.html +++ b/files/setting.html @@ -459,7 +459,7 @@ opacity: 0.5; padding: 8px; position: absolute; - ">v6.3
(23/09/24)

+ ">v6.4
(24/02/01)

diff --git a/index.js b/index.js index be47114..e37ed7a 100644 --- a/index.js +++ b/index.js @@ -303,6 +303,12 @@ async function LOADCOMMENT(mode) { fork: "comment-zouryou", id: 0, }, + { + commentCount: ownerComments.length, + comments: ownerComments, //投稿者コメントにフィルターを適用する? + fork: "owner", + id: 1, + }, ]; load_NiconiComments(); clearInterval(list_interval); @@ -627,14 +633,18 @@ function LIST_COMMENT() { document.getElementById("comment_list_comments").innerHTML = ""; for (let i = 0; i < 30; i++) { let body = COMMENT[0].comments[passIndex - i]?.body; - let nicoru = COMMENT[0].comments[passIndex - i]?.nicoruCount; + let nicoru = COMMENT[0].comments[passIndex - i]?.nicoruCount || ""; if (body == undefined) body = ""; let commentElement = document.createElement("div"); commentElement.className = "list_comment"; - commentElement.innerHTML = `

${body}

${nicoru}

`; - document.getElementById("comment_list_comments").prepend(commentElement); + if (body != "") { + commentElement.innerHTML = `

${body}

${nicoru}

`; + document + .getElementById("comment_list_comments") + .prepend(commentElement); + } } }, 30); } @@ -741,6 +751,11 @@ function PREPARE(observe) { ); videoElement = document.querySelector("#MainVideoPlayer > video"); + let seekBar = document.getElementsByClassName("SeekBar")[0]; + if (seekBar.classList.contains("is-disabled")) { + seekBar.classList.remove("is-disabled"); + } + SuperDanmakuCanvasElement.width = 640; SuperDanmakuCanvasElement.height = 360; @@ -1150,4 +1165,4 @@ const start = setInterval(() => { clearInterval(start); } }, 50); -console.log("✨コメント増量 v6.3\nCopyright (c) 2022 tanbatu."); +console.log("✨コメント増量 v6.4\nCopyright (c) 2022 tanbatu."); diff --git a/manifest.json b/manifest.json index c5b2366..4bbf065 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "コメント増量", "description": "ニコニコ動画のコメントの表示量を増やす", - "version": "6.3", + "version": "6.4", "content_scripts": [ { "matches": [