Skip to content

Instantly share code, notes, and snippets.

@bob1171
Created September 14, 2017 04:11
Show Gist options
  • Save bob1171/83a1b65be0c91f0fee5dc56bf8ea47bc to your computer and use it in GitHub Desktop.
Save bob1171/83a1b65be0c91f0fee5dc56bf8ea47bc to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Love-Archiver
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Does cool magic fluffy unicorn kind of stuff.
// @author @TheUltimatum, @bob1171
// @match https://scratch.mit.edu/projects/*
// @grant none
// ==/UserScript==
var currentURL = window.location.href;
var studio = localStorage.getItem("studioId");
if (studio === null || studio === '') {
var studioPrompt = prompt('Put in the ID of your studio');
localStorage.setItem("studioId", studioPrompt);
var studio = studioPrompt;}
(function() {
'use strict';
$(document).ready(function() {
$("#love-this").on("click",function() {
$.ajax({
type: "PUT",
url: "https://scratch.mit.edu/site-api/projects/in/" + studio + "/add/?pks=" + ID
});
}
);
});
})();
})();
@bob1171
Copy link
Author

bob1171 commented Sep 15, 2017

ya

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