Guest User

Reddit comment/post mass delete

a guest
Jun 27th, 2023
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.39 KB | Software | 0 0
  1. var overflows = $x("//*[contains(@class,'icon-overflow_horizontal')]")
  2. var countNumber = 0;
  3.  
  4. overflows.forEach((overflow) => {
  5.     overflow.click()
  6.     let overflowDelete = $x("//*[text()='delete']")
  7.     overflowDelete[0].click()
  8.     let deletePost = $x("//*[text()='Delete']") // change to "Delete post" if deleting posts
  9.     deletePost[0].click()
  10.     countNumber += 1
  11.     console.log(countNumber)
  12. })
Advertisement
Add Comment
Please, Sign In to add comment