Last active
February 11, 2017 02:37
-
-
Save angelarias/30455e40d9236c80d319e11dc2e8f0c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Bot Para Taringa | |
| // @version 2.1 | |
| // @description Bot | |
| // @match *://www.taringa.net/* | |
| // @include http*://www.taringa.net/mi | |
| // @copyright Modificado por bla bla bla | |
| // @icon https://avatars1.githubusercontent.com/u/6422482?v=3&s=400 | |
| // @grant none | |
| // ==/UserScript== | |
| /* jshint -W097 */ | |
| var salu2 = "Hola"; | |
| (function ($) { | |
| var iniciar=0; | |
| var lince = '<li class="like"><a class="btn g" title="Activar Bot" id="like" value="start"><div class="btn-text"><i class="b-like"></i></div></a></li>'; | |
| $('.my-shout-attach-options').append(lince); | |
| function BOT(){ | |
| iniciar=1; | |
| $('#Feed-reload').click(); | |
| $(".require-login.button-action-s.action-vote.hastipsy.pointer").click(); | |
| $(".require-login.button-action-s.action-favorite.hastipsy.pointer").click(); | |
| //Comentar en el MI | |
| // var bt = document.querySelector('.shout-quick-reply.form-input-text.box-shadow-soft.ubertext').value = salu2; | |
| // $('.btn.g.floatL').click(); | |
| $(window).scrollTop(0,0); | |
| // Segundos que tarda en Realiza el proceso nuevamente salu2 | |
| setInterval(BOT, 20000); | |
| } | |
| var $btBot = $('.like i.b-like'); | |
| $btBot.css({'background':'url(https://avatars1.githubusercontent.com/u/6422482?v=3&s=400)', | |
| 'background-position':0, | |
| 'background-size': '19px', | |
| 'top': '0px', | |
| 'left': '0px', | |
| }); | |
| $('#like').on('click', function Bootear(){ | |
| if(iniciar===0){ | |
| $btBot.css({'background':'url(https://68.media.tumblr.com/c75131f038c8cc66c77204495d02a0ab/tumblr_okjr4j0XYz1v6edw3o1_250.gif)', | |
| 'background-position':0, | |
| 'background-size': '20px', | |
| 'top': '-1px', | |
| 'left': '-1px', | |
| }); | |
| BOT(); | |
| }else{ | |
| $btBot.css({'background':'url(https://avatars1.githubusercontent.com/u/6422482?v=3&s=400)', | |
| 'background-position':0, | |
| 'background-size': '19px', | |
| 'top': '0px', | |
| 'left': '0px', | |
| }); | |
| location.reload(true); | |
| } | |
| }); | |
| })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment