Skip to content

Instantly share code, notes, and snippets.

@comp500
Last active April 3, 2021 03:21
Show Gist options
  • Select an option

  • Save comp500/6053807 to your computer and use it in GitHub Desktop.

Select an option

Save comp500/6053807 to your computer and use it in GitHub Desktop.
<?php
require("bin/API/Scratch.php")
var scratch = new ScratchWebsiteFromURL("scratch.mit.edu");
scratch->gainSuperUserAccess();
var me = scratch->getUserByName("comp500");
var scratchteam = scratch->getST();
scratchteam->removeAllMembers();
var member = scratchteam->addMember(me);
scratchteam->setOwner(member);
member->hackScratch();
echo "Mission Complete!";
?>
@rx-gkit

rx-gkit commented Apr 3, 2021

Copy link
Copy Markdown

what does this do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment