Text this: Multi-parameter control of photodetection in van der Waals magnet CrSBr