informo.ty (BoT)

informo.tv Bot

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name        informo.ty (BoT)
// @version      0.1.1
// @description  informo.tv Bot
// @author       Dekpiano 
// @include      *
// @match       ://www.informo.tv/
// @run-at      document-end
// @grant        none
// @namespace https://greasyfork.org/users/172683
// ==/UserScript==
var min = 50000;
var max = 65909;
 if (location.href.indexOf('informo') > -1) {
        document.title='Bot..Working';
        if(window.top.location.href.indexOf('page')  > 1){
              document.title='Bot..Reading';
        }else{
             num =  getRndInteger(min,max);
             window.top.location.href='https://www.informo.tv/?page=article&id_article='+num;
        }

 //
            var sucCheck = setInterval(function(){
                 num =  getRndInteger(min,max);
                         if ( document.getElementById('s').getAttribute('style').indexOf('block') > -1){
                              clearInterval(sucCheck);
                              document.title='Reading complete';
                             window.top.location.href='https://www.informo.tv/?page=article&id_article='+num;

                          }else if(!document.getElementById('e').getAttribute('style')){
                              window.top.location.href='https://www.informo.tv/?page=article&id_article='+num;
                          }else if(document.getElementById('e').getAttribute('style').indexOf('block') > -1){
                              window.top.location.href='https://www.informo.tv/?page=article&id_article='+num;
                          }else{
                              document.title='Reading...';
                         }
                       },5000);
     //
 }
function getRndInteger(min, max) {
    return Math.floor(Math.random() * (max - min) ) + min;
}