RIF will be shutting down on June 30, 2023, in response to Reddit Inc’s API changes and their hostile treatment of developers building on their platform.

    • FuzzyDunlop@slrpnk.net
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      1 year ago

      It is a python script, you need the praw library. The client id’s are given in your profile after you create an app.

        
      import praw
      
      reddit = praw.Reddit(client_id='yourid',
      	client_secret='yoursecret',
      	password='your password',
      	user_agent='deletes my comments',
      	username='your username')
      
      redditor = reddit.redditor("your username")
      
      for comment in redditor.comments.top(limit=10000):
      	comment.edit("deleted")
      	comment.delete()
      
      

      You can edit and delete everything in the same pass but I prefer to overwrite my comments first and give time for the cache machines to register my new garbage before deleting with another pass.

    • MyNameIsFred@beehaw.org
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      Here is a sanitizer script that uses nothing but javascript

      https://github.com/ryanford/Reddit-History-Sanitizer/blob/master/RedditHistorySanitizer.js

      Open a tab, login to your account and go to your account page aka reddit.com/u/usernamehere (you likely need old.reddit version of your account, its all I use). Install tampermonkey and the script into that… It will iterate through your comments, overwrite them, then delete and refresh the page as it goes.

      Change the line here:

      const age = 7

      to

      const age = -1

      To delete all comments. You can adjust that number (in days) to how old you it to filter for comments.