Skip to content

Instantly share code, notes, and snippets.

View BoomerScratch's full-sized avatar
🔨
Busy

Boomer001 BoomerScratch

🔨
Busy
View GitHub Profile
@BoomerScratch
BoomerScratch / _scratch-view-stepping.user.js
Last active July 7, 2020 22:20
View stepping in Scratch editor
// ==UserScript==
// @name Scratch - view stepping
// @namespace none
// @version 1.1
// @description Allows you to see which block currently executes in the Scratch editor (scratch.mit.edu), which is useful for debugging.
// @author BoomerScratch
// @match https://scratch.mit.edu/projects/*
// @grant none
// @run-at document-start
// @homepageURL https://gist.github.com/BoomerScratch/0592337050810244236d69a4267b3913
@BoomerScratch
BoomerScratch / custom-context-menu.js
Last active March 14, 2020 14:50
A custom context menu you can use.
mouseX = 0
mouseY = 0
document.onmousemove = function(e) {
mouseX = e.clientX
mouseY = e.clientY
};
document.onclick = function() {
setTimeout(function(){var Elems = document.getElementsByClassName("contextmenu");while(Elems[0]) {Elems[0].parentNode.removeChild(Elems[0])}});
};
document.body.appendChild(document.createElement("style")).innerHTML = `