A script for defending the Canadian flag on r/place 2022

Overview

ca-place-script

A script for defending the Canadian flag on r/place 2022. This script will automate your tile placements to defend the grey outline and surrounding tiles based on this template

First, install the TamperMonkey browser extension:

For new flag (right side of map)

Install this tamper monkey script here

For original flag

Install this tamper monkey script here

The code is open source! Inspect it for yourself!

Error Retrieving Folder Fix

Reddit seems to have stopped sending Access-Control-Allow-Origin header in the API we use to get the current canvas. Likely this is an anti-bot countermeasure.

To overcome this, you will need to need to install a second browser extension that disables check for Cross Origin Requests

Chrome: https://chrome.google.com/webstore/detail/cors-unblock/lfhmikememgdcahcdlaciloancbhjino/related?hl=en

Firefox: https://add0n.com/access-control.html?version=0.1.9&type=install

You'll need to click extension to enable it.

Make sure the extention is only enabled for reddit. You can do this by clicking on the 3 dots beside the extension and clicking on manage extension. Then go to the site access part and select "on specific sites" and then type reddit.com

Use this extension carefully, you should not enable Cross Origin Requests for any other webpages. Try use it in incognito / do not browse other sites than Reddit!

If you are getting error msg like Error in retrieving folder, that means Cross Origin Requests are not working and your CORS extensions are not set up properly.

Template

Want a nice template userscript to see where the flag should be? Check out canada_place_template!

Acknowledgement

Inspiration from bot used by UKPlace and NLPlace

You might also like...

Overlay dos brasileiros, a partir do Discord, no r/place 2022

[Instruction available in English below] - Instruções de uso do overlay do r/brasil no r/place 2022 INSTRUÇÕES PARA USAR O OVERLAY: Instale o TamperMo

Sep 20, 2022

Collaborative /r/place 2022 template userscript

Collaborative /r/place 2022 template userscript

[inactive] /r/Place 2022 collaborative minimap userscript Help /r/MyLittlePony get a pony on /r/place! Help /r/ainbowroad build a rainbow road on /r/p

Aug 26, 2022

Analysing and storing r/Place 2022 event

Caching r/Place 2022 This project is live at place.thatguyalex.com. Running scraper locally Install Python and all dependencies from scraper.py import

Dec 16, 2022

Collaborative /r/place 2022 template userscript

Collaborative /r/place 2022 template userscript

[inactive] /r/Place 2022 collaborative minimap userscript Help /r/MyLittlePony get a pony on /r/place! Help /r/ainbowroad build a rainbow road on /r/p

Apr 6, 2022

UserScript de l'overlay de la KCorp pour le /r/place 2022

reddit-place-kcorp original authors : oralekin, LittleEndu, ekgame, Wieku, DeadRote Instructions FR ▶️ - Installer l'extension Tampermonkey sur chrome

Jan 3, 2023

The first place winning no-code platform for generating developer resume pages, designed for and submitted to the 2022 Tech Optimum Hackathon.

Genfolio Genfolio is a no-code platform for generating developer portfolios. A demo can be found on the project's devpost or on youtube. Our stack We

Dec 5, 2022

Scripts pour la fresque pixel art ZEvent Place 2022

Scripts pour la fresque pixel art ZEvent Place 2022

Scripts pour la fresque pixel art ZEvent Place 2022 English: detailed documentation have been translated, see "documentation" folder above. Download t

Sep 11, 2022

HackMIT 2022. 2nd Place in Blockchain for Society sponsored by Jump Crypto. A revolutionary web application that leverages machine learning and blockchain technology to improve the crowdsourcing experience!

HackMIT 2022. 2nd Place in Blockchain for Society sponsored by Jump Crypto. A revolutionary web application that leverages machine learning and blockchain technology to improve the crowdsourcing experience!

📕 Wikisafe 📕 Wikisafe is a revolutionary new crowdsourcing web application that innovates the process of crowdsourcing information. This application

Dec 8, 2022

Script to fetch all NFT owners using moralis API. This script output is a data.txt file containing all owner addresses of a given NFT and their balances.

Script to fetch all NFT owners using moralis API. This script output is a data.txt file containing all owner addresses of a given NFT and their balances.

🔎 Moralis NFT Snapshot Moralis NFT API will only return 500 itens at a time when its is called. For that reason, a simple logic is needed to fetch al

Jun 23, 2022
Comments
  • Idea: prioritize certain colors

    Idea: prioritize certain colors

    We're attempting to defend the old flag by fixing grey leaf outline pixels first. The loop which starts with

    for (const j of order) {
            for (var l = 0; l < 10; l++) {
                const i = (j * 10) + l;
                // negeer lege order pixels.
                if (rgbaOrder[(i * 4) + 3] === 0) continue;
    
                const hex = rgbToHex(rgbaOrder[(i * 4)], rgbaOrder[(i * 4) + 1], rgbaOrder[(i * 4) + 2]);
    

    be wrapped in a colour priority loop. Do special colours first, then colours that predominate in the image. Finally everything else.

    opened by morrowwm 3
Owner
null
Reddit Place Tracer is a browser based userscript for the 2022 Reddit /r/Place project

Reddit Place Tracer is a browser based userscript for the 2022 Reddit /r/Place project which adds a transparent image on top of the canvas to aid communities with drawing the same image. It shows how the canvas should look, where each pixel goes, and what color. The user must manually click on these spots. It is not an automated bot and does not break any rules.

null 3 Apr 3, 2022
The /r/place Atlas is a project aiming to catalog all the artworks created during Reddit's 2022 /r/place event.

The 2022 Place Atlas The /r/place Atlas is a project aiming to catalog all the artworks created during Reddit's 2022 /r/place event. This project was

Place Atlas 397 Dec 28, 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
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
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Help Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or block them from your service.

?? Stop war on Ukraine ?? Help Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or bloc

Pavol Hejný 46 Jan 7, 2023
A package to enable feature-flag support on Next.js via cookies and environment variables

next-feature-flags Add support for feature flags on Next.js based on cookies + environment variables. How it works It reads from cookies and Next.js's

Alexandre Santos 10 Aug 10, 2022
CTF (Capture The Flag) is a type of information security competition that challenges contestants to find solutions or complete various tasks.

WHAT IS CTF? CTF (Capture The Flag) is a type of information security competition that challenges contestants to find solutions or complete various ta

Nicolas Saputra Gunawan 18 Dec 12, 2022
Google translate dropdown customize with country flag

Flag google trasnalte demo without google bar and logo Screenshot How to use this 1. Create a country checklist containing languages from which you’ll

Devdreamsolution 28 Oct 11, 2022