return-youtube-dislike/Return Youtube Dislike.user.js at main · function isInViewPort(element) {....}

PHOTO EMBED

Sat May 07 2022 07:35:24 GMT+0000 (Coordinated Universal Time)

Saved by @atkumarvishnu #javascript

function isInViewport(element) {
  const rect = element.getBoundingClientRect();
  const height = innerHeight || document.documentElement.clientHeight;
  const width = innerWidth || document.documentElement.clientWidth;
  return (
    rect.top >= 0 &&
    rect.left >= 0 &&
    rect.bottom <= height &&
    rect.right <= width
  );
}
content_copyCOPY

https://github.com/Anarios/return-youtube-dislike