Extensions: Supports YouTube Shorts

This commit is contained in:
RyanBurgert219 committed 2022-03-20 05:54:20 -04:00
1 parent 39c3b49c7c
commit 1cc579d00d
5 files changed
+43 -4

No files matched your search

+2 -1
View File
@@ -9,6 +9,7 @@ import {
//--- Import State Functions ---//
import {
isMobile,
isShorts,
isVideoDisliked,
isVideoLiked,
getState,
@@ -35,7 +36,7 @@ let jsInitChecktimer = null;
function setEventListeners(evt) {
function checkForJS_Finish() {
if (getButtons()?.offsetParent && isVideoLoaded()) {
if (isShorts() || getButtons()?.offsetParent && isVideoLoaded()) {
clearInterval(jsInitChecktimer);
jsInitChecktimer = null;
addLikeDislikeEventListener();