Greasy Fork is available in English.

Uzaktan Eğitim Kapısı videolarını otomatik arkaplanda izle

Uzaktan Eğitim Kapısı Videolarını, Bilgisayara Dokunmadan, Arka Arkaya, Arkaplanda İzlemenizi Sağlar

  1. // ==UserScript==
  2. // @name Uzaktan Eğitim Kapısı videolarını otomatik arkaplanda izle
  3. // @namespace https://uzaktanegitimkapisi.cbiko.gov.tr/
  4. // @version v2.4
  5. // @description Uzaktan Eğitim Kapısı Videolarını, Bilgisayara Dokunmadan, Arka Arkaya, Arkaplanda İzlemenizi Sağlar
  6. // @author BoomBookTR
  7. // @homepage https://greasyfork.org/tr/scripts/480955
  8. // @supportURL https://greasyfork.org/tr/scripts/480955/feedback
  9. // @match https://uzaktanegitimkapisi.cbiko.gov.tr/Egitimler/video*
  10. // @match https://uzaktanegitimkapisi.cbiko.gov.tr/Egitimler/Video*
  11. // @icon https://www.google.com/s2/favicons?sz=64&domain=gov.tr
  12. // @grant none
  13. // @run-at document-end
  14. // @require http://code.jquery.com/jquery-3.4.1.min.js
  15. // @license GPL-2.0-only
  16. // ==/UserScript==
  17.  
  18. (function() {
  19. 'use strict';
  20.  
  21. $(document).ready(function(){
  22. // Sekme değiştiğinde
  23. //window.onblur = () => {};
  24. // Sekme odaklandığında
  25. // window.onfocus = () => {};
  26.  
  27. var myPlayer = videojs.getPlayer('CbikoPl');
  28.  
  29. $(window).blur(function () {
  30. myPlayer.play();
  31. document.title = "Uzaktan Eğitim Kapısı"
  32. });
  33. $(window).focus(function () {
  34. myPlayer.play();
  35. document.title = "Uzaktan Eğitim Kapısı"
  36. });
  37.  
  38. var muteButton = $(".vjs-mute-control")
  39. if(muteButton.length){
  40. muteButton.click()
  41. // muteButton[0].click()}
  42. }
  43.  
  44. setInterval(() => {
  45. var AutoPlayButton = $('.vjs-big-play-button')
  46. if(AutoPlayButton.length){
  47. AutoPlayButton.click()
  48. // AutoPlayButton[0].click()}
  49. }
  50.  
  51. var confirmButton = $(".swal-button--confirm")
  52. if(confirmButton.length){
  53. // confirmButton[0].click()
  54. // setTimeout(() => {
  55. // Sayfayı yönlendirme işlemi
  56. var currentURL = window.location.href;
  57. var videoUniq = currentURL.match(/Uniq=([^&]*)/)[1];
  58. var redirectURL = "https://uzaktanegitimkapisi.cbiko.gov.tr/Egitimler/video?Uniq=" + videoUniq;
  59. window.location.href = redirectURL;
  60. // }, 5000); // 5 saniye sonra sayfayı yenile
  61. }
  62. }, 1000);
  63. //10 dakikada bir sayfayı yenile. Videonun yüklenmemesi veya ilerlememesi durumunda sorunu giderir.
  64. setInterval(function() {
  65. window.location.reload(true);
  66. }, 300000); // 600000 milisaniye = 10 dakika
  67.  
  68. })
  69. })();