Advertisement
EnggarHakim

unfollow massal

Jul 29th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var unfollow = {
  2. int_id: 0,
  3. buttons: {},
  4. pos: 0,
  5. click_count: 0,
  6. click: function(){
  7.  
  8. click = this.buttons[this.pos].click();
  9. this.click_count++;
  10. this.pos++;
  11. if(this.click_count >= 10){
  12. this.scroll();
  13. this.buttons_refresh();
  14. this.click_count =0;
  15. }
  16. },
  17. buttons_refresh: function(){
  18. this.buttons = $(".button-text.unfollow-text");
  19. },
  20. scroll: function(){
  21. $("body").scrollTop($("#doc").scrollTop() + 100000);
  22. },
  23. init: function(){
  24. var fileref=document.createElement('script')
  25. fileref.setAttribute("type","text/javascript")
  26. fileref.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js")
  27. document.getElementsByTagName("head")[0].appendChild(fileref);
  28. },
  29. start: function(){
  30. var that = this;
  31. this.buttons = $(".button-text.unfollow-text");
  32. this.int_id = setInterval( function(){that.click(); },1000);
  33. },
  34. stop: function(){
  35. window.clearInterval(this.int_id);
  36. }
  37. }
  38. unfollow.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement