this post was submitted on 06 Jul 2023
3 points (100.0% liked)

Reddit Migration

457 readers
1 users here now

### About Community Tracking and helping #redditmigration to Kbin and the Fediverse. Say hello to the decentralized and open future. To see latest reeddit blackout info, see here: https://reddark.untone.uk/

founded 2 years ago
 

I just wrote myself a lil script after getting the data I requested from reddit. I deleted all the comments on my user profile (after editing them to gibberish), but there's still more that doesn't show up here.

What is the best way to get rid of ALL of it? I don't want to delete my account before it's all properly gone, because reddit says they will simply "dissociate" my account from the content, but not actually delete the content. Seeing as I don't want them benefiting from my 11 years of content, I want to remove it all.

top 5 comments
sorted by: hot top controversial new old
[–] LimitedBrain 1 points 2 years ago (1 children)

I believe there are scripts already written to edit your comments en masse before you delete them all

[–] enitoni 1 points 2 years ago* (last edited 2 years ago) (2 children)

Yes, I know. I wrote a script myself to do that. The problem is that they don't actually show all your content on your profile. There's a limit to how much they show. So even if you delete everything there, there's still content from you past that point.

[–] enitoni 2 points 2 years ago

I got it. So first of all your need to get your data from reddit. Through that, you can get every id for your posts and comments, and then you write a script that loops through each id and edits then deletes. It'll take a while depending on how much data you have.

Here's the script my friend wrote for me (which works better than the one I wrote):

const zzz = ms => new Promise(res => setTimeout(res, ms));
(async () => {
  let uh = document.querySelector("input[name=uh]").value
  for (const id of ids) {
    console.log(id)
    await zzz(3000)
    await fetch("https://www.reddit.com/api/editusertext", {
      method: "post",
      headers: {
        "content-type": "application/x-www-form-urlencoded; charset=utf-8",
      },
      body: new URLSearchParams({
        thing_id: `t1_${id}`,
        text: Math.floor(Math.random() * parseInt("fuckspezfuckspezfuckspezfuckspezfuckspezfuckspezfuckspezfuckspezfuckspez", 36)).toString(36),
        uh,
      }).toString()
    })
    await zzz(1000)
    await fetch("https://www.reddit.com/api/del", {
      method: "post",
      headers: {
        "content-type": "application/x-www-form-urlencoded; charset=utf-8",
      },
      body: new URLSearchParams({
        id: `t1_${id}`,
        uh,
      }).toString()
    })
  }
})()

You will need to run it with the old reddit layout so that it can fetch the CSRF token.

[–] LimitedBrain 1 points 2 years ago (1 children)

Ah, I'm not sure if I know a fix for that sorry. I haven't deleted all of my content yet so you might create a post if you figure it out.