Skip to content

Instantly share code, notes, and snippets.

@softyoda
Created April 2, 2022 16:10
Show Gist options
  • Save softyoda/7fbb8b3d2188c6946eefe2d86f3f5303 to your computer and use it in GitHub Desktop.
Save softyoda/7fbb8b3d2188c6946eefe2d86f3f5303 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name placestart
// @namespace http://tampermonkey.net/
// @version 0.1
// @description credit to oralekin
// @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://cdn.discordapp.com/attachments/959525141346406450/959843839714144276/overlay.png"
i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 1000px;height: 1000px;";
console.log(i);
return i;
})())
}, false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment