Nucleo Robot TprenD 2

TprenD likea todo canal Global - Autofollow y crapero también (v6)

  1. // ==UserScript==
  2. // @name Nucleo Robot TprenD 2
  3. // @namespace https://greasyfork.org/es/scripts/377368-nucleo-robot-tprend-2
  4. // @version 2.5
  5. // @description TprenD likea todo canal Global - Autofollow y crapero también (v6)
  6. // @author by @kchamat
  7. // @match https://classic.taringa.net/TprendMod*
  8. // @include https://classic.taringa.net/*
  9. // @exclude https://classic.taringa.net/*/siguiendo/*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. // ---- Para utilizarlo con otra cuenta debe cambiar la palabra TPRENDMOD por su Nick de Usuario y el numero de user_id por el id de su cuenta
  14. // ---- si desconoce el id de su cuenta ingrese en https://api.taringa.net/user/nick/view/SU_PROPIO_NICK
  15.  
  16. (function() {
  17. 'use strict';
  18. window.stop();
  19. var user_nick="TprendMod";
  20. var user_id="29024560";
  21. var segundos=300;
  22. var seg_espera_entre=60;
  23. $('head').append('<meta http-equiv="refresh" content="'+segundos+'">' );
  24. // funcion redirigir a tal url en 10 segundos
  25. function redirigir_a_en(url,seg) {
  26. var a = document.createElement("a");
  27. a.href = url;
  28. setTimeout(function() {
  29. a.click();
  30. }, seg*1000);
  31. }
  32. // funcion reshoutero
  33. function reshoutero(id_shout,owner_id) {
  34. $.ajax({
  35. url: '/ajax/shout/add',
  36. type: 'post',
  37. dataType: 'json',
  38. data: {
  39. key: global_data.user_key,
  40. parent_id: id_shout,
  41. parent_owner: owner_id
  42. },
  43. success: function(res) {
  44. callback(res);
  45. },
  46. error: function(xhr, status, error){
  47. callback(xhr);
  48. }
  49. });
  50. }
  51. // funcion crapero
  52. function crapero(owner_nick,contenido,image_url) {
  53. contenido=texto+"\n <════Se lo re crapié a @"+owner_nick+"════>";
  54. $.ajax({
  55. type : 'POST',
  56. dataType: 'json',
  57. url : '/ajax/shout/add',
  58. data : {
  59. key : global_data.user_key,
  60. body : contenido,
  61. privacy : 0,
  62. attachment_type : 1,
  63. attachment : image_url
  64. }
  65. });
  66. }
  67. // funcion seguir
  68. function devuelve_follow(nro_page) {
  69.  
  70. $.getJSON("https://api.taringa.net/user/followers/view/"+user_id+"?trim_user=true&count=25&page="+nro_page, function(data) {
  71. $.each(data, function(nro_item2,user2) {
  72. var id = user2;
  73. notifica.ajax(Array("action=follow","type=user","obj=" + id),null,null,true,false);
  74. });
  75. });
  76. }
  77. // Like a todo
  78. function likeatodo() {
  79. $.getJSON("https://api.taringa.net/shout/public/view", function(data) {
  80. setTimeout(function() { }, 500);
  81. $.each(data, function(i, item) {
  82. var id = item.id;
  83. var owner = item.owner.id;
  84. $.ajax({
  85. url: '/ajax/shout/vote',
  86. type: 'post',
  87. dataType: 'json',
  88. data: {
  89. owner: owner,
  90. uuid: id,
  91. score: 1
  92. },
  93. });
  94. });
  95. });
  96. }
  97. ///función para abrir en una 2da pestaña e ir dando unfollow
  98. function abrirEnPestana(url) {
  99. var a = document.createElement("a");
  100. a.target = "_al_lado";
  101. a.href = url;
  102. a.click();
  103. }
  104. // funcion casino
  105. function casino_shout() {
  106. //Juega a los dados, si sale 1 crapea un shout si sale 2 lo reshoutea
  107. $.getJSON( "https://api.taringa.net/shout/random/view", function( data ) {
  108. var items = [];
  109. $.each( data, function( key, val ) {
  110. items.push( key + ":" + val + "<br>" );
  111. });
  112. var chance=Math.floor((Math.random() * 45) + 1);
  113. var tipo_shout=data.attachment.type;
  114. var owner_nick=data.owner.nick;
  115. var owner_id=data.owner.id;
  116. var id_shout=data.id;
  117. var texto=data.body;
  118. var seleccionador=chance+tipo_shout;
  119. var image_url=data.attachment.url;
  120. var contenido=" ";
  121. //Crapeo al azar
  122. if (seleccionador=='1image'){
  123. //crapero(owner_nick,contenido,image_url);
  124. }
  125. //Reshout al azar
  126. if (seleccionador=='2image'){reshoutero(id_shout,owner_id); }
  127. if (seleccionador=='3image'){reshoutero(id_shout,owner_id); }
  128. });
  129. }
  130. //Likeando todo todo todo cada 1 minuto
  131. var icha;
  132. likeatodo();
  133. for (icha = 1; icha < 6 ; icha++) {
  134. setTimeout(function() {
  135. var nro_page =Math.floor((Math.random() * 19));
  136. devuelve_follow(nro_page);
  137. }, seg_espera_entre*1000);
  138. setTimeout(function() {
  139. likeatodo();
  140. }, seg_espera_entre*1000);
  141. setTimeout(function() {
  142. casino_shout();
  143. }, seg_espera_entre*1000);
  144. }
  145. // métodos de comportamiento cíclico
  146. //$('head').append('<meta http-equiv="refresh" content="'+segundos+'">' );
  147. //var url='https://classic.taringa.net/'+user_nick;
  148. //redirigir_a_en(url,segundos);
  149. //var nedge='https://classic.taringa.net/'+user_nick+'/siguiendo/'+(nro_page);
  150. //abrirEnPestana(nedge);
  151. })();