This userscript was created and used during the 2022 r/place to overlay pixel art images onto the canvas. It adds two buttons into the r/place UI: One for loading an image to overlay, another to toggle between showing/hiding it.
This used a different approach from the mainly used overlays where instead of overlaying an image with a hardcoded host, the user could paste a JSON file with a configuration of what and how the image should be displayed.
This was less intuitive for mass collaboration, but allowed for fast iteration while deciding on the final art and coordinates.
This is how you'd install it. Probably doesn't work anymore because of now invalid element query selections.
- Install the Tampermonkey Beta (Chromium) or Violetmonkey (Firefox) browser extensions.
- Open the raw source file link and the extension will automatically ask for installation.
- Accept it and the next time r/place is loaded it should show two buttons on the bottom of the screen.
Alternativetly, access the console window of the r/place iframe (title "Reddit A1 2022" from "https://hot-potato.reddit.com/"), paste and run the script there. (Has to be done every page reload)
An example of what you'd paste in the prompt opened by clicking the Load overlay button. More in examples/.
{
"name": "tiny marisa",
"url": "https://media.discordapp.net/attachments/959481084708548722/960107970467872838/unknown.png",
"x": 468,
"y": 514,
"width": 16,
"height": 16
}
name
: Optional. A name for the config/image, to avoid confusionurl
: The URL of the imagex
,y
: The x and y coordinates in the canvaswidth
,height
: Optional, and are also ignored if not used together. Desired width/height of the image. Useful for images that were not in the1px : 1 canvas square
proportion.