Litecoin_click_bot

Litecoin_click_bot icin otomatik trafik

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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);
}
})();