Auto Disable YouTube AutoPlay Next Video Setting

Auto disable YouTube's AutoPlay Next Video setting at top sidebar of video page

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         Auto Disable YouTube AutoPlay Next Video Setting
// @namespace    AutoDisableYouTubeAutoPlayNextVideoSetting
// @version      1.0.6
// @license      GNU AGPLv3
// @author       jcunews
// @description  Auto disable YouTube's AutoPlay Next Video setting at top sidebar of video page
// @match        https://www.youtube.com/*
// @grant        none
// ==/UserScript==

setInterval(eleCheck => {
  if (
    (
      (eleCheck = document.querySelector(
      '#autoplay-checkbox,#improved-toggle.ytd-compact-autoplay-renderer,#toggle.ytd-compact-autoplay-renderer'
      )) &&
      eleCheck.attributes["checked"]
    ) ||
    (eleCheck = document.querySelector(':is(ytd-watch-flexy,ytd-watch-grid):not([hidden]) .ytp-autonav-toggle-button[aria-checked="true"]'))
  ) eleCheck.click();
}, 500);