Skip to content

Instantly share code, notes, and snippets.

@Wokstym
Last active April 4, 2022 23:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Wokstym/1f296a181cd96a8fcf2b2dd1df65d9fa to your computer and use it in GitHub Desktop.
Save Wokstym/1f296a181cd96a8fcf2b2dd1df65d9fa to your computer and use it in GitHub Desktop.
This is official and updated r/poland script that guides what squares to color

This script doesn't draw for you, it only shows guides where to draw what color. New version 1.0 - now you won't need to update your script, latest guide will be on your screen after you refesh reddit page :D

To setup the script follow steps bellow:

  1. Download TamperMonkey extension https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en

  2. Then click on the extension the top right of Chrome (please use chrome, might not work on other browsers)

  3. "Create new script"

  4. Copy this script there:

// ==UserScript==
// @name         r/poland Pope drawing
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  try to take over the canvas!
// @author       wokstym - repurposed from other subreddits
// @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/Wokstym/place/master/map.png";
            i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 2000px;height: 1000px;";
            console.log(i);
            return i;
        })())

    }, false);

}
  1. Then save by using "ctrl+s" or "command+s"

After refreshing reddit page you should see something like this: image Smaller dots represent what color should be at this place. Happy drawing ;)

unknown

Update changelog - to update replace your script with the one above

Update 0.3

Pierog has been added ;]

unknown (2)

Update 0.3.1

Pope has been moved to right to accomodate flood of pierogies

Update 0.3.2

Fixed some pope colors

Update 1.0

Now your link doesn't have to change - so no more need to update script just refresh to get latest guide

@OrginalS
Copy link

OrginalS commented Apr 2, 2022

Możesz zmienić skrypt tak żeby zamiast linkować do imgura linkować do obrazka na np githubie? Wtedy wystarczyło by żebyś podmienił obrazek i wszyscy nie musieli by robić update'a skryptu.

@Wokstym
Copy link
Author

Wokstym commented Apr 2, 2022

W sumie gut idea, przyjrzę się

@pabli24
Copy link

pabli24 commented Apr 3, 2022

Prostsza instrukcja:

Dodałem opcję, że po kliknięciu "H" na klawiaturze możesz ukrywać/pokazywać te małe kawadraty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment