ÖBA videolarını otomatik arkaplanda izle

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

As of 13.11.2023. See ბოლო ვერსია.

  1. // ==UserScript==
  2. // @name ÖBA videolarını otomatik arkaplanda izle
  3. // @namespace https://greasyfork.org/tr/users/7610-boombooktr
  4. // @version 1
  5. // @description ÖBA Videolarını, Bilgisayara Dokunmadan, Arka Arkaya, Arkaplanda İzlemenizi Sağlar
  6. // @author BoomBookTR
  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.  
  13. (function() {
  14. 'use strict';
  15.  
  16. var video = document.getElementById("video_html5_api");
  17.  
  18.  
  19. // Bu fonksiyon, sekme değiştikçe video sesini kapatır.
  20. window.onblur = function() {
  21. if (!video.muted) {
  22. video.muted = true;
  23. video.play();
  24. }
  25. };
  26.  
  27. // Sekme odaklandığında
  28. window.onfocus = function() {
  29. if (video.muted) {
  30. video.muted = true;
  31. video.play();
  32. }
  33. };
  34.  
  35. setTimeout(function() {
  36. video.play();
  37. }, 5000);
  38.  
  39. video.onended = function() {
  40. console.log("Video bitti, bir sonrakine geçiliyor");
  41. document.getElementsByClassName("progress-icon")[0].parentElement.click();
  42. document.getElementById("video_html5_api").play();
  43. };
  44.  
  45. setTimeout(function() {
  46. location.reload();
  47. }, 25*60*1000);
  48. })();