Skip to content

Instantly share code, notes, and snippets.

@dark-swordsman
Last active April 3, 2022 21:01
Show Gist options
  • Select an option

  • Save dark-swordsman/63507c828addfbf1256114d3b1cfeb6a to your computer and use it in GitHub Desktop.

Select an option

Save dark-swordsman/63507c828addfbf1256114d3b1cfeb6a to your computer and use it in GitHub Desktop.
r/animepiracy tampermonkey script
// ==UserScript==
// @name ap
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the canvas!
// @author dark
// @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/959926133929947137/960281500383871086/ap_template_1.png";
i.onload = () => {
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