why wont this stil work

This commit is contained in:
biglyderv 2024-09-30 05:31:55 -04:00
parent 1ce94d25b1
commit 4da0fc0f59
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954

View file

@ -24,11 +24,17 @@ async function unfollowUser(user) {
the = the.username;
e = await fetch(`https://scratch.mit.edu/site-api/users/followers/${the}/remove/?usernames=${user}`, {
"method": "PUT",
"body": "{}",
"headers": {
"x-csrftoken": getCookie('scratchcsrftoken')
}
});
e = await e.json();
e = await e.text();
try {
e = JSON.parse(e);
} catch (err) {
e = {};
}
console.log(e);
if (e.success) {
gek++;