Feel free to use with credit! Replace the “go to (mouse pointer)” with the position you want to grid-lock. Change the grid variables to change the size of the grids.