-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.user.js
More file actions
27 lines (24 loc) · 1.31 KB
/
script.user.js
File metadata and controls
27 lines (24 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// ==UserScript==
// @name April Fools Minecraft Commands Allies
// @namespace http://tampermonkey.net/
// @version 3.22
// @description Keep the canvas beautiful!
// @author Adapted by u/jan00bl for Minecraft Commands, Original author oralekin from osu! /r/osuplace
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @updateURL https://github.com/jan00bl/MinecraftCommandsPlaceOverlay/raw/main/script.user.js
// @downloadURL https://github.com/jan00bl/MinecraftCommandsPlaceOverlay/raw/main/script.user.js
// @grant none
// ==/UserScript==
if (window.top !== window.self) {
window.addEventListener('load', () => {
document.getElementsByTagName("mona-lisa-embed")[0].shadowRoot.children[0].getElementsByTagName("mona-lisa-canvas")[0].shadowRoot.children[0].appendChild(
(function () {
const i = document.createElement("img");
i.src = "https://raw.githubusercontent.com/jan00bl/MinecraftCommandsPlaceOverlay/f2092bd9f9aea36c79bf457ce7596746beb5918b/commands_place.png";
i.style = "position: absolute;left: 0px;top: 0px;image-rendering: pixelated;width: 2000px;height: 2000px;";
console.log(i);
return i;
})())
}, false);
}