Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

prevent potential runtime errors.. #540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Youtube-Ad-blocker-Reminder-Remover.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@
//

var video = document.querySelector('video');
if (video) video.volume = 0;
if (video) video.pause();
if (video) video.remove();
if (video) {
video.volume = 0;
video.pause();
video.remove();
}

//
// Remove the current player
Expand Down