Skip to content

Instantly share code, notes, and snippets.

@gaudi99
Last active April 3, 2022 03:06
Show Gist options
  • Save gaudi99/7af342e8cd3a2fd5f1482a7a3ccd1d29 to your computer and use it in GitHub Desktop.
Save gaudi99/7af342e8cd3a2fd5f1482a7a3ccd1d29 to your computer and use it in GitHub Desktop.
template tool for r/place with hololive template
// ==UserScript==
// @name Hololive combo
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Spread the love
// @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://raw.githubusercontent.com/gaudi99/hololive-template-picture/main/hololive%20placetemplate-1.png.png";
i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 2000px;height: 1000px;";
console.log(i);
return i;
})())
}, false);
}
@btmxh
Copy link

btmxh commented Apr 3, 2022

since reddit is dying, reloading the overlay without having to reload the page will be somewhat helpful, so i implemented that https://gist.github.com/ngoduyanh/52ae42fd4ad921320ca4a286adf6d1f7 (hotkey is ctrl+i)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment