alyy_v2

OBA derslerini durmadan izler

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         alyy_v2
// @namespace    https://www.oba.gov.tr/
// @license MIT
// @version      0.3
// @description  OBA derslerini durmadan izler
// @author       You
// @match        https://www.oba.gov.tr/*
// @icon         https://avatars.githubusercontent.com/u/2937359?v=4
// @grant        none
// @run-at       document-end
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/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);
})();