Overlays tiles on wplace.live. Can also resize, and color-match your overlay to wplace's palette. Make sure to comply with the site's Terms of Service, and rules! This script is not affiliated with Wplace.live in any way, use at your own risk. This script is not affiliated with TamperMonkey. The author of this userscript is not responsible for any damages, issues, loss of data, or punishment that may occur as a result of using this script. This script is provided "as is" under GPLv3.
Symbol loading speed improvement
Symbols valid indexes can be easily cached instead of being checked at each step as such:
And then in
buildOverlayDataForChunkUnifiedinstead of the double for loop we can haveIndeed this implementation ignores
if (outX >= 0 && outX < tileW && outY >= 0 && outY < tileH)check but from my limited testing that is never hitAnd probably should not be hit as long as the symbols are defined correctly, but most likely the check can also be added with this caching method