HASANABI TEMPLATE

Place template script

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         HASANABI TEMPLATE
// @namespace    https://www.reddit.com/r/Place/
// @version      1.1
// @description  Place template script
// @author       r/Place
// @match        https://hot-potato.reddit.com/embed*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant        none
// @license      GPL-3.0
// ==/UserScript==

const placeTemplateUrl = "https://drive.google.com/uc?export=download&id=1Wmyr9xqhqmLZ_12VtMa8BxK0ouKn1BkD";
const placeTemplateWidth = "2000px";
const placeTemplateHeight = "2000px";
const placeTemplateX = "0px";
const placeTemplateY = "0px";

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 = placeTemplateUrl;
            i.style = "position: absolute;left: "+placeTemplateX+";top: "+placeTemplateY+";image-rendering: pixelated;width: "+placeTemplateWidth+";height: "+placeTemplateHeight+";";
            i.id = "template";
            console.log(i);
            return i;
        })());
    }, false);
}



const placeTemplateUrl2 = "https://cdn.discordapp.com/attachments/806266849011564605/960136642730020894/fish_dotted.png";

const placeTemplateWidth2 = "44px";
const placeTemplateHeight2 = "47px";

const placeTemplateX2 = "1703px";
const placeTemplateY2 = "501px";

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 = placeTemplateUrl2;
            i.style = "position: absolute;left: "+placeTemplateX2+";top: "+placeTemplateY2+";image-rendering: pixelated;width: "+placeTemplateWidth2+";height: "+placeTemplateHeight2+";";
            i.id = "template";
            console.log(i);
            return i;
        })());
    }, false);
}