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

Overview

[Instruction available in English below] - Instruções de uso do overlay do r/brasil no r/place 2022

INSTRUÇÕES PARA USAR O OVERLAY:

// ==UserScript==
// @name         Brasil r/place Template
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the canvas!
// @author       oralekin, LittleEndu
// @match        https://hot-potato.reddit.com/embed*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant        none
// ==/UserScript==
if (window.top !== window.self) {
    window.addEventListener('load', () => {
        document.getElementsByTagName("mona-lisa-embed")[0].shadowRoot.children[0].getElementsByTagName("mona-lisa-canvas")[0].shadowRoot.children[0].appendChild(
            (function () {
                const i = document.createElement("img");
                i.src = "https://raw.githubusercontent.com/Tetizera/place-rbrasil2022/main/image.png";
                i.onload = () => {
                    if (i.width === i.height) {
                        i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 1000px;height: 1000px;";
                    } else {
                        i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 2000px;height: 1000px;";
                    }
                };
                return i;
            })())
    }, false);
}

Note que o script pode ser atualizado por vários motivos, então pra garantir, entre no Discord e veja TUDO no #rplace-anúncios. Aliás, procure um emoji de bandeira do Brasil e clique nele para receber anúncios dos mods e responsáveis.

  • Se tiver dúvidas, pingue @Tet#0001 ou envia uma DM para @Tet#0001

This is a simple overlay made by r/brasil Discord users to make our life easier when coordinating actions.

INSTRUCTIONS:

// ==UserScript==
// @name         Brasil r/place Template
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the canvas!
// @author       oralekin, LittleEndu
// @match        https://hot-potato.reddit.com/embed*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant        none
// ==/UserScript==
if (window.top !== window.self) {
    window.addEventListener('load', () => {
        document.getElementsByTagName("mona-lisa-embed")[0].shadowRoot.children[0].getElementsByTagName("mona-lisa-canvas")[0].shadowRoot.children[0].appendChild(
            (function () {
                const i = document.createElement("img");
                i.src = "https://raw.githubusercontent.com/Tetizera/place-rbrasil2022/main/image.png";
                i.onload = () => {
                    if (i.width === i.height) {
                        i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 1000px;height: 1000px;";
                    } else {
                        i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 2000px;height: 1000px;";
                    }
                };
                return i;
            })())
    }, false);
}

FYI: The script's code may be changed for a variety of reasons. Because of that, our "diplomats" (Mostly Tet#0001), will contact people on their Discords and subreddits in necessary. Feel free to ping me if I'm in your subreddit's server.


the script checks the URL provided, in this case https://raw.githubusercontent.com/Tetizera/place-rbrasil2022/main/image.png, to update the script to all users of the script. It usually takes 5 minutes for the new image to be updated to users, but it is not automatic yet.

.py files explained (python3, pip, numpy, pillow packages required)

  • prepare_place.py
    • adapts the file to be used on the r/place canvas. The config.txt file provided picks the far left corner pixel in the image.
  • dotter.py
    • adds the dots with the color of each pixel in the canvas. When you are on r/place, the pixels with the 'correct' color don't have a dot.

r/place 2022 color HEX codes (as seen on Wikipedia and r/place HTML code).

This is necessary if you wish to copy this code and draw or paint your own pixel art on r/place. The dots made by dotter.py will show up even if you use the right color, but using a different HEX code than the one used by r/place.

image on Wikipedia

red - #FF4500

orange - #FFA800

yellow - #FFD635

dark green - #00A368

light green - #7EED56

dark blue - #2450A4

blue - #3690EA

light blue - #51E9F4

dark purple - #811E9F

purple - #B44AC0

light pink - #FF99AA

brown - #9C6926

black - #000000

dark gray - #898D90

light gray - #D4D7D9

white - #FFFFFF

dark red - #BE0039

green - #00CC78

dark teal - #00756F

teal - #OO9EAA

indigo - #493AC1

periwinkle - #6A5CFF

pink - #FF3881

dark brown - #6D482F


CREDIT

r/Superstonk devs: https://github.com/rplacesuperstonk/rplace-image

You might also like...

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

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

Uma aplicação criada com react-native para armazenar as skills dos usuários cadastrados.

Uma aplicação criada com react-native para armazenar as skills dos usuários cadastrados.

SkillsClass Aplicação focada no gerenciamento de skills dos usuários cadastrados. Uma aplicação desenvolvida no ignite da Rocketseat com alguns toques

Dec 25, 2021

Educare é um projeto que visa auxiliar os estudos dos alunos por meio da resolução de questões. Front-end construído com Next.js.

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Feb 6, 2022

Toggles the visibility of completed and canceled to-dos

Logseq Wide Eyed Plugin Toggles the visibility of completed and canceled to-dos. Toggling is controlled by the eye appearing in the toolbar. It has op

Sep 13, 2022
Owner
[I'll throw something in here soon enough :)] From São Paulo, Brazil.
null
This work is an overnight with 84436, an overlay code forked from Osu! community but for ``flag of Vietnam`` in r/place 2022

flag-of-vietnam-rplace2022 This work is a overnight with 84436, an overlay code forked from Osu! community but for flag of Vietnam Installation Xài Ta

Đoàn Đình Toàn 10 Nov 2, 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

CorentinGC 138 Jan 3, 2023
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
Green Lattice Overlay for r/place

Green Lattice Overlay for r/place Step 1 Install one of the following extensions for your browser. Chrome (TamperMonkey) Firefox (ViolentMonkey) (note

siah 4 Apr 25, 2022
Aplicativo web para apurações dos resultados da eleições de 2022 para presidente.

APP de Apurações dos Resultados das Eleições de 2022 https://apuracoes-eleicoes-2022.netlify.app/ Trata-se de um aplicativo minimalista com o objetivo

Igor Gonçalves 4 Oct 31, 2022
Dar follow em um lista de usuários a partir de um perfil :milky_way:

Follow-Github Dar follow em um lista de usuários a partir de um perfil OBS: 'follow_users_v2' para funcionar corretamente, é recomendado usar o DevToo

Eduardo Amaro Maciel 5 Jul 6, 2022
É um Dropdown simples desenvolvido a partir de Sass e jQuery.

Dropdown É um Dropdown simples construído com Sass e jQuery. ?? Conteúdo São necessários somente os arquivos com estilos e scripts para habilitar o Dr

Marcelo Tomazelli 3 Sep 27, 2021
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 script for defending the Canadian flag on r/place 2022

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 an

null 3 Apr 4, 2022