Skip to content
@PRRQRC

PlaceRickQRCode

Let's place RickQRCodes all over on r/place, pixelcanvas, etc.... Join us in our Discord server!

PlaceRickRollQRCode

Members

We are currently 5 people who are working on this. If you want to help too just contact us in any way (for example through our Discord) :D

ToDos

  • Pixelcanvas scraper
  • Pixel importance based on changes --> dynamic heat maps
  • connect scraper with existing commander
  • Node server api
  • Js userscript
  • Bug Hunting + fixing

Userscript (Pixelcanvas)

Current Endpoints (Beta):

  • URL: https://pixelcanvas-scraper.shadowlp174.repl.co/api/pixel/%x.%y
  • Return format: JSON or false
  • Usage: replace %x.%y with actual coords. Example: api/pixel/-497.2800

This endpoint will retrieve the known data about the specified pixel (%x.%y). It will return false if the coordinates are not in the area of the qr code.

Pixel Updates

  • URL: wss://pixelcanvas-scraper.shadowlp174.repl.co/api/live
  • Return format: JSON on update
  • Usage: connect through a websocket client to the given wss url. Then listen for the onmessage event.

This endpoint will fire pixel updates to the connected clients, if the occured update was inside our area.

Example code (JavaScript):

constsocket=newWebSocket('wss://pixelcanvas-scraper.shadowlp174.repl.co/api/live');socket.onopen=()=>{console.log("Connected to server");};socket.onmessage=(msg)=>{vardata;try{data=JSON.parse(msg.data);}catch(e){console.log("Invalid JSON: ",e,msg);return;}switch(data.type.toLowerCase()){case"update":
console.log("Pixel update received: ",data.data);varp=document.createElement("p");p.innerHTML="Pixel update: "+JSON.stringify(data.data);document.getElementById("logs").appendChild(p);break;default:
console.log("Data received: ",data);varp=document.createElement("p");p.innerHTML="Data: "+JSON.stringify(data.data);document.getElementById("logs").appendChild(p);break;}};

Popular repositories Loading

  1. commander commanderPublic

    JavaScript 3

  2. pixel-finder-bot pixel-finder-botPublic

    JavaScript 1

  3. .github .githubPublic

  4. pixelcanvas-scraper pixelcanvas-scraperPublic

    A pixelcanvas.io scraper

    JavaScript

  5. pixelcanvas-userscript pixelcanvas-userscriptPublic

    The userscript for pixelcanvas.io

    JavaScript

  6. place-userscript place-userscriptPublic

    An autoplacer violentmonkey userscript for r/place 2023

    JavaScript

Repositories

Showing 9 of 9 repositories

Top languages

Loading…

Most used topics

Loading…