Skip to content

Instantly share code, notes, and snippets.

@StrikerX3
Last active April 4, 2022 21:27
Show Gist options
  • Save StrikerX3/1ba5ed70821bbdaede2002b440168f85 to your computer and use it in GitHub Desktop.
Save StrikerX3/1ba5ed70821bbdaede2002b440168f85 to your computer and use it in GitHub Desktop.
r/MysteryDungeon template
// ==UserScript==
// @name r/MysteryDungeon Templates
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the canvas!
// @author oralekin - script, Ender#5769 - image
// @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://gist.githubusercontent.com/StrikerX3/1ba5ed70821bbdaede2002b440168f85/raw/e479c5c7b653bee4fbd96ce79b3da6f74a37e98a/place.png";
i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 2000px;height: 2000px;";
console.log(i);
return i;
})())
}, false);
}
@StrikerX3
Copy link
Author

StrikerX3 commented Apr 3, 2022

r/MysteryDungeon overlays

This script displays an overlay on top of the r/place canvas showing which pixels go where for our four designs:

  • Rescue Team DX badge at 722, 790
  • Time Gear at 1090, 476, as well as the Wings of Fire logo to the left and Pokémon Workshop below
  • Sleeping shiny Celebi at 1325, 60
  • Victini and V-Wheel at 1752, 1484

Additionally, the overlay includes designs for some of our allies:

Installation instructions

  1. If you don't already have TamperMonkey, install it. Firefox users, install ViolentMonkey instead. Greasemonkey doesn't work.
  2. Click on the Raw button of the userscript.user.js block above. Or click here, which is the same thing.
  3. Let TamperMonkey/ViolentMonkey install or reinstall the script.
  4. If you previously installed the "Celebi Template" from here, uninstall it to avoid conflicts in case the template gets adjusted to accomodate other designs.

Credits

The script was adapted from here, which credit r/TransPlace and r/osuplace for the original code.

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