daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Feb 17th, 2019 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. setInterval(function() {
  3.    
  4.     var con = $('article.M9sTE');
  5.     if(con.length > 0 && !$(con).hasClass("tsuprint-current")) {
  6.         $('article.M9sTE').addClass("tsuprint-current");
  7.         var imgSrc = $(con).find(".KL4Bh img").attr("src");
  8.         if(imgSrc === undefined)
  9.         {
  10.             $('article.M9sTE').removeClass("tsuprint-current");
  11.         }
  12.         else
  13.         {
  14.             var avatarSrc = $(con).find("img:first").attr("src");
  15.             var name = $(con).find("header a.FPmhX").html();
  16.             if($(con).find("header a.FPmhX").html() === $(con).find("header a:last").html())
  17.                 var location = "";
  18.             else
  19.                 var location = $(con).find("header a:last").html();
  20.             var date = $(con).find("time").attr("title");
  21.             var script = "";
  22.             $(con).find("section.Slqrh").append("<a style='color: #fff; background-color: #317ff3; border-radius: 5px; width: 80px; padding: 5px; text-align: center; margin-left: 10px; font-size: 13px; line-height: 14px;' target='_blank' href='http://tsuprint.kreosoft.ru/api/add_photo?token=tsu2019print4secure5token&imageSrc="+imgSrc+"&avatarSrc="+avatarSrc+"&name="+name+"&geo="+location+"&date="+date+"'>Отправить в TSU.Print</a>");
  23.             console.log(imgSrc, avatarSrc, name, location, date);
  24.         }
  25.     }
  26. }, 125);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top