Last active
April 4, 2022 14:49
-
-
Save MiniDigger/293ebd4a5e0ef5ef4ae5f76599d91e38 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 Paper r/place | |
// @namespace http://tampermonkey.net/ | |
// @version 2 | |
// @description try to take over the canvas! | |
// @author MiniDigger | |
// @match https://hot-potato.reddit.com/embed* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
// ==/UserScript== | |
let url = "https://i.imgur.com/rsOWyax.png" | |
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 = url; | |
i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 2000px;height: 2000px;"; | |
return i; | |
})()) | |
}, false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment