Google has updated the developertoolsavailability policy to block this stuff. This won't work on school devices anymore. Follow the instructions in the project
This code was taken from this project (https://scratch.mit.edu/projects/145230289) and has not been tampered with (apart from adding javascript: to the start) in a way to hack you. I do not need nor want your scratch account, I have my own. Explanation: fetch("/site-api/users/curators-in/" ^ send a request + location.pathname.split`/` [2] ^ get the studio id + "/remove/?usernames=" + document.querySelector`.profile-name`.innerText, ^ get your username { headers: { "x-csrftoken": /en=(\w+);/.exec(document.cookie)[1] ^ your token. this is required for any action like leaving a studio }, method: "PUT" }).then(() => location.reload()) ^ reload