alice

sessizlik iyidir

  1. // ==UserScript==
  2. // @name alice
  3. // @namespace oba
  4. // @version 2.0
  5. // @description sessizlik iyidir
  6. // @author alyy
  7. // @match https://www.oba.gov.tr/egitim/oynatma/*
  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. function videoLink(){
  16. return document.getElementsByClassName("progress-icon")[0].parentElement;
  17. };
  18. function videoPlayer(){
  19. return document.getElementById("video_html5_api");
  20. };
  21. videoPlayer().muted = true;
  22. setTimeout(function() {
  23. videoPlayer().play();
  24. }, 5000);
  25. videoPlayer().onended = function() {
  26. console.log("Sonraki videoya geçiliyor");
  27. videoLink().click();
  28. videoPlayer().play();
  29. };
  30. setTimeout(function() {
  31. location.reload();
  32. }, 25*60*1000);
  33. })();