Repo for r/UKplace efforts

Overview

Browser script instructions (easy)

First, install the TamperMonkey browser extension:

Then just click here, click "Install", refresh r/place and you're good to go!

The script will allow for CORS access press 'Allow all' when it pops up!!

This script will automate your tile placements according to a template, which we can edit remotely to rapidly push changes.

The code is open source! Inspect it for yourself!

ALTERNATIVE: Headless script instructions (advanced)

This is intended for cluster users running multiple accounts. If you don't have any technical experience, just use the browser script instead.

How to get your reddit_session cookie

NOTE: People have reported that this is annoying to do on chrome because text gets unselected. Therefore, we recommend that you use Firefox.

  1. Go to r/place (make sure you are logged in on the account you want to get the cookie for)
  2. Open dev tools and go to the network tab
  3. Refresh the page
  4. Scroll all the way up and click on the first request to reddit.com/r/place (See image) Screenshot_20220403_165251
  5. Go to the tab called Cookies
  6. Copy the value of the reddit_session cookie

Installation instructions

  1. Install NodeJS.
  2. Download the bot via this link.
  3. Extract the bot anywhere on your desktop
  4. Open a command prompt/terminal in this folder — Windows: Shift+right mousebutton in the folder -> Click on "open Powershell here"
  5. Install the dependencies: npm i
  6. Execute the bot node bot.js SESSION_COOKIE_HERE
  7. BONUS: You can repeat these steps for any amount of accounts you'd want. Keep in mind to use different accounts.

Thanks to PlaceNL for the bot we've based this on too!

Comments
  • Clarify instructions

    Clarify instructions

    README.md has the following line:

    "Then just click here, click "Install", refresh the page and you're good to go!"

    So refresh which page? The reddit page? How will I know the script is active?

    opened by pjdennis 1
  • 0-999 Y Fix

    0-999 Y Fix

    The canvas isn't 2000 x 2000, but four 1000 x 1000 stacked together. When placing pixels with y > 10000 we'd get 'Y has to be within 0-999 range' error.

    This fixes it.

    Plus some translations on Toasts from dutch to english.. and some console error handling to make everyone's lives easier.

    PLUUUUS

    Successful toast can be clicked to open new window to show placed pixel.

    opened by dougwithseismic 0
  • Fix concat of image arrays

    Fix concat of image arrays

    UInt8Arrays do not concat properly, rgbaCanvas currently has 2 elements. Leads to the script always replacing the first pixel it checks as the Hex colour comes out as '#AN'
    https://github.com/scijs/get-pixels/blob/master/node-pixels.js#L22 https://stackoverflow.com/questions/49129643/how-do-i-merge-an-array-of-uint8arrays

    Below from debugging with some additional console.logs

    const rgbaCanvas = [].concat(map0.data, map1.data);
    console.log(rgbaCanvas);
    
    ...
    
    
            // Deze pixel klopt.
    		const targetHex = rgbToHex(rgbaCanvas[pixelLocation], rgbaCanvas[pixelLocation + 1], rgbaCanvas[pixelLocation + 2]);
    	console.log(`Comparing ${hex}, ${targetHex} ${rgbaCanvas[pixelLocation]}, ${rgbaCanvas[pixelLocation + 1]}, ${rgbaCanvas[pixelLocation + 2]}`)
            if (hex === targetHex) continue;
    

    image

    opened by peterjroberts 0
  • Bluey's arm

    Bluey's arm

    The template covers Bluey's arm on the left hand side - please could it be altered to allow for Bluey to remain? (Canonically, Bluey is a royalist and a member of the Commonwealth.) thanks.

    opened by endresz 0
  • Added docker instructions to readme, minor ordering adjustments to Dockerfile

    Added docker instructions to readme, minor ordering adjustments to Dockerfile

    Some minor changes

    • Update to the readme to add instructions for building and running the Dockerfile.

    • Added trailing slash to package to fix COPY warning about multiple files needing to go into a directory.

    • Re-ordered the dockerfile to copy the package.json and install the packages first and then copy the bot script, just a minor optimization to stop changes to bot.js needing all the packages to re-downloaded.

    opened by arron1993 0
Owner
null
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
This is email scheduler made using MERN. This repo contains server code, client repo is linked in readme.

Email Scheduler Client This is an email scheduler server (client in different repository). It is made using node.js/express.js. Overview User can sign

Sai Charan 2 Dec 3, 2022
This repo is a collection of code samples and links to previous twitch live stream sessions. If you have any ideas or suggestions for future episodes, feel free to open an issue.

Talk DEV to me Talk DEV to me is a monthly show on twitch.tv/aws hosted by Tiago Barbosa and Alex Melnyk, where we invite customers, partners, or Amaz

AWS Samples 122 Jan 6, 2023
Base-mock-api - Repo to storage my fake api's to use in my 2022 projects.

Base Mock API's Project made 100% with JavaScript, with the objective of creating endpoints to use in projects. Prerequisites Before you begin, ensure

Arthur Cabral 0 Nov 20, 2022
This repo contains instructions on how to create your NFT in Solana(using Metaplex and Candy Machine) and mint it using your custom front-end Dapp

Solana-NFT minting Dapp Create your own NFT's on Solana, and mint them from your custom front-end Dapp. Tools used Metaplex -> Metaplex is the NFT sta

Udit Sankhadasariya 12 Nov 2, 2022
Monolithic repo for api server, image server, web server

Onsecondary Market Deployed at https://market.onsecondary.com Monolithic repo for api server, image server, web server TODO -use a script to cull expi

Admazzola 2 Jan 11, 2022
Repo of MVRT's super scout website

MVRT Super Scout Development Clone repo and install dependencies git clone https://github.com/mvrt-115/super-scout-dashboard.git npm install Include

Monta Vista Robotics Team 2 Sep 10, 2022
This is the repo for the Medium2 project with Next.js, Sanity CMS, React and Tailwind CSS

Next.js + Tailwind CSS Example This example shows how to use Tailwind CSS (v3.0) with Next.js. It follows the steps outlined in the official Tailwind

null 1 Jan 22, 2022
This repo. contain some "Login page" , That I have made during learning and practicing HTML & CSS.

Login-Page This repo. contain some "Login page" , That I have made during learning and practicing HTML & CSS. Table of content: v1 v2 Objective and Re

Ayush Mishra 1 Jan 28, 2022
A GitHub Action for pushing to a repo.

action-gh-push A GitHub Action for pushing to a repo. ?? Usage Below is a simple example of step.if tag gating name: ci on: push jobs: build:

迷渡 6 Feb 15, 2022
Demo repo used in crash course for students learning web development.

Web Development Crash Course Hosted by Rubberdøk Preparation Following these steps prepares you to join the interactive React demo of the crash course

Rubberdøk 3 Sep 20, 2022
A quick way of bootstrapping a new mono-repo for a Web Application

marp theme class author true gaia lead invert Matteo ronchi [email protected] Mono-repo Starter https://github.com/cef62/monorepo-template What

Matteo Ronchi 12 Jul 29, 2022
A template repo that contains a NodeJS app that will consume messages from a RabbitMQ queue and immediately send them to an Azure EventHub.

README.md Summary This repo (RabbitMQ to EventHub Shovel) is a template that contains a NodeJS app that will consume messages from a RabbitMQ queue an

Valtech San Diego 6 Jul 2, 2022
Thank you for visiting this repo! ;)

React Native - UI Coffee Order [Pixel BWA] This is the React Native source code from a design provided by Pixel BuildWithAngga. I made this repo for t

Janaka Jati Lasmana 3 Mar 11, 2022
OnePiece /r/place repo to store the template and script for outlining the place to put titles

onepiece-place OnePiece /r/place repo to store the template and script for outlining the place to put titles This script & repo are cloned from Antice

Lopeh 11 Apr 9, 2022
A solidity tutorial repo.

Advanced Sample Hardhat Project This project demonstrates an advanced Hardhat use case, integrating other tools commonly used alongside Hardhat in the

Yadav! ✔ 3 Apr 13, 2022
This is an email scheduler made using MERN stack. This repo contains client, server side is linked in readme

Email Scheduler Client This is an email scheduler client (server in different repository). It is made using react. Overview User can sign-up/sign-in,

Sai Charan 3 Dec 3, 2022
A repo for the live coding portion of my full-stack nanodegree sessions

Udacity Full-Stack Nanodegree Classroom This repo includes the live coding portion of my lecture for Udacity Full-Stack Nanodegree students. It will b

Hossam Abubakr 58 Dec 17, 2022