JSFiddle - React, Tailwind, and code Playground

by frogggeee McFrogggeee

JavaScript

let user = prompt("who do you want to promote?", "griffpatch");
fetch("https://scratchdb.lefty.one/v2/user/info/" + user)
	 .then(response => response.json())
	 .then(data => {
$.ajax({
url: '/site-api/users/curators-in/' + Scratch.INIT_DATA.GALLERY.model.id + '/promote/?usernames=' + data.id,
type: 'PUT',});
});