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:
- Chrome Webstore
- FireFox (ViolentMonkey)
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
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