Skip to content
Sign upLog in
← Back to Community

How to mass-delete repls?

Profile icon
firefish

I was having a play with the KNOWN_LANGUAGES object when I decided to try

Object.keys(KNOWN_LANGUAGES).forEach(i => fetch(`https://repl.it/languages/${i}`));

Which you can probably guess what happened.
It created 145 new repls. How do I delete them all without manually going click delete 145 times?

Answered by ch1ck3n [earned 5 cycles]
View Answer
Voters
Profile icon
NajidSmith
Profile icon
Leroy01010
Profile icon
ChristopherSonc
Profile icon
CallMeScorpion
Profile icon
tussiez
Profile icon
TheOneAndOnly-
Profile icon
CoolCoderSJ
Profile icon
AnthonyMouse
Profile icon
HahaYes
Profile icon
Kai_Justice
Comments
hotnewtop
Profile icon
ch1ck3n

why don't you make a script in the console?

Profile icon
firefish
Profile icon
firefish

@ch1ck3n
OH YES CLEVER I WILL DO THAT

Profile icon
ch1ck3n

@firefish
Well, you querySelector all of the delete buttons like this:

$(".downshift-```whatever number here```-menu").last().click()

and we go from the highest number and to the bottom.

Profile icon
firefish

@ch1ck3n
ew jquery learn the normal DOM you lazy small-brain

Profile icon
ch1ck3n
Profile icon
firefish

@ch1ck3n
haha works like a charm lol

const ree = l => document.querySelector(l).click(); window.setInterval(() => { ree("button.jsx-525591542"); ree("button.jsx-2801395914"); ree("button.jsx-2464409669.negative"); }, 1000);
Profile icon
firefish

@ch1ck3n

Ew jquery learn normal DOM y

what did the rest say?

Profile icon
ch1ck3n

@firefish
i realized you didnt use jquery

Profile icon
faizy179

@ch1ck3n
how do you get to this menu were you do this command?

Profile icon
RayhanADev

RIP
@firefish
2020

Succeeded in Getting All Repl.it Languages

Profile icon
firefish

@RayhanADev
It's not that I attempted, I succeeded, I attempted to undo that's what killed me

Profile icon
realTronsi

@firefish
dw you still have less unnamed projects than
@Coder100

Profile icon
RayhanADev

@firefish
lmao changed it xD. (This has been the most hilarious 10 minutes of my life xD)

Profile icon
RayhanADev

@realTronsi
holy cow Coder has a crap ton how does he still have space???

Profile icon
Coder100
Profile icon
firefish

@RayhanADev
This has been the most embarrassing 10 minutes of my life

Profile icon
realTronsi

@RayhanADev
he bribed the mods

Profile icon
Coder100

ok are they deleted yet

@firefish

Profile icon
RayhanADev
Profile icon
realTronsi

@Coder100
im so confused how that works though, he used fetch, but you authenticate using cookies so I'm so confused

Profile icon
firefish

@RayhanADev
He has hacker plan, mine expired yonks ago

Profile icon
firefish

@Coder100
I just had dinner so NotYet Ltd.

Profile icon
Coder100

@realTronsi
you send the cookies too lmao

Profile icon
firefish

@realTronsi
no lol, the grilled cookie knows nothing about cookies why re you asking him

Profile icon
RayhanADev

@firefish
i have hacker till next spooktober lmao

Profile icon
RayhanADev

@Coder100
how would I replicate this except from a NodeJS project?

Profile icon
Coder100
Profile icon
Coder100

not even llc

@firefish

Profile icon
realTronsi

@firefish
no but you send an http request and somehow repl knows your cookie now? if thats the case this is a massive security risk because you can just steal ppl's cookies

Profile icon
firefish

@RayhanADev
erm get the value of KNOWN_LANGUAGES and erm.... lol wait verygut idea

Profile icon
RayhanADev

@firefish
how to do??? I need to knows?

Profile icon
firefish

@RayhanADev
HOLD UP
change Object.keys(stuff) to

`https://repl.it/languages/${Object.keys(stuff)}`

please

Profile icon
RayhanADev

@firefish
yeah i figured that bit out

const atob = str => Buffer.from(str, 'base64').toString('binary'); const fs = require('fs'); let stuff = JSON.parse(atob(fs.readFileSync('klangs').toString())); // console.log(stuff); let url; for (i = 0; i < Object.keys(stuff).length; i++) { url = 'https://repl.it/languages/' + Object.keys(stuff)[i]; console.log(url) require("node-fetch")(url); }

but I can’t log into my account now xD.

Profile icon
firefish

@RayhanADev
what is your alt account's name, maybe that's a bug

Profile icon
RayhanADev
Profile icon
RayhanADev

@realTronsi
wanna work on the Ultimate Dashboard?

Profile icon
firefish

@realTronsi
wanna work on the Ultimate Dashboard?

@RayhanADev
sure why not

Profile icon
realTronsi

@firefish

@realTronsi
wanna work on the Ultimate Dashboard?

@RayhanADev
sure why not

@firefish
sure why not

Profile icon
firefish

@realTronsi
wanna work on the Ultimate Dashboard?

@RayhanADev
sure why not

@firefish
sure why not

@realTronsi
sure why not

Profile icon
RayhanADev
Profile icon
firefish

@RayhanADev
so yeah let's work on this

Profile icon
RayhanADev

@firefish
lmao oke you can join in too.

Profile icon
RayhanADev

@firefish
did you get invite?

Profile icon
Whippingdot

What is the Ultimate Dashboard, can I join.

@RayhanADev

Profile icon
RayhanADev

@Whippingdot
ababbabahba nononono secret nobody should know (and also are you good nodejs?)

Profile icon
Whippingdot

🤔😢😢. Nooooo!!! Nope.

@RayhanADev

Profile icon
RayhanADev

@Whippingdot
rip xD, the project is in NodeJS (if you want I can invite you and explain what it is if you promise to keep it secret)

Profile icon
Whippingdot

Have I ever revealed a secret for the more than a month I have been on repl.it. The answer is no!

@RayhanADev

Profile icon
Whippingdot

Meaning yes, invite me.

@RayhanADev

Profile icon
RayhanADev

@Whippingdot
I wouldn’t know OKE!

Profile icon
Whippingdot

I reply on EVERY SINGLE POST of most people. Including you. Try to remember me. I will be here for a long time I hope, I usually don't stay on one thing. Like I keep on switching websites which I use to learn coding from

@RayhanADev

Profile icon
RayhanADev

@Whippingdot
lmao yea I know you, you follow my empty Github xD. Anyways I added you.

Profile icon
Whippingdot

🤣 I like doing random stuff to waste time when I can be productive and study. I still get good marks in exams though.

@RayhanADev

Profile icon
firefish

@Whippingdot
@RayhanADev
Seriously? 16 pings? Thank you very much, really appreciate it

Profile icon
RayhanADev

@firefish
of course xD.

Profile icon
Whippingdot

You're very welcome

@firefish

Profile icon
firefish

Your very welcome

@Whippingdot
I don't recall owning a very welcome, maybe you meant you're?

Profile icon
RayhanADev

@firefish
hahahhahahahahhahahha
awesome.

Profile icon
Whippingdot

Bully. 😢😢😢😢. 🤣. You are ve ry wel come

@firefish