Skip to content

Instantly share code, notes, and snippets.

@Absulit
Last active April 3, 2022 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Absulit/2620cf1f1873cae2c1116aa01ef76e1d to your computer and use it in GitHub Desktop.
Save Absulit/2620cf1f1873cae2c1116aa01ef76e1d to your computer and use it in GitHub Desktop.
ticosplace
// ==UserScript==
// @name osu! Logo template
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the canvas!
// @author oralekin
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @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://i.imgur.com/36O2NVT.png";
i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 2000px;height: 1000px;";
console.log(i);
console.log("tes2t")
return i;
})())
}, false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment