This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:'use strict'%3Bconst adMuteIntervalTime%3D100%2CadOverlayClassList%3D"ytp-ad-module"%2CmuteClassList%3D"ytp-mute-button ytp-button"%2CvolumeClassList%3D"ytp-volume-panel"%2CvolumeMutedAttribute%3D"aria-valuetext"%2CvolumeMutedAttributeValue%3D"muted"%3Bvar adMuteIntervalId%2CadObserved%3D!1%2CadMuted%3D!1%3Bfunction startAdMuteInterval()%7BadMuteIntervalId%3DsetInterval(()%3D>%7BisAdVisible()%3FadObserved%7C%7C(adObserved%3D!0%2CisVideoMuted()%7C%7C(adMuted%3D!0%2CtoggleVideoMute()))%3AadObserved%26%26(adObserved%3D!1%2CadMuted%26%26(adMuted%3D!1%2CisVideoMuted()%26%26toggleVideoMute()))%7D%2CadMuteIntervalTime)%7Dfunction isAdVisible()%7Btry%7Breturn null%3D%3D%3Ddocument.getElementsByClassName(adOverlayClassList)%5B0%5D.offsetParent%3F!1%3A!0%7Dcatch(a)%7Breturn!1%7D%7Dfunction isVideoMuted()%7Breturn document.getElementsByClassName(volumeClassList)%5B0%5D.getAttribute(volumeMutedAttribute).includes(volumeMutedAttributeValue)%7Dfunction toggleVideoMute()%7Bconst a%3Ddocument.getElementsByClassNam |