Created
November 24, 2021 08:27
-
-
Save alili/4649422a85204399b2523c8b6c18ea1a to your computer and use it in GitHub Desktop.
B站 弹幕管理 油猴脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(() => { | |
let 时间数组 = document.querySelectorAll('td:nth-child(3) .colum-content') | |
let 链接数组 = document.querySelectorAll('a.danmu-content') | |
链接数组.forEach((链接, 序号) => { | |
let [s=0,m=0,h=0] = 时间数组[序号].textContent.split(':').reverse() | |
链接.href = 链接.href + `?t=${h}h${m}m${s}s` | |
}) | |
}, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment