making youtube timestamping tool, I'm so confused
<div class="tsi-row"><button>-5</button><button>-1</button><a href="">00:12:20</a><button>+1</button><input><button></button></div>
function copyTimestamps() {
let data = "";
for (const row of document.querySelectorAll(".tsi-row")) {
data += row.querySelector("a").textContent;
data += " ";
data += row.querySelector("input").value;
data += "\n";
}
data += "\n";
GM_setClipboard(data, "text/plain")
}
How come the text I get in clipboard is just timestamps, without comments:
00:00:02
00:12:20
00:22:36
How do I get it with comments?