Disable countdown in GorillaVid

Disable countdown button in GorillaVid.in

  1. // ==UserScript==
  2. // @name Disable countdown in GorillaVid
  3. // @namespace Disable countdown in GorillaVid
  4. // @version 0.5
  5. // @description Disable countdown button in GorillaVid.in
  6. // @author jscriptjunkie
  7. // @match http://gorillavid.in/*
  8. // @grant none
  9. // ==/UserScript==
  10. /* jshint -W097 */
  11. 'use strict';
  12.  
  13. var isPlaying = true;
  14. if($('#btn_download').length > 0) {
  15. $('#btn_download').attr('disabled', false);
  16. $$('btn_download').value = 'Continue';
  17. $$('btn_download').click();
  18. countDown = function(){
  19. }
  20. }
  21.  
  22. if(jwplayer('flvplayer')){
  23. jwplayer('flvplayer').play();
  24.  
  25. $('body').keyup(function(e){
  26. if(e.keyCode == 32){
  27. if(isPlaying){
  28. jwplayer('flvplayer').pause();
  29. isPlaying = false;
  30. } else {
  31. jwplayer('flvplayer').play();
  32. isPlaying = true;
  33. }
  34. }
  35. });
  36.  
  37. setInterval(function(){
  38. if((jwplayer('flvplayer').getDuration() - jwplayer('flvplayer').getPosition()) < 3){
  39. window.close();
  40. }
  41. }, 3000);
  42. }