Explorar o código

do not get Shorts like number

It does not work.
Also, in js zero is not false.
Aneimytis %!s(int64=3) %!d(string=hai) anos
pai
achega
1d3f71170b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Extensions/combined/src/state.js

+ 1 - 1
Extensions/combined/src/state.js

@@ -150,7 +150,7 @@ function getLikeCountFromButton() {
   if (isShorts()) {
     //Youtube Shorts don't work with this query. It's not nessecary; we can skip it and still see the results.
     //It should be possible to fix this function, but it's not critical to showing the dislike count.
-    return 0;
+    return false;
   }
   let likesStr = getLikeButton()
     .querySelector("yt-formatted-string#text")