Add more hooks
This commit is contained in:
@ -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'
|
||||
]) {
|
||||
|
Reference in New Issue
Block a user