ÖBA Vidoe Auto Watcher

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

目前为 2022-07-31 提交的版本。查看 最新版本

// ==UserScript==
// @name         ÖBA Vidoe Auto Watcher
// @namespace    none
// @version      0.3
// @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 = () => {};
    function videoLink(){
       return document.getElementsByClassName("progress-icon")[0].parentElement;
    };
    function videoPlayer(){
       return document.getElementById("video_html5_api");
    };
    videoPlayer().muted = true;

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

    videoPlayer().onended = function() {
        console.log("Sonraki videoya geçiliyor");
        videoLink().click();
        videoPlayer().play();
    };
    setTimeout(function() {
        location.reload();
    }, 25*60*1000);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址