Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. // DominusTrex's Unfriend Bot
  2. // @DominusTrex
  3.  
  4. var current = 0
  5. var unfriend = function(){
  6. if(current >= 16){
  7. $('.pager-next').children().click()
  8. children = 0
  9. setTimeout(unfriend, 4000)
  10. }else{
  11. var friendId = $('.avatar-card-caption').eq(current).children().attr('id')
  12. current++
  13. $.ajax({
  14. url: '/api/friends/removefriend',
  15. type: 'post',
  16. data: '{"targetUserID":"' + friendId + '"}',
  17. headers: { 'X-CSRF-TOKEN': Roblox.XsrfToken.getToken() },
  18. success: unfriend,
  19. contentType: "application/json;charset=UTF-8",
  20. })
  21. }
  22. };
  23.  
  24. unfriend();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement