Last active
April 2, 2022 21:50
-
-
Save KTibow/d05d8cd0c2eae9ee2b5ab4095961a0dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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