mirror of
https://github.com/zedeus/nitter.git
synced 2024-06-09 16:49:21 +00:00
Make hls playback function with infinite scroll again
This commit is contained in:
parent
7749c754bc
commit
5eb010e7cd
|
@ -1,5 +1,6 @@
|
|||
// @license http://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
function playVideo() {
|
||||
const video_overlay = document.getElementsByClassName("video-overlay");
|
||||
|
||||
for (var i = 0 ; i < video_overlay.length; i++) {
|
||||
|
@ -27,4 +28,13 @@ for (var i = 0 ; i < video_overlay.length; i++) {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
var observer = new MutationObserver(function () {
|
||||
playVideo()
|
||||
});
|
||||
|
||||
playVideo()
|
||||
|
||||
observer.observe(document.body, {childList: true, subtree: true});
|
||||
// @license-end
|
||||
|
|
Loading…
Reference in a new issue