webbull_oba

ÖBA videolarını durmadan izler

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         webbull_oba
// @namespace    https://www.oba.gov.tr/
// @version      0.5
// @description  ÖBA videolarını durmadan izler
// @author       Gündüz Can YILMAZ
// @match        https://www.oba.gov.tr/*
// @icon         https://www.webbull.net/assets/img/logo.png
// @grant        none
// @run-at       document-end
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';


    $(document).ready(function(){
        var myPlayer = videojs.getPlayer('video');
        window.onblur = () => {};
        $('.vjs-big-play-button').click()
        myPlayer.play();
        $(window).blur(function () {
            myPlayer.muted( true );
            myPlayer.play();
            document.title = "Can YILMAZ ;)"
        });
        setInterval(()=>{
            var sonVideo;
            myPlayer.play();
            $(".course-player-object-item").each(function (i){
                 if(! $(this).hasClass("isDisabled"))
                {
                    sonVideo = $(this);
                }
            })
            if( ('https://www.oba.gov.tr' + sonVideo.attr('href')) != window.location.href) {
                window.location.href = sonVideo.attr('href')
            }


        },1000)

    })

})();