anime1.me - Auto Unmuted

4/6/2024, 5:28:51 PM

// ==UserScript==
// @name        anime1.me - Auto Unmuted
// @namespace   UserScripts
// @match       https://anime1.me/*
// @grant       none
// @version     1.0
// @author      -
// @description 4/6/2024, 5:28:51 PM
// @license MIT
// ==/UserScript==


document.addEventListener('play', function (evt) {

    const target = evt.target;
    if (!(target instanceof HTMLVideoElement)) return;
    if (target.duration < 59) return;
    if (target.currentTime > 0.2) return;
    if (target.muted) return;
    target.muted = false;

}, true)