My OpenSCAD script is a minor variation of kompetenzbolzen's design and requires his oscad_gridfinity environment.
I adjusted the centering algorithm and modified the synthesis to reduce the bottom thickness (this makes it unsuitable for use with magnets though). Some might find the box to high but this can be adjusted easily within the script.
The author remixed this model.