ÖBA Binge Watch

ÖBA Videolarını, Bilgisayara Dokunmadan Arka Arkaya İzlemenizi Sağlar

  1. // ==UserScript==
  2. // @name ÖBA Binge Watch
  3. // @namespace https://www.bugracanata.com.tr
  4. // @version 0.2
  5. // @description ÖBA Videolarını, Bilgisayara Dokunmadan Arka Arkaya İzlemenizi Sağlar
  6. // @author Buğra CANATA
  7. // @match https://www.oba.gov.tr/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=gov.tr
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12. (function() {
  13. 'use strict';
  14. window.onblur = () => {};
  15. var video = document.getElementById("video_html5_api");
  16. video.muted = true;
  17.  
  18. setTimeout(function() {
  19. video.play();
  20. }, 5000);
  21.  
  22. video.onended = function() {
  23. console.log("Video bitti, bir sonrakine geçiliyor");
  24. document.getElementsByClassName("progress-icon")[0].parentElement.click();
  25. document.getElementById("video_html5_api").play();
  26. };
  27.  
  28. setTimeout(function() {
  29. location.reload();
  30. }, 25*60*1000);
  31. })();