Skip to content

Instantly share code, notes, and snippets.

@KTibow
Last active Apr 2, 2022
Embed
What would you like to do?
// ==UserScript==
// @name for r/place
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the canvas!
// @author KTibow
// @match https://hot-potato.reddit.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// @run-at document-end
// ==/UserScript==
window.addEventListener("load", () => {
const container = document.querySelector("mona-lisa-embed").shadowRoot.querySelector("mona-lisa-canvas").shadowRoot.querySelector(".container");
const overlay = document.createElement("img");
overlay.src = "https://cdn.discordapp.com/attachments/772844631293165590/959890308357849148/unknown.png";
overlay.style = "position: absolute; left: 1240px; top: 807px; width: 42px; pointer-events: none; image-rendering: pixelated;";
window.i = 0;
setInterval(() => {
overlay.style.display = window.i % 2 ? "block" : "none";
window.i++;
}, 1000);
container.appendChild(overlay);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment