ÖBA Vidoe Auto Watcher

ÖBA videoları bittikten sonra otomatik sonraki videoya geçer..

目前為 2022-07-28 提交的版本,檢視 最新版本

// ==UserScript==
// @name         ÖBA Vidoe Auto Watcher
// @namespace    none
// @version      0.1
// @description  ÖBA videoları bittikten sonra otomatik sonraki videoya geçer..
// @author       Osman TÜRKMEN
// @match        https://www.oba.gov.tr/*
// @icon         none
// @grant        none
// @license      MIT
// ==/UserScript==
(function() {
    'use strict';
    window.onblur = () => {};
    var video = document.getElementById("video_html5_api");
    var videoProgressIcon=document.getElementsByClassName("progress-icon")[0].parentElement;
    video.muted = true;

    setTimeout(function() {
        video.play();
    }, 5000);

    video.onended = function() {
        console.log("Sonraki videoya geçiliyor");
        videoProgressIcon.click();
        video.play();
    };

    setTimeout(function() {
        location.reload();
    }, 25*60*1000);
})();