forked from halfdane/rplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeowcorpoverlay.user.js
24 lines (22 loc) · 1016 Bytes
/
meowcorpoverlay.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// ==UserScript==
// @name Meowcorp /r/place overlay
// @namespace meowcorp-place-overlay
// @version 0.2
// @description credits to /r/osuplace for the script
// @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://firebasestorage.googleapis.com/v0/b/meowcorp-redirect.appspot.com/o/template.png?alt=media";
i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 2000px;height: 1000px;";
console.log(i);
return i;
})())
}, false);
}