informoTVBoT

informo.tv Bot

  1. // ==UserScript==
  2. // @name informoTVBoT
  3. // @version 0.1
  4. // @description informo.tv Bot
  5. // @author Yo Bitcoins Thailand
  6. // @include *
  7. // @match ://www.informo.tv/
  8. // @run-at document-end
  9. // @grant none
  10. // @namespace https://greasyfork.org/users/172683
  11. // ==/UserScript==
  12. var min = 50000;
  13. var max = 65909;
  14. if (location.href.indexOf('informo') > -1) {
  15. document.title='YoBot..Working';
  16. if(window.top.location.href.indexOf('page') > 1){
  17. document.title='YoBot..Reading';
  18. }else{
  19. num = getRndInteger(min,max);
  20. window.top.location.href='https://www.informo.tv/?page=article&id_article='+num;
  21. }
  22.  
  23. //
  24. var sucCheck = setInterval(function(){
  25. num = getRndInteger(min,max);
  26. if ( document.getElementById('s').getAttribute('style').indexOf('block') > -1){
  27. clearInterval(sucCheck);
  28. document.title='Reading complete';
  29. window.top.location.href='https://www.informo.tv/?page=article&id_article='+num;
  30.  
  31. }else if(!document.getElementById('e').getAttribute('style')){
  32. window.top.location.href='https://www.informo.tv/?page=article&id_article='+num;
  33. }else if(document.getElementById('e').getAttribute('style').indexOf('block') > -1){
  34. window.top.location.href='https://www.informo.tv/?page=article&id_article='+num;
  35. }else{
  36. document.title='Reading...';
  37. }
  38. },5000);
  39. //
  40. }
  41. function getRndInteger(min, max) {
  42. return Math.floor(Math.random() * (max - min) ) + min;
  43. }