Litecoin_click_bot

Litecoin_click_bot icin otomatik trafik

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Litecoin_click_bot
// @namespace    [email protected]
// @version      1.0.0
// @description  Litecoin_click_bot icin otomatik trafik
// @author       ekaraman [email protected]
// @match        https://web.telegram.org/
// @grant        none
// ==/UserScript==

(function() {
var win;
getLink();

setInterval(function () {
     console.error('setInterval');
 var size = $($('.im_message_text')).size()-1;
 var lastMessage= $($('.im_message_text')[size]).text();

 if(lastMessage.indexOf('You earned')==0)
 {
  if(win!=undefined) win.close();
  getLink();
 }
 else if(lastMessage.indexOf('Sorry')==0)
 {
  if(win!=undefined) win.close();
  return;
 }
 else if(lastMessage.indexOf('You must stay on the site')==0 || lastMessage.indexOf('Please stay')==0 ){}
 else{
  getLink();
 }

}, 2000);

function getLink(){
 var lastMessage= $('.im_message_text :last').html();
 if(lastMessage=='/settings') location.reload();

 var list=[];
 $.each($('.reply_markup_button') , function( key, value ) {
  if(String(value).includes("dogeclick.com"))
  {
   list.push(value);
  }
 });
 var count = list.length;
    if(count>0) var link =$(list[count-1]).prop('href').split('visit%2F')[1];

 navigateToLink(link);

}

function navigateToLink(link){
 if(localStorage.getItem("lastLink") === link) return;
  if(win!=undefined) win.close();
  win =window.open(
   'http://dogeclick.com/visit/'+link,
   '_blank'
 );
 localStorage.setItem("lastLink", link);
}
})();