Skip to content

Userscript which allows the user load, overlay and toggle any image into the 2022's r/place canvas

Notifications You must be signed in to change notification settings

g-otn/reddit-place-2022-overlay-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

reddit-place-2022-overlay-script

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.

example

Installation

This is how you'd install it. Probably doesn't work anymore because of now invalid element query selections.

  1. Install the Tampermonkey Beta (Chromium) or Violetmonkey (Firefox) browser extensions.
  2. Open the raw source file link and the extension will automatically ask for installation.
  3. 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)

Configuration format

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 confusion
  • url: The URL of the image
  • x, y: The x and y coordinates in the canvas
  • width, height: Optional, and are also ignored if not used together. Desired width/height of the image. Useful for images that were not in the 1px : 1 canvas square proportion.

Example of uses during the event

overlay.1.mp4
overlay.2.mp4

About

Userscript which allows the user load, overlay and toggle any image into the 2022's r/place canvas

Topics

Resources

Stars

Watchers

Forks