Add more hooks

This commit is contained in:
Chocobozzz
2022-08-03 10:39:31 +02:00
parent 0faf0330a2
commit 9e515b7230
3 changed files with 55 additions and 1 deletions

View File

@ -71,6 +71,13 @@ function register ({ registerHook, peertubeHelpers }) {
}
})
registerHook({
target: 'action:video-watch.video-threads.loaded',
handler: () => {
console.log('Comments found.', document.querySelectorAll('.comment'));
}
})
for (const hook of [
'filter:api.video-watch.video-playlist-elements.get.result'
]) {